1 | #ifndef MARS_MCalibrationChargeBlindPix
|
---|
2 | #define MARS_MCalibrationChargeBlindPix
|
---|
3 |
|
---|
4 | #ifndef MARS_MCalibrationChargeCam
|
---|
5 | #include "MCalibrationChargeCam.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef MARS_MCalibrationChargePix
|
---|
9 | #include "MCalibrationChargePix.h"
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | class MCalibrationChargeBlindPix : public MCalibrationChargePix
|
---|
13 | {
|
---|
14 | private:
|
---|
15 |
|
---|
16 | static const Float_t gkBlindPixelArea; //! The Blind Pixel area in mm^2
|
---|
17 | static const Float_t gkBlindPixelAttGreen; //! Attenuation Filter at 520 nm
|
---|
18 | static const Float_t gkBlindPixelAttBlue ; //! Attenuation Filter at 460 nm
|
---|
19 | static const Float_t gkBlindPixelAttUV ; //! Attenuation Filter at 370 nm
|
---|
20 | static const Float_t gkBlindPixelAttCT1 ; //! Attenuation Filter at 370 nm
|
---|
21 | static const Float_t gkBlindPixelQEUnCoatedGreen; //! Quantum Efficiency at 520 nm
|
---|
22 | static const Float_t gkBlindPixelQEUnCoatedBlue ; //! Quantum Efficiency at 460 nm
|
---|
23 | static const Float_t gkBlindPixelQEUnCoatedUV ; //! Quantum Efficiency at 370 nm
|
---|
24 | static const Float_t gkBlindPixelQEUnCoatedCT1 ; //! Quantum Efficiency at 370 nm
|
---|
25 | static const Float_t gkBlindPixelQEUnCoatedGreenErr; //! Uncertainty QEUnCoated at 520 nm
|
---|
26 | static const Float_t gkBlindPixelQEUnCoatedBlueErr ; //! Uncertainty QEUnCoated at 460 nm
|
---|
27 | static const Float_t gkBlindPixelQEUnCoatedUVErr ; //! Uncertainty QEUnCoated at 370 nm
|
---|
28 | static const Float_t gkBlindPixelQEUnCoatedCT1Err ; //! Uncertainty QEUnCoated at 370 nmu
|
---|
29 | static const Float_t gkBlindPixelQECoatedGreen; //! Quantum Efficiency at 520 nm
|
---|
30 | static const Float_t gkBlindPixelQECoatedBlue ; //! Quantum Efficiency at 460 nm
|
---|
31 | static const Float_t gkBlindPixelQECoatedUV ; //! Quantum Efficiency at 370 nm
|
---|
32 | static const Float_t gkBlindPixelQECoatedCT1 ; //! Quantum Efficiency at 370 nm
|
---|
33 | static const Float_t gkBlindPixelQECoatedGreenErr; //! Uncertainty QECoated at 520 nm
|
---|
34 | static const Float_t gkBlindPixelQECoatedBlueErr ; //! Uncertainty QECoated at 460 nm
|
---|
35 | static const Float_t gkBlindPixelQECoatedUVErr ; //! Uncertainty QECoated at 370 nm
|
---|
36 | static const Float_t gkBlindPixelQECoatedCT1Err ; //! Uncertainty QECoated at 370 nmu
|
---|
37 | static const Float_t gkBlindPixelCollectionEff; //! Collection Efficiency
|
---|
38 | static const Float_t gkBlindPixelCollectionEffErr; //! Uncertainty Collection Efficiency
|
---|
39 |
|
---|
40 | Float_t fLambda; // Mean Poisson fit
|
---|
41 | Float_t fLambdaCheck; // Mean Pedestal Check (Gauss) fit
|
---|
42 | Float_t fLambdaCheckErr; // Error mean pedestal Check fit
|
---|
43 | Float_t fLambdaVar; // Variance lambda Poisson fit
|
---|
44 | Float_t fFluxInsidePlexiglass; // Number photons in INNER PIXEL inside the plexiglass
|
---|
45 | Float_t fFluxInsidePlexiglassVar; // Variance number of photons in INNER PIXEL
|
---|
46 | Float_t fMu0; // Position pedestal peak
|
---|
47 | Float_t fMu0Err; // Error pos. pedestal-peak
|
---|
48 | Float_t fMu1; // Position first photo-electron peak
|
---|
49 | Float_t fMu1Err; // Error pos. first photo-electon peak
|
---|
50 | Float_t fSigma0; // Width pedestal peak
|
---|
51 | Float_t fSigma0Err; // Error width pedestal peak
|
---|
52 | Float_t fSigma1; // Width first photo-electron peak
|
---|
53 | Float_t fSigma1Err; // Error width first photo-electron peak
|
---|
54 |
|
---|
55 | enum { kOscillating, kPedestalFitOK, kSinglePheFitOK, kChargeFitValid,
|
---|
56 | kFluxInsidePlexiglassAvailable, kCoated };
|
---|
57 |
|
---|
58 | MCalibrationCam::PulserColor_t fColor;
|
---|
59 |
|
---|
60 | const Float_t GetBlindPixelQEGreen() const;
|
---|
61 | const Float_t GetBlindPixelQEBlue () const;
|
---|
62 | const Float_t GetBlindPixelQEUV () const;
|
---|
63 | const Float_t GetBlindPixelQECT1 () const;
|
---|
64 |
|
---|
65 | const Float_t GetBlindPixelQEGreenRelVar () const;
|
---|
66 | const Float_t GetBlindPixelQEBlueRelVar () const;
|
---|
67 | const Float_t GetBlindPixelQEUVRelVar () const;
|
---|
68 | const Float_t GetBlindPixelQECT1RelVar () const;
|
---|
69 | const Float_t GetBlindPixelCollectionEffRelVar () const;
|
---|
70 |
|
---|
71 | public:
|
---|
72 |
|
---|
73 | MCalibrationChargeBlindPix(const char *name=NULL, const char *title=NULL);
|
---|
74 | ~MCalibrationChargeBlindPix() {}
|
---|
75 |
|
---|
76 | Bool_t CalcFluxInsidePlexiglass();
|
---|
77 | void Clear(Option_t *o="");
|
---|
78 |
|
---|
79 | // Getters
|
---|
80 | MCalibrationCam::PulserColor_t GetColor () const { return fColor; }
|
---|
81 | Float_t GetLambda () const { return fLambda; }
|
---|
82 | Float_t GetLambdaErr () const;
|
---|
83 | Float_t GetLambdaRelVar () const;
|
---|
84 | Float_t GetLambdaCheck () const { return fLambdaCheck; }
|
---|
85 | Float_t GetLambdaCheckErr () const { return fLambdaCheckErr; }
|
---|
86 | Float_t GetFluxInsidePlexiglass () const { return fFluxInsidePlexiglass; }
|
---|
87 | Float_t GetFluxInsidePlexiglassErr () const;
|
---|
88 | Float_t GetFluxInsidePlexiglassRelVar () const;
|
---|
89 | Float_t GetMu0 () const { return fMu0; }
|
---|
90 | Float_t GetMu0Err () const { return fMu0Err; }
|
---|
91 | Float_t GetMu1 () const { return fMu1; }
|
---|
92 | Float_t GetMu1Err () const { return fMu1Err; }
|
---|
93 | Float_t GetSigma0 () const { return fSigma0; }
|
---|
94 | Float_t GetSigma0Err () const { return fSigma0Err; }
|
---|
95 | Float_t GetSigma1 () const { return fSigma1; }
|
---|
96 | Float_t GetSigma1Err () const { return fSigma1Err; }
|
---|
97 |
|
---|
98 | Bool_t IsCoated () const;
|
---|
99 | Bool_t IsOscillating () const;
|
---|
100 | Bool_t IsChargeFitValid () const;
|
---|
101 | Bool_t IsPedestalFitOK () const;
|
---|
102 | Bool_t IsSinglePheFitOK () const;
|
---|
103 | Bool_t IsFluxInsidePlexiglassAvailable () const;
|
---|
104 |
|
---|
105 | // Setters
|
---|
106 | void SetColor ( const MCalibrationCam::PulserColor_t color ) { fColor = color; }
|
---|
107 | void SetLambda ( const Float_t f ) { fLambda = f; }
|
---|
108 | void SetLambdaVar ( const Float_t f ) { fLambdaVar = f; }
|
---|
109 | void SetLambdaCheck ( const Float_t f ) { fLambdaCheck = f; }
|
---|
110 | void SetLambdaCheckErr ( const Float_t f ) { fLambdaCheckErr = f; }
|
---|
111 | void SetMu0 ( const Float_t f ) { fMu0 = f; }
|
---|
112 | void SetMu0Err ( const Float_t f ) { fMu0Err = f; }
|
---|
113 | void SetMu1 ( const Float_t f ) { fMu1 = f; }
|
---|
114 | void SetMu1Err ( const Float_t f ) { fMu1Err = f; }
|
---|
115 | void SetSigma0 ( const Float_t f ) { fSigma0 = f; }
|
---|
116 | void SetSigma0Err ( const Float_t f ) { fSigma0Err = f; }
|
---|
117 | void SetSigma1 ( const Float_t f ) { fSigma1 = f; }
|
---|
118 | void SetSigma1Err ( const Float_t f ) { fSigma1Err = f; }
|
---|
119 |
|
---|
120 | void SetCoated ( const Bool_t b=kTRUE );
|
---|
121 | void SetOscillating ( const Bool_t b=kTRUE );
|
---|
122 | void SetChargeFitValid ( const Bool_t b=kTRUE );
|
---|
123 | void SetPedestalFitOK ( const Bool_t b=kTRUE );
|
---|
124 | void SetSinglePheFitOK ( const Bool_t b=kTRUE );
|
---|
125 | void SetFluxInsidePlexiglassAvailable( const Bool_t b=kTRUE);
|
---|
126 |
|
---|
127 | ClassDef(MCalibrationChargeBlindPix, 2) // Container Charge Calibration Results Blind Pixel
|
---|
128 | };
|
---|
129 |
|
---|
130 | #endif
|
---|
131 |
|
---|
132 |
|
---|
133 |
|
---|
134 |
|
---|