00001 #ifndef ZTR_Pattern 00002 #define ZTR_Pattern 00003 #include "TObject.h" 00004 00005 class TRawPattern : public TObject { 00006 00007 protected: 00008 00009 Int_t fNValue; //Number of values in fValues 00010 Int_t *fValues; //[fNValue] values of pattern unit 00011 00012 public: 00013 00014 TRawPattern(); 00015 TRawPattern(Int_t,Int_t*); 00016 virtual ~TRawPattern(); 00017 00018 Int_t GetValue(Short_t j) { return fValues[j]; } 00019 Int_t *GetValues() { return fValues; } 00020 Int_t GetNValues() { return fNValue; } 00021 00022 Int_t TestBit(Int_t unit, Short_t bit) 00023 { return ( fValues[unit] & (1<<bit) ); } 00024 00025 virtual void Print(const char *opt=0) const; 00026 void SetValues( Int_t, Int_t * ); 00027 virtual void Clear(const char *opt=""); 00028 void Init(); 00029 ClassDef(TRawPattern,1) //Content of the 3 pattern units used in the test beam 00030 }; 00031 #endif