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 | virtual void SetAbsTimeNbins(const Int_t bins ) { fAbsTimeNbins = bins; }
|
---|
29 | virtual void SetAbsTimeFirst(const Axis_t first) { fAbsTimeFirst = first; }
|
---|
30 | virtual void SetAbsTimeLast( const Axis_t last ) { fAbsTimeLast = last; }
|
---|
31 |
|
---|
32 | // Getters
|
---|
33 | TH1F *GetHAbsTime() { return &fHAbsTime; }
|
---|
34 | const TH1F *GetHAbsTime() const { return &fHAbsTime; }
|
---|
35 |
|
---|
36 | const Float_t GetAbsTimeMean( ) const;
|
---|
37 | const Float_t GetAbsTimeRms() const;
|
---|
38 | const Float_t GetIntegral() const;
|
---|
39 |
|
---|
40 | // Fill histos
|
---|
41 | Bool_t FillAbsTime(const Float_t t);
|
---|
42 |
|
---|
43 | // Draws
|
---|
44 | void Draw(Option_t *opt="");
|
---|
45 |
|
---|
46 | ClassDef(MHCalibrationChargePix, 1) // Base Histogram class for Charge Pixel Calibration
|
---|
47 | };
|
---|
48 |
|
---|
49 | #endif /* MARS_MHCalibrationChargePix */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.