source: trunk/MagicSoft/Mars/manalysis/MCalibrationPix.h@ 2556

Last change on this file since 2556 was 2544, checked in by gaug, 22 years ago
*** empty log message ***
File size: 2.7 KB
Line 
1#ifndef MARS_MCalibrationPix
2#define MARS_MCalibrationPix
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#include "MHCalibrationPixel.h"
9
10class MCalibrationPix : public MParContainer
11{
12private:
13
14 //
15 // FIXME: Derive class from MCerphotPix ??
16 //
17 Int_t fPixId; // the pixel Id
18
19 Float_t fQ; // The mean charge after the fit
20 Float_t fErrQ; // The error of mean charge after the fit
21 Float_t fSigmaQ; // The sigma of the mean charge after the fit
22 Float_t fErrSigmaQ; // The error of the sigma of the mean charge after the fit
23 Float_t fQProb; // The probability of the fit function
24
25 Float_t fPed; // The mean pedestal (from MPedestalPix)
26 Float_t fPedRms; // The pedestal RMS (from MPedestalPix)
27
28 Float_t fT; // The mean arrival time after the fit
29 Float_t fSigmaT; // The error of the mean arrival time after the fit
30 Float_t fTProb; // The probability of the fit function
31
32 Float_t fRQ; // The reduced mean charge after the fit
33 Float_t fErrRQ; // The error of the reduced mean charge after the fit
34
35 MHCalibrationPixel *fHist; // Pointer to the histograms performing the fits, etc.
36
37public:
38
39 MCalibrationPix(Int_t pix=-1, const char *name=NULL, const char *title=NULL);
40 ~MCalibrationPix();
41
42 void Clear(Option_t *o="");
43
44 Float_t GetQ() const { return fQ; }
45 Float_t GetRQ() const { return fRQ; }
46
47 Float_t GetErrQ() const { return fErrQ; }
48 Float_t GetErrRQ() const { return fErrRQ; }
49 Float_t GetQProb() const { return fQProb; }
50
51 Float_t GetSigmaQ() const { return fSigmaQ; }
52 Float_t GetErrSigmaQ() const { return fErrSigmaQ; }
53 Float_t GetT() const { return fT; }
54 Float_t GetSigmaT() const { return fSigmaT; }
55 Float_t GetTProb() const { return fTProb; }
56
57 Float_t GetPed() const { return fPed; }
58 Float_t GetPedRms() const { return fPedRms; }
59
60 void SetPedestal(Float_t ped, Float_t pedrms);
61
62 Bool_t FillQ(Int_t q) { return fHist->FillQ(q); }
63 Bool_t FillT(Int_t t) { return fHist->FillT(t); }
64 Bool_t FillRQvsT(Float_t rq, Int_t t) { return fHist->FillQvsN(rq,t); }
65
66 Bool_t IsValid() const { return fRQ >=0 || fErrRQ >= 0; }
67 Int_t GetPixId() const { return fPixId; }
68
69 Bool_t FitQ();
70 Bool_t FitT();
71
72 MHCalibrationPixel *GetHist() const { return fHist; }
73 virtual void Draw(Option_t *opt="") { fHist->Draw(opt); }
74
75 void Test();
76
77 ClassDef(MCalibrationPix, 1) // Storage Container for Calibration information of one pixel
78};
79
80#endif
81
Note: See TracBrowser for help on using the repository browser.