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

Last change on this file since 2535 was 2525, checked in by gaug, 22 years ago
*** empty log message ***
File size: 1.8 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 Float_t fQ; // The mean charge after the fit
15 Float_t fErrQ; // 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 fSigmaQ; // The sigma of the mean charge after the fit
19 Float_t fErrSigmaQ; // The error of the sigma of the mean charge after the fit
20 Float_t fT; // The mean arrival time after the fit
21 Float_t fErrT; // The error of the mean arrival time after the fit
22
23 Float_t fRQ; // The reduced mean charge after the fit
24 Float_t fErrRQ; // The error of the reduced mean charge after the fit
25
26 MHCalibrationPINDiode *fHist; // Pointer to the histograms performing the fits, etc.
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 fRQ >=0 || fErrRQ >= 0; }
39
40 Bool_t FillQ(Int_t q) { return fHist->FillQ(q); }
41 Bool_t FillT(Int_t t) { return fHist->FillT(t); }
42 Bool_t FillRQvsT(Float_t rq, Int_t t) { return fHist->FillQvsN(rq,t); }
43
44 Bool_t FitQ();
45 Bool_t FitT();
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.