#include "Stntuple/obj/TSiGeantIsectBlock.hh" #include "TClass.h" #include ClassImp(TSiGeantIsectBlock) // Do NOT use the default streamer for now. void TSiGeantIsectBlock::Streamer(TBuffer &R__b) { if (R__b.IsReading()) { Version_t R__v = R__b.ReadVersion(); if (R__v < 2) { TSiGeantIsectBlock::Class()->ReadBuffer(R__b, this); } else { R__b >> fNSiGeantIsect; if (fNSiGeantIsect>0) { fSiGeantIsectList->Streamer(R__b); if (R__v==3) fIsectLinkObsp.Streamer(R__b); } } } else { R__b.WriteVersion(TSiGeantIsectBlock::IsA()); R__b << fNSiGeantIsect; if (fNSiGeantIsect>0) { fSiGeantIsectList->Streamer(R__b); fIsectLinkObsp.Streamer(R__b); } } } //_____________________________________________________________________________ TSiGeantIsectBlock::TSiGeantIsectBlock() { fNSiGeantIsect = 0; fSiGeantIsectList = new TClonesArray("TStnSiGeantIsect",1000); fSiGeantIsectList->BypassStreamer(kFALSE); fCollName = ""; } //_____________________________________________________________________________ TSiGeantIsectBlock::~TSiGeantIsectBlock() { fSiGeantIsectList->Delete(); delete fSiGeantIsectList; } //_____________________________________________________________________________ Int_t TSiGeantIsectBlock::InitEvent(Int_t flag) { // Used to puff up link block. Now this is done in // StntupleSiGeantIsectLinks return 0; } //_____________________________________________________________________________ void TSiGeantIsectBlock::Clear(Option_t* opt) { fNSiGeantIsect = 0; fSiGeantIsectList->Clear(opt); fIsectLinkObsp.Clear(opt); } //------------------------------------------------------------------------------ void TSiGeantIsectBlock::Print(Option_t* opt) const { for (int i=0; iPrint(opt); std::cout << std::endl; std::cout << "Geant Intersection OBSP Links " << std::endl; fIsectLinkObsp.Print(opt); } }