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

Last change on this file since 2666 was 2666, checked in by gaug, 21 years ago
*** empty log message ***
File size: 6.3 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 Int_t fPixId; // the pixel Id
15
16 Float_t fCharge; // The mean reduced charge after the fit
17 Float_t fErrCharge; // The error of reduced mean charge after the fit
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 fRSigmaSquare; // The reduced squares of sigmas after the fit
21 Float_t fChargeProb; // The probability of the fit function
22
23 Float_t fPed; // The mean pedestal (from MPedestalPix)
24 Float_t fPedRms; // The pedestal RMS (from MPedestalPix)
25
26 Float_t fTime; // The mean arrival time after the fit
27 Float_t fSigmaTime; // The error of the mean arrival time after the fit
28 Float_t fTimeChiSquare; // The probability of the fit function
29
30 Float_t fFactor; // The laboratory F-factor
31 Float_t fPheFFactorMethod; // The number of Phe's calculated after the F-factor method
32
33 Float_t fConversionFFactorMethod; // The conversion factor to Ph's calculated after the F-factor method
34 Float_t fConversionBlindPixelMethod; // The conversion factor to Ph's calculated after the Blind Pixel method
35 Float_t fConversionPINDiodeMethod; // The conversion factor to Ph's calculated after the PIN Diode method
36
37 Float_t fConversionErrorFFactorMethod; // The conversion factor to Phe's calculated after the F-factor method
38 Float_t fConversionErrorBlindPixelMethod; // The conversion factor to Phe's calculated after the Blind Pixel method
39 Float_t fConversionErrorPINDiodeMethod; // The conversion factor to Phe's calculated after the PIN Diode method
40
41 Float_t fConversionSigmaFFactorMethod; // The conversion factor to Ph's calculated after the F-factor method
42 Float_t fConversionSigmaBlindPixelMethod; // The conversion factor to Ph's calculated after the Blind Pixel method
43 Float_t fConversionSigmaPINDiodeMethod; // The conversion factor to Phd's calculated after the PIN Diode method
44
45 Bool_t fHiGainSaturation; // Is Lo-Gain used at all?
46
47 Float_t fElectronicPedRms;
48
49 MHCalibrationPixel *fHist; //! Pointer to the histograms performing the fits, etc.
50
51public:
52
53 MCalibrationPix(const char *name=NULL, const char *title=NULL);
54 ~MCalibrationPix();
55
56 void Clear(Option_t *o="");
57
58 Float_t GetCharge() const { return fCharge; }
59 Float_t GetRSigmaSquare() const { return fRSigmaSquare; }
60
61 Float_t GetErrCharge() const { return fErrCharge; }
62 Float_t GetChargeProb() const { return fChargeProb; }
63
64 Float_t GetSigmaCharge() const { return fSigmaCharge; }
65 Float_t GetErrSigmaCharge() const { return fErrSigmaCharge; }
66 Float_t GetTime() const { return fTime; }
67 Float_t GetSigmaTime() const { return fSigmaTime; }
68 Float_t GetTimeChiSquare() const { return fTimeChiSquare; }
69
70 Float_t GetPed() const { return fPed; }
71 Float_t GetPedRms() const { return fPedRms; }
72
73 void SetPedestal(Float_t ped, Float_t pedrms);
74 void SetHiGainSaturation() { fHiGainSaturation = kTRUE; fHist->SetUseLoGain(); }
75
76 void SetConversionFFactorMethod(Float_t c, Float_t err, Float_t sig)
77 {
78 fConversionFFactorMethod = c;
79 fConversionErrorFFactorMethod = err;
80 fConversionSigmaFFactorMethod = sig;
81 }
82 void SetConversionBlindPixelMethod(Float_t c, Float_t err, Float_t sig)
83 {
84 fConversionBlindPixelMethod = c;
85 fConversionErrorBlindPixelMethod = err;
86 fConversionSigmaBlindPixelMethod = sig;
87 }
88
89 void SetConversionPINDiodeMethod(Float_t c, Float_t err, Float_t sig)
90 {
91 fConversionPINDiodeMethod = c ;
92 fConversionErrorPINDiodeMethod = err;
93 fConversionSigmaPINDiodeMethod = sig;
94 }
95
96 Float_t GetMeanConversionBlindPixelMethod() const { return fConversionBlindPixelMethod ; }
97 Float_t GetErrorConversionBlindPixelMethod() const { return fConversionErrorBlindPixelMethod ; }
98 Float_t GetSigmaConversionBlindPixelMethod() const { return fConversionSigmaBlindPixelMethod ; }
99
100 Float_t GetMeanConversionFFactorMethod() const { return fConversionFFactorMethod ; }
101 Float_t GetErrorConversionFFactorMethod() const { return fConversionErrorFFactorMethod ; }
102 Float_t GetSigmaConversionFFactorMethod() const { return fConversionSigmaFFactorMethod ; }
103 Float_t GetPheFFactorMethod() const { return fPheFFactorMethod; }
104
105 Float_t GetMeanConversionPINDiodeMethod() const { return fConversionPINDiodeMethod ; }
106 Float_t GetErrorConversionPINDiodeMethod() const { return fConversionErrorPINDiodeMethod ; }
107 Float_t GetSigmaConversionPINDiodeMethod() const { return fConversionSigmaPINDiodeMethod ; }
108
109 void SetChargesInGraph(Float_t qhi,Float_t qlo) { fHist->SetPointInGraph(qhi,qlo); }
110
111 Bool_t FillChargeHiGain(Float_t q) { return fHist->FillChargeHiGain(q); }
112 Bool_t FillTimeHiGain(Int_t t) { return fHist->FillTimeHiGain(t); }
113 Bool_t FillRChargevsTimeHiGain(Float_t rq, Int_t t) { return fHist->FillChargevsNHiGain(rq,t); }
114
115 Bool_t FillChargeLoGain(Float_t q) { return fHist->FillChargeLoGain(q); }
116 Bool_t FillTimeLoGain(Int_t t) { return fHist->FillTimeLoGain(t); }
117 Bool_t FillRChargevsTimeLoGain(Float_t rq, Int_t t) { return fHist->FillChargevsNLoGain(rq,t); }
118
119 Bool_t IsValid() const { return fCharge >=0 || fErrCharge >= 0; }
120 Int_t GetPixId() const { return fPixId; }
121 void DefinePixId(Int_t i);
122
123 Bool_t FitCharge();
124 Bool_t FitTime();
125
126 MHCalibrationPixel *GetHist() const { return fHist; }
127 void Draw(Option_t *opt="") { fHist->Draw(opt); }
128
129
130 ClassDef(MCalibrationPix, 1) // Storage Container for Calibration information of one pixel
131};
132
133#endif
134
Note: See TracBrowser for help on using the repository browser.