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 | private:
|
---|
12 |
|
---|
13 | static const Int_t fgChargeNbins; // Default for fNBins (now set to: 2000 )
|
---|
14 | static const Axis_t fgChargeFirst; // Default for fFirst (now set to: -0.5 )
|
---|
15 | static const Axis_t fgChargeLast; // Default for fLast (now set to: 1999.5)
|
---|
16 | static const Int_t fgAbsTimeNbins; // Default for fAbsTimeNbins (now set to: 15 )
|
---|
17 | static const Axis_t fgAbsTimeFirst; // Default for fAbsTimeFirst (now set to: -0.5 )
|
---|
18 | static const Axis_t fgAbsTimeLast; // Default for fAbsTimeLast (now set to: 14.5 )
|
---|
19 |
|
---|
20 | protected:
|
---|
21 |
|
---|
22 | TH1F fHAbsTime; // Histogram containing the absolute arrival times
|
---|
23 |
|
---|
24 | Int_t fAbsTimeNbins; // Number of bins used for the fHAbsTime
|
---|
25 | Axis_t fAbsTimeFirst; // Lower bound bin used for the fHAbsTime
|
---|
26 | Axis_t fAbsTimeLast; // Upper bound bin used for the fHAbsTime
|
---|
27 |
|
---|
28 | public:
|
---|
29 |
|
---|
30 | MHCalibrationChargePix(const char *name=NULL, const char *title=NULL);
|
---|
31 | ~MHCalibrationChargePix() {}
|
---|
32 |
|
---|
33 | TObject *Clone(const char* name="") const;
|
---|
34 |
|
---|
35 | void Reset();
|
---|
36 | 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 */
|
---|