//----------------------------------------------------------------------------- // Oct 10 2000 P.Murat: description of the TDC block (transient-only class) //----------------------------------------------------------------------------- #ifndef TTdcModule_hh #define TTdcModule_hh #include "TTdcData.hh" class TTdcModule: public TObject { public: static const int kZero; // need to reset TDC's protected: Int_t* fData; public: TTdcModule () {} ~TTdcModule() {} // everything is I*4, so don't care about // passing by value TTdcHeader* Header () const { return (TTdcHeader*) fData; } // note that you never want to return // anything rather than pointer to TDC // word: we need only 4-bytes, while // virtual table is screwed... TTdcWord* Data (Int_t i) const { return (TTdcWord*) (fData+1+i); } Int_t NDataWords () const { return Header()->NDataWords(); } // ****** modifiers void SetData(const Int_t* data) { fData = (Int_t*) data; } // don't do anything to the array, just // say that there is no data... void Clear(Option_t* opt = "") { Header()->Clear(); } void Print(Option_t* opt = "") const; ClassDef(TTdcModule,0) // a single TDC module }; #endif