00001 #ifndef ZTR_TRawAdc2249 00002 #define ZTR_TRawAdc2249 00003 #include "TObject.h" 00004 00005 class TRawAdc2249 : public TObject { 00006 00007 protected: 00008 00009 Int_t fN; //which ADC 00010 Int_t fValue[12]; // q adc channel data 00011 00012 void Init(); 00013 00014 public: 00015 00016 static Int_t fgNAdc2249s; //actual number of ADC2249 00017 00018 TRawAdc2249(); 00019 TRawAdc2249(Int_t); 00020 TRawAdc2249(Int_t,Int_t*); 00021 virtual ~TRawAdc2249() {} 00022 Int_t Compare(const TObject *obj) const { 00023 if (fN < ((TRawAdc2249*)obj)->fN) 00024 return -1; 00025 else if (fN > ((TRawAdc2249*)obj)->fN) 00026 return 1; 00027 else 00028 return 0; } 00029 Int_t GetN() const { return fN; } 00030 Int_t *GetValues() { return fValue; } 00031 Int_t GetValue(Short_t j) { return fValue[j]; } 00032 Bool_t IsSortable() const { return kTRUE; } 00033 virtual void Print(const char *opt=0) const; 00034 void SetAdc(Int_t *); 00035 ClassDef(TRawAdc2249,1) //2249 data 00036 }; 00037 #endif