source: trunk/MagicSoft/Mars/manalysis/MCalibrationPINDiode.h@ 2641

Last change on this file since 2641 was 2627, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.9 KB
Line 
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
10class MCalibrationPINDiode : public MParContainer
11{
12private:
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
28public:
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
Note: See TracBrowser for help on using the repository browser.