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

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