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

Last change on this file since 2899 was 2885, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.8 KB
Line 
1#ifndef MARS_MCalibrationPINDiode
2#define MARS_MCalibrationPINDiode
3
4#ifndef MARS_MHCalibrationPINDiode
5#include "MHCalibrationPINDiode.h"
6#endif
7
8class MCalibrationPINDiode : public MParContainer
9{
10private:
11
12 MHCalibrationPINDiode *fHist; // Pointer to the histograms performing the fits, etc.
13
14 Float_t fCharge; // The mean charge after the fit
15 Float_t fErrCharge; // The error of mean charge after the fit
16 Float_t fPed; // The mean pedestal (from MPedestalPix)
17 Float_t fPedRms; // The pedestal RMS (from MPedestalPix)
18 Float_t fSigmaCharge; // The sigma of the mean charge after the fit
19 Float_t fErrSigmaCharge; // The error of the sigma of the mean charge after the fit
20 Float_t fTime; // The mean arrival time after the fit
21 Float_t fErrTime; // The error of the mean arrival time after the fit
22
23public:
24
25 MCalibrationPINDiode(const char *name=NULL, const char *title=NULL);
26 ~MCalibrationPINDiode();
27
28 void Clear(Option_t *o="");
29
30 void SetPed(Float_t ped) { fPed = ped; }
31 void SetPedRms(Float_t pedrms) { fPedRms = pedrms; }
32
33 Float_t GetMean() const { return fCharge; }
34 Float_t GetMeanError() const { return fErrCharge; }
35
36 Bool_t IsFitOK() const { return fCharge > 0 && fErrCharge > 0; }
37
38 Bool_t FillCharge(Float_t q) { return fHist->FillChargeHiGain(q); }
39 Bool_t FillTime(Int_t t) { return fHist->FillTimeHiGain(t); }
40 Bool_t FillRChargevsTime(Float_t rq, Int_t t) { return fHist->FillChargevsNHiGain(rq,t); }
41
42 Bool_t FitCharge();
43 Bool_t FitTime();
44
45 MHCalibrationPINDiode *GetHist() const { return fHist; }
46
47 ClassDef(MCalibrationPINDiode, 1) // Storage Container for Calibration information of one pixel
48};
49
50#endif /* MARS_MCalibrationPINDiode */
51
Note: See TracBrowser for help on using the repository browser.