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

Last change on this file since 4121 was 3639, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.4 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
29 Float_t fSaturated; // Number of events classified as saturated
30
31public:
32
33 MHCalibrationChargePix(const char *name=NULL, const char *title=NULL);
34 ~MHCalibrationChargePix() {}
35
36 virtual void Clear(Option_t *o="");
37 virtual void Reset();
38 virtual void InitBins();
39
40 // Setters
41 virtual void SetAbsTimeNbins(const Int_t bins =fgAbsTimeNbins) { fAbsTimeNbins = bins; }
42 virtual void SetAbsTimeFirst(const Axis_t first=fgAbsTimeFirst) { fAbsTimeFirst = first; }
43 virtual void SetAbsTimeLast( const Axis_t last =fgAbsTimeLast) { fAbsTimeLast = last; }
44
45 void SetSaturated ( const Float_t f ) { fSaturated += f; }
46
47 // Getters
48 TH1F *GetHAbsTime() { return &fHAbsTime; }
49 const TH1F *GetHAbsTime() const { return &fHAbsTime; }
50
51 const Float_t GetAbsTimeMean( ) const;
52 const Float_t GetAbsTimeRms() const;
53 const Float_t GetIntegral() const;
54 const Float_t GetSaturated() const { return fSaturated; }
55
56 // Fill histos
57 Bool_t FillAbsTime(const Float_t t);
58
59 // Draws
60 virtual void Draw(Option_t *opt="");
61
62 // Miscelleaneous
63 void ChangeHistId(Int_t id);
64
65 ClassDef(MHCalibrationChargePix, 1) // Base Histogram class for Charge Pixel Calibration
66};
67
68#endif
Note: See TracBrowser for help on using the repository browser.