source: trunk/MagicSoft/Mars/mcalib/MCalibrationPINDiode.h@ 2804

Last change on this file since 2804 was 2734, checked in by tbretz, 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
25public:
26
27 MCalibrationPINDiode(const char *name=NULL, const char *title=NULL);
28 ~MCalibrationPINDiode();
29
30 void Clear(Option_t *o="");
31
32 void SetPed(Float_t ped) { fPed = ped; }
33 void SetPedRms(Float_t pedrms) { fPedRms = pedrms; }
34
35 Float_t GetMean() const { return fCharge; }
36 Float_t GetMeanError() const { return fErrCharge; }
37
38 Bool_t IsFitOK() const { return fCharge > 0 && fErrCharge > 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.