| Line |  | 
|---|
| 1 | #ifndef MARS_MHCalibrationChargePix | 
|---|
| 2 | #define MARS_MHCalibrationChargePix | 
|---|
| 3 |  | 
|---|
| 4 | #ifndef MARS_MHCalibrationPix | 
|---|
| 5 | #include "MHCalibrationPix.h" | 
|---|
| 6 | #endif | 
|---|
| 7 |  | 
|---|
| 8 | class MHCalibrationChargePix : public MHCalibrationPix | 
|---|
| 9 | { | 
|---|
| 10 |  | 
|---|
| 11 | protected: | 
|---|
| 12 |  | 
|---|
| 13 | TH1F     fHAbsTime;      // Histogram containing the absolute arrival times | 
|---|
| 14 |  | 
|---|
| 15 | Int_t    fAbsTimeNbins;  // Number of  bins used for the fHAbsTime | 
|---|
| 16 | Axis_t   fAbsTimeFirst;  // Lower bound bin used for the fHAbsTime | 
|---|
| 17 | Axis_t   fAbsTimeLast;   // Upper bound bin used for the fHAbsTime | 
|---|
| 18 |  | 
|---|
| 19 | public: | 
|---|
| 20 |  | 
|---|
| 21 | MHCalibrationChargePix(const char *name=NULL, const char *title=NULL); | 
|---|
| 22 | ~MHCalibrationChargePix() {} | 
|---|
| 23 |  | 
|---|
| 24 | void Reset(); | 
|---|
| 25 | void InitBins(); | 
|---|
| 26 |  | 
|---|
| 27 | // Setters | 
|---|
| 28 | void SetBinningAbsTime(Int_t n, Axis_t lo, Axis_t up) { fAbsTimeNbins=n; fAbsTimeFirst=lo; fAbsTimeLast=up; } | 
|---|
| 29 |  | 
|---|
| 30 | // Getters | 
|---|
| 31 | TH1F *GetHAbsTime()       { return &fHAbsTime;  } | 
|---|
| 32 | const TH1F *GetHAbsTime() const { return &fHAbsTime;  } | 
|---|
| 33 |  | 
|---|
| 34 | const Float_t  GetAbsTimeMean() const; | 
|---|
| 35 | const Float_t  GetAbsTimeRms() const; | 
|---|
| 36 | const Float_t  GetIntegral() const; | 
|---|
| 37 |  | 
|---|
| 38 | // Fill histos | 
|---|
| 39 | Bool_t FillAbsTime(const Float_t t); | 
|---|
| 40 |  | 
|---|
| 41 | // Draws | 
|---|
| 42 | void Draw(Option_t *opt=""); | 
|---|
| 43 |  | 
|---|
| 44 | ClassDef(MHCalibrationChargePix, 1)     // Base Histogram class for Charge Pixel Calibration | 
|---|
| 45 | }; | 
|---|
| 46 |  | 
|---|
| 47 | #endif /* MARS_MHCalibrationChargePix */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.