#ifndef TCotData_hh #define TCotData_hh #include "TArrayI.h" #include "TCotTdcData.hh" class TCotData : public TObject { //----------------------------------------------------------------------------- // TArrayI is used "intelligently", i.e. only as a storage // : we are not relying on that that its length = N(hits), it rather is max // length of the hit array for all the event processed before //----------------------------------------------------------------------------- protected: Int_t fEventNumber; // ! Int_t fRunNumber; // ! Int_t fInitialized; // ! TCotSlData* fSlData; // ! run-time only convenience TArrayI fData; // real data buffer going to disk // now we need transient structure to // read COTD into (in general, it needs // rearranging, such that one has to // use an intermediate storage) public: TCotData(); virtual ~TCotData(); // ****** init methods int InitEvent(Int_t threshold=0); // ****** accessors Int_t NHitsTotal () { return fNHitsTotal; } TCotSlData* SlData(Int_t i) { return fSlData+i; } Int_t NHits (Int_t i) { return fSlData[i].NHits(); } // ****** overloaded methods of TObject void Clear(Option_t* opt=""); void Print(Option_t* opt=""); ClassDef(TCotData,1) }; #endif