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

Last change on this file since 3927 was 3699, checked in by gaug, 21 years ago
*** empty log message ***
File size: 6.0 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_MCalibrationChargePix
9#include "MCalibrationChargePix.h"
10#endif
11
12class MCalibrationChargeBlindPix : public MCalibrationChargePix
13{
14private:
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 gkBlindPixelQEGreen; //! Quantum Efficiency at 520 nm
22 static const Float_t gkBlindPixelQEBlue ; //! Quantum Efficiency at 460 nm
23 static const Float_t gkBlindPixelQEUV ; //! Quantum Efficiency at 370 nm
24 static const Float_t gkBlindPixelQECT1 ; //! Quantum Efficiency at 370 nm
25 static const Float_t gkBlindPixelQEGreenErr; //! Uncertainty QE at 520 nm
26 static const Float_t gkBlindPixelQEBlueErr ; //! Uncertainty QE at 460 nm
27 static const Float_t gkBlindPixelQEUVErr ; //! Uncertainty QE at 370 nm
28 static const Float_t gkBlindPixelQECT1Err ; //! Uncertainty QE at 370 nmu
29
30 Float_t fLambda; // Mean Poisson fit
31 Float_t fLambdaCheck; // Mean Pedestal Check (Gauss) fit
32 Float_t fLambdaCheckErr; // Error mean pedestal Check fit
33 Float_t fLambdaVar; // Variance lambda Poisson fit
34 Float_t fFluxInsidePlexiglass; // Number photons in INNER PIXEL inside the plexiglass
35 Float_t fFluxInsidePlexiglassVar; // Variance number of photons in INNER PIXEL
36 Float_t fMu0; // Position pedestal peak
37 Float_t fMu0Err; // Error pos. pedestal-peak
38 Float_t fMu1; // Position first photo-electron peak
39 Float_t fMu1Err; // Error pos. first photo-electon peak
40 Float_t fSigma0; // Width pedestal peak
41 Float_t fSigma0Err; // Error width pedestal peak
42 Float_t fSigma1; // Width first photo-electron peak
43 Float_t fSigma1Err; // Error width first photo-electron peak
44
45 enum { kOscillating, kPedestalFitOK, kSinglePheFitOK, kChargeFitValid,
46 kFluxInsidePlexiglassAvailable };
47
48 MCalibrationCam::PulserColor_t fColor;
49
50 const Float_t GetBlindPixelQEGreenRelVar() const;
51 const Float_t GetBlindPixelQEBlueRelVar () const;
52 const Float_t GetBlindPixelQEUVRelVar () const;
53 const Float_t GetBlindPixelQECT1RelVar () const;
54
55 public:
56
57 MCalibrationChargeBlindPix(const char *name=NULL, const char *title=NULL);
58 ~MCalibrationChargeBlindPix() {}
59
60 Bool_t CalcFluxInsidePlexiglass();
61 void Clear(Option_t *o="");
62
63 // Getters
64 MCalibrationCam::PulserColor_t GetColor () const { return fColor; }
65 Float_t GetLambda () const { return fLambda; }
66 Float_t GetLambdaErr () const;
67 Float_t GetLambdaRelVar () const;
68 Float_t GetLambdaCheck () const { return fLambdaCheck; }
69 Float_t GetLambdaCheckErr () const { return fLambdaCheckErr; }
70 Float_t GetFluxInsidePlexiglass () const { return fFluxInsidePlexiglass; }
71 Float_t GetFluxInsidePlexiglassErr () const;
72 Float_t GetFluxInsidePlexiglassRelVar () const;
73 Float_t GetMu0 () const { return fMu0; }
74 Float_t GetMu0Err () const { return fMu0Err; }
75 Float_t GetMu1 () const { return fMu1; }
76 Float_t GetMu1Err () const { return fMu1Err; }
77 Float_t GetSigma0 () const { return fSigma0; }
78 Float_t GetSigma0Err () const { return fSigma0Err; }
79 Float_t GetSigma1 () const { return fSigma1; }
80 Float_t GetSigma1Err () const { return fSigma1Err; }
81
82 Bool_t IsOscillating () const;
83 Bool_t IsChargeFitValid () const;
84 Bool_t IsPedestalFitOK () const;
85 Bool_t IsSinglePheFitOK () const;
86 Bool_t IsFluxInsidePlexiglassAvailable () const;
87
88 // Setters
89 void SetColor ( const MCalibrationCam::PulserColor_t color ) { fColor = color; }
90 void SetLambda ( const Float_t f ) { fLambda = f; }
91 void SetLambdaVar ( const Float_t f ) { fLambdaVar = f; }
92 void SetLambdaCheck ( const Float_t f ) { fLambdaCheck = f; }
93 void SetLambdaCheckErr ( const Float_t f ) { fLambdaCheckErr = f; }
94 void SetMu0 ( const Float_t f ) { fMu0 = f; }
95 void SetMu0Err ( const Float_t f ) { fMu0Err = f; }
96 void SetMu1 ( const Float_t f ) { fMu1 = f; }
97 void SetMu1Err ( const Float_t f ) { fMu1Err = f; }
98 void SetSigma0 ( const Float_t f ) { fSigma0 = f; }
99 void SetSigma0Err ( const Float_t f ) { fSigma0Err = f; }
100 void SetSigma1 ( const Float_t f ) { fSigma1 = f; }
101 void SetSigma1Err ( const Float_t f ) { fSigma1Err = f; }
102
103 void SetOscillating ( const Bool_t b=kTRUE );
104 void SetChargeFitValid ( const Bool_t b=kTRUE );
105 void SetPedestalFitOK ( const Bool_t b=kTRUE );
106 void SetSinglePheFitOK ( const Bool_t b=kTRUE );
107 void SetFluxInsidePlexiglassAvailable( const Bool_t b=kTRUE);
108
109 ClassDef(MCalibrationChargeBlindPix, 1) // Container Charge Calibration Results Blind Pixel
110};
111
112#endif
113
114
115
116
Note: See TracBrowser for help on using the repository browser.