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

Last change on this file since 5001 was 4882, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 7.9 KB
Line 
1#ifndef MARS_MCalibrationChargeBlindPix
2#define MARS_MCalibrationChargeBlindPix
3
4#ifndef ROOT_TArrayF
5#include <TArrayF.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 MCalibrationChargeBlindPix : 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 TArrayF fAtt; // Attenuation filter (per color)
42 TArrayF fAttErr; // Error attnuation filter (per color)
43 TArrayF fQE; // Quantum eff. (per color)
44 TArrayF fQEErr; // Error Quantum eff. (per color)
45 TArrayF fCollEff; // Coll eff. (per color)
46 TArrayF 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 MCalibrationChargeBlindPix(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 void SetAtt ( Float_t f, const MCalibrationCam::PulserColor_t col ) { fAtt [col] = f; }
113 void SetAttErr ( Float_t f, const MCalibrationCam::PulserColor_t col ) { fAttErr [col] = f; }
114 void SetQE ( Float_t f, const MCalibrationCam::PulserColor_t col ) { fQE [col] = f; }
115 void SetQEErr ( Float_t f, const MCalibrationCam::PulserColor_t col ) { fQEErr [col] = f; }
116 void SetCollEff ( Float_t f, const MCalibrationCam::PulserColor_t col ) { fCollEff [col] = f; }
117 void SetCollEffErr( Float_t f, const MCalibrationCam::PulserColor_t col ) { fCollEffErr[col] = f; }
118
119 void SetColor ( const MCalibrationCam::PulserColor_t color ) { fColor = color; }
120 void SetLambda ( const Float_t f ) { fLambda = f; }
121 void SetLambdaVar ( const Float_t f ) { fLambdaVar = f; }
122 void SetLambdaCheck ( const Float_t f ) { fLambdaCheck = f; }
123 void SetLambdaCheckErr ( const Float_t f ) { fLambdaCheckErr = f; }
124 void SetMu0 ( const Float_t f ) { fMu0 = f; }
125 void SetMu0Err ( const Float_t f ) { fMu0Err = f; }
126 void SetMu1 ( const Float_t f ) { fMu1 = f; }
127 void SetMu1Err ( const Float_t f ) { fMu1Err = f; }
128 void SetSigma0 ( const Float_t f ) { fSigma0 = f; }
129 void SetSigma0Err ( const Float_t f ) { fSigma0Err = f; }
130 void SetSigma1 ( const Float_t f ) { fSigma1 = f; }
131 void SetSigma1Err ( const Float_t f ) { fSigma1Err = f; }
132
133 void SetOscillating ( const Bool_t b=kTRUE );
134 void SetChargeFitValid ( const Bool_t b=kTRUE );
135 void SetPedestalFitOK ( const Bool_t b=kTRUE );
136 void SetSinglePheFitOK ( const Bool_t b=kTRUE );
137 void SetFluxInsidePlexiglassAvailable( const Bool_t b=kTRUE);
138
139 ClassDef(MCalibrationChargeBlindPix, 3) // Container Charge Calibration Results Blind Pixel
140};
141
142#endif
Note: See TracBrowser for help on using the repository browser.