source: trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePINDiode.h@ 3444

Last change on this file since 3444 was 3266, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.9 KB
Line 
1#ifndef MARS_MHCalibrationChargePINDiode
2#define MARS_MHCalibrationChargePINDiode
3
4
5#ifndef MARS_MHCalibrationChargePix
6#include "MHCalibrationChargePix.h"
7#endif
8
9class TH1F;
10class MCalibrationChargePINDiode;
11class MHCalibrationChargePINDiode : public MHCalibrationChargePix
12{
13private:
14
15 MCalibrationChargePINDiode *fPINDiode; //! Storage container of the results
16
17 TH1F fHRmsCharge; // Variance of summed FADC slices
18
19 static const Int_t fgChargeNbins;
20 static const Axis_t fgChargeFirst;
21 static const Axis_t fgChargeLast;
22
23 static const Int_t fgRmsChargeNbins;
24 static const Axis_t fgRmsChargeFirst;
25 static const Axis_t fgRmsChargeLast;
26
27 static const Int_t fgAbsTimeNbins;
28 static const Axis_t fgAbsTimeFirst;
29 static const Axis_t fgAbsTimeLast;
30
31 Int_t fRmsChargeNbins;
32 Axis_t fRmsChargeFirst;
33 Axis_t fRmsChargeLast;
34
35 Float_t fRmsChargeMean;
36 Float_t fRmsChargeMeanErr;
37 Float_t fRmsChargeSigma;
38 Float_t fRmsChargeSigmaErr;
39
40 Float_t fExtractSlices;
41
42public:
43
44 MHCalibrationChargePINDiode(const char *name=NULL, const char *title=NULL);
45 ~MHCalibrationChargePINDiode(){}
46
47 void Clear(Option_t *o="");
48 void Init();
49
50 Bool_t SetupFill(const MParList *pList);
51 Bool_t ReInit ( MParList *pList);
52 Bool_t Fill (const MParContainer *par, const Stat_t w=1);
53 Bool_t Finalize();
54
55 // Setters
56 void SetChargeNbins(const Int_t bins =fgChargeNbins) { fChargeNbins = bins; }
57 void SetChargeFirst(const Axis_t first=fgChargeFirst) { fChargeFirst = first; }
58 void SetChargeLast( const Axis_t last =fgChargeLast) { fChargeLast = last; }
59
60 void SetAbsTimeNbins(const Int_t bins =fgAbsTimeNbins) { fAbsTimeNbins = bins; }
61 void SetAbsTimeFirst(const Axis_t first=fgAbsTimeFirst) { fAbsTimeFirst = first; }
62 void SetAbsTimeLast( const Axis_t last =fgAbsTimeLast) { fAbsTimeLast = last; }
63
64 void SetRmsChargeNbins(const Int_t bins =fgRmsChargeNbins) { fRmsChargeNbins = bins; }
65 void SetRmsChargeFirst(const Axis_t first=fgRmsChargeFirst) { fRmsChargeFirst = first; }
66 void SetRmsChargeLast( const Axis_t last =fgRmsChargeLast) { fRmsChargeLast = last; }
67
68 // Getters
69 TH1F *GetHRmsCharge() { return &fHRmsCharge; }
70 const TH1F *GetHRmsCharge() const { return &fHRmsCharge; }
71
72 Float_t GetRmsChargeMean() const { return fRmsChargeMean; }
73 Float_t GetRmsChargeMeanErr() const { return fRmsChargeMeanErr; }
74 Float_t GetRmsChargeSigma() const { return fRmsChargeSigma; }
75 Float_t GetRmsChargeSigmaErr() const { return fRmsChargeSigmaErr; }
76
77 // Fill histos
78 Bool_t FillRmsCharge(const Float_t q);
79
80 // Fits
81 Bool_t FitRmsCharge(Option_t *option="RQ0");
82
83 // Draw
84 void Draw(Option_t *opt="");
85
86 ClassDef(MHCalibrationChargePINDiode, 1) // Histogram class for the Calibration PIN Diode
87};
88
89#endif
90
Note: See TracBrowser for help on using the repository browser.