er  dev
WCalHit.h
1 /*
2  * WCalHit.h
3  *
4  * Created on: Apr 7, 2017
5  * Author: vratik
6  */
7 
8 #ifndef DATA_BEAMTIME_WCALHIT_H_
9 #define DATA_BEAMTIME_WCALHIT_H_
10 
11 #include "TObject.h"
12 
13 //todo: delete
14 #include <iostream>
15 
16 class WCalHit : public TObject {
17 public:
18  WCalHit();
19  WCalHit(UChar_t p_ch, Int_t p_adc, Float_t p_adcNonLin, Float_t p_adcNonLinCorr, Float_t p_adcCalib);
20  virtual ~WCalHit();
21  ClassDef(WCalHit,1);
22 
23  void Clear(Option_t *option="");
24 
25  WCalHit &operator=(const WCalHit &orig);
26 
27 private:
28  void SetXY();
29 
30 private:
31  UChar_t fChannel;
32 // UShort_t fRawAdcVal;
33  Int_t fAdcVal; // (pedestal -raw adc val)
34  Float_t fAdcNonLin; //corrected for non-linearity
35  Float_t fAdcNonLinCorr; //corrected for non-linearity and pedestal shift
36  Float_t fAdcCal; // After calibration using LUTs
37 
38  Int_t fXpixel; //number of x row (vertical)
39  Int_t fYpixel; //number of x row (or column) (horizontal)
40 
41  UInt_t fPixelFromFebCh[64];
42 };
43 
44 #endif /* DATA_BEAMTIME_WCALHIT_H_ */