source: trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.h@ 4875

Last change on this file since 4875 was 4636, checked in by gaug, 20 years ago
*** empty log message ***
File size: 2.1 KB
Line 
1#ifndef MARS_MHCalibrationChargePix
2#define MARS_MHCalibrationChargePix
3
4#ifndef MARS_MHGausEvents
5#include "MHGausEvents.h"
6#endif
7
8class TH1F;
9class MHCalibrationChargePix : public MHGausEvents
10{
11
12private:
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
21protected:
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
29public:
30
31 MHCalibrationChargePix(const char *name=NULL, const char *title=NULL);
32 ~MHCalibrationChargePix() {}
33
34 virtual void Reset();
35 virtual void InitBins();
36
37 // Setters
38 virtual void SetAbsTimeNbins(const Int_t bins =fgAbsTimeNbins) { fAbsTimeNbins = bins; }
39 virtual void SetAbsTimeFirst(const Axis_t first=fgAbsTimeFirst) { fAbsTimeFirst = first; }
40 virtual void SetAbsTimeLast( const Axis_t last =fgAbsTimeLast) { fAbsTimeLast = last; }
41
42 // Getters
43 TH1F *GetHAbsTime() { return &fHAbsTime; }
44 const TH1F *GetHAbsTime() const { return &fHAbsTime; }
45
46 const Float_t GetAbsTimeMean( ) const;
47 const Float_t GetAbsTimeRms() const;
48 const Float_t GetIntegral() const;
49
50 // Fill histos
51 Bool_t FillAbsTime(const Float_t t);
52
53 // Draws
54 virtual void Draw(Option_t *opt="");
55
56 // Miscelleaneous
57 void ChangeHistId(Int_t id);
58
59 ClassDef(MHCalibrationChargePix, 1) // Base Histogram class for Charge Pixel Calibration
60};
61
62#endif /* MARS_MHCalibrationChargePix */
Note: See TracBrowser for help on using the repository browser.