#include "Stntuple/obj/TSiIsectBlock.hh" #include #include #include "TClass.h" ClassImp(TSiIsectBlock) // Do NOT use the default streamer for now. // But we still need to puff up the hash table for hits on a given digicode. // Do it explicitly with InitEvent() void TSiIsectBlock::Streamer(TBuffer &R__b) { if (R__b.IsReading()) { Version_t R__v = R__b.ReadVersion(); if (R__v < 2) { TSiIsectBlock::Class()->ReadBuffer(R__b, this); } else { R__b >> fNSiIsects; if (fNSiIsects>0) { fSiIsectList->Streamer(R__b); } } } else { R__b.WriteVersion(TSiIsectBlock::IsA()); R__b << fNSiIsects; if (fNSiIsects>0) { fSiIsectList->Streamer(R__b); } } } //_____________________________________________________________________________ TSiIsectBlock::TSiIsectBlock() { fNSiIsects = 0; fSiIsectList = new TClonesArray("TStnSiIsect",200); fSiIsectList->BypassStreamer(kFALSE); fCollName = ""; } //_____________________________________________________________________________ TSiIsectBlock::~TSiIsectBlock() { fSiIsectList->Delete(); delete fSiIsectList; } //_____________________________________________________________________________ Int_t TSiIsectBlock::InitEvent(Int_t flag) { // Puff up the lookup table for hits in a given detector element // from the array fDigiCodes and its kin. // You must call this after you've read the block for the event. return 0; } //_____________________________________________________________________________ void TSiIsectBlock::Clear(Option_t* opt) { fNSiIsects = 0; fSiIsectList->Clear(opt); } //------------------------------------------------------------------------------ #ifndef NO_ROOT_CONST void TSiIsectBlock::Print(Option_t* opt) const { #else void TSiIsectBlock::Print(Option_t* opt) { #endif for (int i=0; iPrint(opt); std::cout << std::endl; } }