00001 #ifndef ZTR_TRawTdcInfo 00002 #define ZTR_TRawTdcInfo 00003 #include "TObject.h" 00004 00005 class TRawTdcInfo : public TObject { 00006 00007 protected: 00008 00009 Int_t fNValue; //Number of values in fValues 00010 Int_t *fValues; //[fNValue] TDC measurements for clock-trig 00011 00012 void Init(); 00013 00014 public: 00015 00016 TRawTdcInfo(); 00017 TRawTdcInfo(Int_t); 00018 TRawTdcInfo(Int_t,Int_t*); 00019 virtual ~TRawTdcInfo(); 00020 virtual void Clear(const char *opt=""); 00021 Int_t *GetValues() { return fValues; } 00022 Int_t GetNValue() { return fNValue; } 00023 Int_t GetValue(Int_t n) const { n%=fNValue; return fValues[n]; } 00024 virtual void Print(const char *opt=0) const; 00025 void SetValues(Int_t,Int_t v[]); 00026 ClassDef(TRawTdcInfo,1) //TDC measurements for clock-trig 00027 }; 00028 #endif