source: trunk/MagicSoft/Mars/mcalib/MCalibrationChargeBlindPix.h@ 4673

Last change on this file since 4673 was 4673, checked in by gaug, 20 years ago
*** empty log message ***
File size: 7.9 KB
Line 
1#ifndef MARS_MCalibrationChargeBlindPix
2#define MARS_MCalibrationChargeBlindPix
3
4#ifndef MARS_MCalibrationChargeCam
5#include "MCalibrationChargeCam.h"
6#endif
7
8#ifndef MARS_MCalibrationPix
9#include "MCalibrationPix.h"
10#endif
11
12class MCalibrationChargeBlindPix : public MCalibrationPix
13{
14private:
15
16 static const Float_t fgArea; //! The Blind Pixel area in mm^2
17 static const Float_t fgAttGreen; //! Attenuation Filter at 520 nm
18 static const Float_t fgAttBlue ; //! Attenuation Filter at 460 nm
19 static const Float_t fgAttUV ; //! Attenuation Filter at 370 nm
20 static const Float_t fgAttCT1 ; //! Attenuation Filter at 370 nm
21 static const Float_t fgAttErr; //! Error Att. Filter at all w.l.
22 static const Float_t fgQEGreen; //! Quantum Efficiency at 520 nm
23 static const Float_t fgQEBlue ; //! Quantum Efficiency at 460 nm
24 static const Float_t fgQEUV ; //! Quantum Efficiency at 370 nm
25 static const Float_t fgQECT1 ; //! Quantum Efficiency at 370 nm
26 static const Float_t fgQEErrGreen; //! Uncertainty QEUnCoated at 520 nm
27 static const Float_t fgQEErrBlue; //! Uncertainty QEUnCoated at 460 nm
28 static const Float_t fgQEErrUV ; //! Uncertainty QEUnCoated at 370 nm
29 static const Float_t fgQEErrCT1 ; //! Uncertainty QEUnCoated at 370 nmu
30 static const Float_t fgCollEffGreen; //! Collecttion Efficiency
31 static const Float_t fgCollEffBlue; //! Collecttion Efficiency
32 static const Float_t fgCollEffUV; //! Collecttion Efficiency
33 static const Float_t fgCollEffCT1; //! Collecttion Efficiency
34 static const Float_t fgCollEffErr; //! Uncertainty Collection Efficiency
35
36 Float_t fArea; // Blind Pixel Area
37 TArrayF fAtt; // Attenuation filter (per color)
38 TArrayF fAttErr; // Error attnuation filter (per color)
39 TArrayF fQE; // Quantum eff. (per color)
40 TArrayF fQEErr; // Error Quantum eff. (per color)
41 TArrayF fCollEff; // Coll eff. (per color)
42 TArrayF fCollEffErr; // Error coll. eff. (per color)
43
44 Float_t fLambda; // Mean Poisson fit
45 Float_t fLambdaCheck; // Mean Pedestal Check (Gauss) fit
46 Float_t fLambdaCheckErr; // Error mean pedestal Check fit
47 Float_t fLambdaVar; // Variance lambda Poisson fit
48 Float_t fFluxInsidePlexiglass; // Number photons in INNER PIXEL inside the plexiglass
49 Float_t fFluxInsidePlexiglassVar; // Variance number of photons in INNER PIXEL
50 Float_t fMu0; // Position pedestal peak
51 Float_t fMu0Err; // Error pos. pedestal-peak
52 Float_t fMu1; // Position first photo-electron peak
53 Float_t fMu1Err; // Error pos. first photo-electon peak
54 Float_t fSigma0; // Width pedestal peak
55 Float_t fSigma0Err; // Error width pedestal peak
56 Float_t fSigma1; // Width first photo-electron peak
57 Float_t fSigma1Err; // Error width first photo-electron peak
58
59 enum { kOscillating, kPedestalFitOK, kSinglePheFitOK, kChargeFitValid,
60 kFluxInsidePlexiglassAvailable }; // Possible validity flags
61
62 MCalibrationCam::PulserColor_t fColor; // Colour of the used pulser light
63
64public:
65
66 MCalibrationChargeBlindPix(const char *name=NULL, const char *title=NULL);
67
68 Bool_t CalcFluxInsidePlexiglass();
69 void Clear(Option_t *o="");
70 void Copy(TObject& object) const;
71
72 // Getters
73 const Float_t GetAtt () const;
74 const Float_t GetAttRelVar () const;
75 const Float_t GetQE () const;
76 const Float_t GetQERelVar () const;
77 const Float_t GetCollEff () const;
78 const Float_t GetCollEffRelVar() const;
79
80 const MCalibrationCam::PulserColor_t GetColor () const { return fColor; }
81 const Float_t GetLambda () const { return fLambda; }
82 const Float_t GetLambdaErr () const;
83 const Float_t GetLambdaRelVar () const;
84 const Float_t GetLambdaCheck () const { return fLambdaCheck; }
85 const Float_t GetLambdaCheckErr () const { return fLambdaCheckErr; }
86 const Float_t GetFluxInsidePlexiglass () const { return fFluxInsidePlexiglass; }
87 const Float_t GetFluxInsidePlexiglassErr () const;
88 const Float_t GetFluxInsidePlexiglassRelVar () const;
89 const Float_t GetMu0 () const { return fMu0; }
90 const Float_t GetMu0Err () const { return fMu0Err; }
91 const Float_t GetMu1 () const { return fMu1; }
92 const Float_t GetMu1Err () const { return fMu1Err; }
93 const Float_t GetSigma0 () const { return fSigma0; }
94 const Float_t GetSigma0Err () const { return fSigma0Err; }
95 const Float_t GetSigma1 () const { return fSigma1; }
96 const Float_t GetSigma1Err () const { return fSigma1Err; }
97
98 const Bool_t IsOscillating () const;
99 const Bool_t IsChargeFitValid () const;
100 const Bool_t IsPedestalFitOK () const;
101 const Bool_t IsSinglePheFitOK () const;
102 const Bool_t IsFluxInsidePlexiglassAvailable () const;
103
104 void Print(Option_t *opt=NULL) const;
105
106 // Setters
107 void SetArea ( Float_t f ) { fArea = f; }
108 void SetAtt ( Float_t f, const MCalibrationCam::PulserColor_t col ) { fAtt [col] = f; }
109 void SetAttErr ( Float_t f, const MCalibrationCam::PulserColor_t col ) { fAttErr [col] = f; }
110 void SetQE ( Float_t f, const MCalibrationCam::PulserColor_t col ) { fQE [col] = f; }
111 void SetQEErr ( Float_t f, const MCalibrationCam::PulserColor_t col ) { fQEErr [col] = f; }
112 void SetCollEff ( Float_t f, const MCalibrationCam::PulserColor_t col ) { fCollEff [col] = f; }
113 void SetCollEffErr( Float_t f, const MCalibrationCam::PulserColor_t col ) { fCollEffErr[col] = f; }
114
115 void SetColor ( const MCalibrationCam::PulserColor_t color ) { fColor = color; }
116 void SetLambda ( const Float_t f ) { fLambda = f; }
117 void SetLambdaVar ( const Float_t f ) { fLambdaVar = f; }
118 void SetLambdaCheck ( const Float_t f ) { fLambdaCheck = f; }
119 void SetLambdaCheckErr ( const Float_t f ) { fLambdaCheckErr = f; }
120 void SetMu0 ( const Float_t f ) { fMu0 = f; }
121 void SetMu0Err ( const Float_t f ) { fMu0Err = f; }
122 void SetMu1 ( const Float_t f ) { fMu1 = f; }
123 void SetMu1Err ( const Float_t f ) { fMu1Err = f; }
124 void SetSigma0 ( const Float_t f ) { fSigma0 = f; }
125 void SetSigma0Err ( const Float_t f ) { fSigma0Err = f; }
126 void SetSigma1 ( const Float_t f ) { fSigma1 = f; }
127 void SetSigma1Err ( const Float_t f ) { fSigma1Err = f; }
128
129 void SetOscillating ( const Bool_t b=kTRUE );
130 void SetChargeFitValid ( const Bool_t b=kTRUE );
131 void SetPedestalFitOK ( const Bool_t b=kTRUE );
132 void SetSinglePheFitOK ( const Bool_t b=kTRUE );
133 void SetFluxInsidePlexiglassAvailable( const Bool_t b=kTRUE);
134
135 ClassDef(MCalibrationChargeBlindPix, 3) // Container Charge Calibration Results Blind Pixel
136};
137
138#endif
Note: See TracBrowser for help on using the repository browser.