er  dev
cls_RootHit.h
1 #ifndef CLS_ROOTHIT_H
2 #define CLS_ROOTHIT_H
3 
4 /*
5  * AdcVal is actually pedestal minus raw adc val.
6  * This value has physical meaning.
7  */
8 
9 #include <TObject.h>
10 
11 class cls_RootHit : public TObject
12 {
13 public: // methods
14 
15  // Default constructor should not be used
16  cls_RootHit();
17  virtual ~cls_RootHit();
18 
19  // Constructor with full parameters list
20  cls_RootHit(ULong64_t p_ts, UChar_t p_ch, UShort_t p_rawAdc, Int_t p_adc, Float_t p_adcCalib);
21  // Copy constructor
22  cls_RootHit(cls_RootHit* p_sourceHit);
23 
24  void Clear(Option_t *option="");
25 
26  cls_RootHit &operator=(const cls_RootHit &orig);
27 
28  UChar_t GetChannel() {return fChannel;}
29  Int_t GetAdcVal() {return fAdcVal;}
30 
31 private: // data members
32 
33  ULong64_t fTimestamp;
34  //UChar_t fFebID; // hooks for further development
35  //UChar_t fChipID; // hooks for further development
36  UChar_t fChannel;
37  UShort_t fRawAdcVal;
38  Int_t fAdcVal; // (pedestal -raw adc val)
39  Float_t fAdcCalibrated; // After calibration using LUTs
40 
41 
42 public:
43  ClassDef(cls_RootHit,1)
44 };
45 
46 #endif // CLS_ROOTHIT_H