CMS 3D CMS Logo

TRawCrystal.h

Go to the documentation of this file.
00001 #ifndef ZTR_TRawCrystal
00002 #define ZTR_TRawCrystal
00003 #include "TObject.h"
00004 //#include "Config.h"
00005 
00006 class TRawCrystal : public TObject {
00007 
00008 private:
00009 
00010   Int_t  fHeader;   //FE channel header
00011   Int_t  fNSample;  //Number of samples
00012   Int_t *fSamples;  //[fNSample] values of the sampling ADC
00013 
00014   void Init();
00015 
00016 public:
00017 
00018   static Int_t fgNSamplesCrystal;
00019 
00020   TRawCrystal();
00021   TRawCrystal(Int_t,Int_t*);
00022   virtual ~TRawCrystal();
00023   virtual void     Clear(const char *opt="");
00024   Int_t     Compare(const TObject *obj) const { 
00025               if (fHeader < ((TRawCrystal*)obj)->fHeader)
00026                 return -1;
00027               else if (fHeader > ((TRawCrystal*)obj)->fHeader)
00028                 return 1;
00029               else
00030                 return 0; }
00031   Int_t    GetHeader()          { return fHeader;           }
00032   Int_t    GetNSamples()        { return fNSample; }
00033   Int_t    GetSample(Int_t n)   { return fSamples[n];       }
00034   Int_t   *GetSamples()         { return fSamples;          }
00035   Bool_t   IsSortable()  const  { return kTRUE;            }
00036   virtual void     Print(const char *opt=0)       const;
00037   void     SetCrystalRaw( Int_t, Int_t* );
00038   ClassDef(TRawCrystal,1)  //A cristal raw data from sampling adc
00039 };
00040 #endif

Generated on Tue Jun 9 17:39:23 2009 for CMSSW by  doxygen 1.5.4