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 | // TObject *Clone(const char* name="") const;
|
---|
25 |
|
---|
26 | void Reset();
|
---|
27 | void InitBins();
|
---|
28 |
|
---|
29 | // Setters
|
---|
30 | virtual void SetAbsTimeNbins(const Int_t bins ) { fAbsTimeNbins = bins; }
|
---|
31 | virtual void SetAbsTimeFirst(const Axis_t first) { fAbsTimeFirst = first; }
|
---|
32 | virtual void SetAbsTimeLast( const Axis_t last ) { fAbsTimeLast = last; }
|
---|
33 |
|
---|
34 | // Getters
|
---|
35 | TH1F *GetHAbsTime() { return &fHAbsTime; }
|
---|
36 | const TH1F *GetHAbsTime() const { return &fHAbsTime; }
|
---|
37 |
|
---|
38 | const Float_t GetAbsTimeMean( ) const;
|
---|
39 | const Float_t GetAbsTimeRms() const;
|
---|
40 | const Float_t GetIntegral() const;
|
---|
41 |
|
---|
42 | // Fill histos
|
---|
43 | Bool_t FillAbsTime(const Float_t t);
|
---|
44 |
|
---|
45 | // Draws
|
---|
46 | virtual void Draw(Option_t *opt="");
|
---|
47 |
|
---|
48 | // Miscelleaneous
|
---|
49 | void ChangeHistId(Int_t id);
|
---|
50 |
|
---|
51 | ClassDef(MHCalibrationChargePix, 1) // Base Histogram class for Charge Pixel Calibration
|
---|
52 | };
|
---|
53 |
|
---|
54 | #endif /* MARS_MHCalibrationChargePix */
|
---|