1 | #ifndef MARS_MHCalibrationChargePix
|
---|
2 | #define MARS_MHCalibrationChargePix
|
---|
3 |
|
---|
4 | #ifndef MARS_MHGausEvents
|
---|
5 | #include "MHGausEvents.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TH1F;
|
---|
9 | class MHCalibrationChargePix : public MHGausEvents
|
---|
10 | {
|
---|
11 |
|
---|
12 | private:
|
---|
13 |
|
---|
14 | static const Int_t fgChargeNbins; // Default for fNBins (now set to: 2000 )
|
---|
15 | static const Axis_t fgChargeFirst; // Default for fFirst (now set to: -0.5 )
|
---|
16 | static const Axis_t fgChargeLast; // Default for fLast (now set to: 1999.5)
|
---|
17 | static const Int_t fgAbsTimeNbins; // Default for fAbsTimeNbins (now set to: 15 )
|
---|
18 | static const Axis_t fgAbsTimeFirst; // Default for fAbsTimeFirst (now set to: -0.5 )
|
---|
19 | static const Axis_t fgAbsTimeLast; // Default for fAbsTimeLast (now set to: 14.5 )
|
---|
20 |
|
---|
21 | protected:
|
---|
22 |
|
---|
23 | TH1F fHAbsTime; // Histogram containing the absolute arrival times
|
---|
24 |
|
---|
25 | Int_t fAbsTimeNbins; // Number of bins used for the fHAbsTime
|
---|
26 | Axis_t fAbsTimeFirst; // Lower bound bin used for the fHAbsTime
|
---|
27 | Axis_t fAbsTimeLast; // Upper bound bin used for the fHAbsTime
|
---|
28 |
|
---|
29 | public:
|
---|
30 |
|
---|
31 | MHCalibrationChargePix(const char *name=NULL, const char *title=NULL);
|
---|
32 | ~MHCalibrationChargePix() {}
|
---|
33 |
|
---|
34 | virtual void Clear(Option_t *o="");
|
---|
35 | virtual void Reset();
|
---|
36 | virtual void InitBins();
|
---|
37 |
|
---|
38 | // Setters
|
---|
39 | virtual void SetAbsTimeNbins(const Int_t bins =fgAbsTimeNbins) { fAbsTimeNbins = bins; }
|
---|
40 | virtual void SetAbsTimeFirst(const Axis_t first=fgAbsTimeFirst) { fAbsTimeFirst = first; }
|
---|
41 | virtual void SetAbsTimeLast( const Axis_t last =fgAbsTimeLast) { fAbsTimeLast = last; }
|
---|
42 |
|
---|
43 | // Getters
|
---|
44 | TH1F *GetHAbsTime() { return &fHAbsTime; }
|
---|
45 | const TH1F *GetHAbsTime() const { return &fHAbsTime; }
|
---|
46 |
|
---|
47 | const Float_t GetAbsTimeMean( ) const;
|
---|
48 | const Float_t GetAbsTimeRms() const;
|
---|
49 | const Float_t GetIntegral() const;
|
---|
50 |
|
---|
51 | // Fill histos
|
---|
52 | Bool_t FillAbsTime(const Float_t t);
|
---|
53 |
|
---|
54 | // Draws
|
---|
55 | virtual void Draw(Option_t *opt="");
|
---|
56 |
|
---|
57 | // Miscelleaneous
|
---|
58 | void ChangeHistId(Int_t id);
|
---|
59 |
|
---|
60 | ClassDef(MHCalibrationChargePix, 1) // Base Histogram class for Charge Pixel Calibration
|
---|
61 | };
|
---|
62 |
|
---|
63 | #endif /* MARS_MHCalibrationChargePix */
|
---|