1 | #ifndef MARS_MCalibrationPINDiode
|
---|
2 | #define MARS_MCalibrationPINDiode
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #include "MHCalibrationPINDiode.h"
|
---|
9 |
|
---|
10 | class MCalibrationPINDiode : public MParContainer
|
---|
11 | {
|
---|
12 | private:
|
---|
13 |
|
---|
14 | MHCalibrationPINDiode *fHist; // Pointer to the histograms performing the fits, etc.
|
---|
15 |
|
---|
16 | Float_t fCharge; // The mean charge after the fit
|
---|
17 | Float_t fErrCharge; // The error of mean charge after the fit
|
---|
18 | Float_t fPed; // The mean pedestal (from MPedestalPix)
|
---|
19 | Float_t fPedRms; // The pedestal RMS (from MPedestalPix)
|
---|
20 | Float_t fSigmaCharge; // The sigma of the mean charge after the fit
|
---|
21 | Float_t fErrSigmaCharge; // The error of the sigma of the mean charge after the fit
|
---|
22 | Float_t fTime; // The mean arrival time after the fit
|
---|
23 | Float_t fErrTime; // The error of the mean arrival time after the fit
|
---|
24 |
|
---|
25 | Float_t fRCharge; // The reduced mean charge after the fit
|
---|
26 | Float_t fErrRCharge; // The error of the reduced mean charge after the fit
|
---|
27 |
|
---|
28 | public:
|
---|
29 |
|
---|
30 | MCalibrationPINDiode(const char *name=NULL, const char *title=NULL);
|
---|
31 | ~MCalibrationPINDiode();
|
---|
32 |
|
---|
33 | void Clear(Option_t *o="");
|
---|
34 |
|
---|
35 | void SetPed(Float_t ped) { fPed = ped; }
|
---|
36 | void SetPedRms(Float_t pedrms) { fPedRms = pedrms; }
|
---|
37 |
|
---|
38 | Bool_t IsValid() const { return fRCharge >=0 || fErrRCharge >= 0; }
|
---|
39 |
|
---|
40 | Bool_t FillCharge(Float_t q) { return fHist->FillChargeHiGain(q); }
|
---|
41 | Bool_t FillTime(Int_t t) { return fHist->FillTimeHiGain(t); }
|
---|
42 | Bool_t FillRChargevsTime(Float_t rq, Int_t t) { return fHist->FillChargevsNHiGain(rq,t); }
|
---|
43 |
|
---|
44 | Bool_t FitCharge();
|
---|
45 | Bool_t FitTime();
|
---|
46 |
|
---|
47 | MHCalibrationPINDiode *GetHist() const { return fHist; }
|
---|
48 |
|
---|
49 | ClassDef(MCalibrationPINDiode, 1) // Storage Container for Calibration information of one pixel
|
---|
50 | };
|
---|
51 |
|
---|
52 | #endif /* MARS_MCalibrationPINDiode */
|
---|
53 |
|
---|