source: trunk/MagicSoft/Mars/mcalib/MCalibrationBlindPix.h@ 5138

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