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

Last change on this file since 3678 was 3678, checked in by gaug, 21 years ago
*** empty log message ***
File size: 5.8 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 void Clear(Option_t *o="");
61
62 // Setters
63 void SetColor ( const MCalibrationCam::PulserColor_t color ) { fColor = color; }
64 void SetLambda ( const Float_t f ) { fLambda = f; }
65 void SetLambdaVar ( const Float_t f ) { fLambdaVar = f; }
66 void SetLambdaCheck ( const Float_t f ) { fLambdaCheck = f; }
67 void SetLambdaCheckErr ( const Float_t f ) { fLambdaCheckErr = f; }
68 void SetMu0 ( const Float_t f ) { fMu0 = f; }
69 void SetMu0Err ( const Float_t f ) { fMu0Err = f; }
70 void SetMu1 ( const Float_t f ) { fMu1 = f; }
71 void SetMu1Err ( const Float_t f ) { fMu1Err = f; }
72 void SetSigma0 ( const Float_t f ) { fSigma0 = f; }
73 void SetSigma0Err ( const Float_t f ) { fSigma0Err = f; }
74 void SetSigma1 ( const Float_t f ) { fSigma1 = f; }
75 void SetSigma1Err ( const Float_t f ) { fSigma1Err = f; }
76
77 void SetOscillating ( const Bool_t b=kTRUE);
78 void SetChargeFitValid ( const Bool_t b=kTRUE);
79 void SetPedestalFitOK ( const Bool_t b=kTRUE);
80 void SetSinglePheFitOK ( const Bool_t b=kTRUE);
81 void SetFluxInsidePlexiglassAvailable( const Bool_t b=kTRUE);
82
83 // Getters
84 Float_t GetLambda() const { return fLambda; }
85 Float_t GetLambdaErr() const;
86 Float_t GetLambdaRelVar() const;
87 Float_t GetLambdaCheck() const { return fLambdaCheck; }
88 Float_t GetLambdaCheckErr() const { return fLambdaCheckErr; }
89 Float_t GetFluxInsidePlexiglass() const { return fFluxInsidePlexiglass; }
90 Float_t GetFluxInsidePlexiglassErr() const;
91 Float_t GetFluxInsidePlexiglassRelVar() const;
92 Float_t GetMu0() const { return fMu0; }
93 Float_t GetMu0Err() const { return fMu0Err; }
94 Float_t GetMu1() const { return fMu1; }
95 Float_t GetMu1Err() const { return fMu1Err; }
96 Float_t GetSigma0() const { return fSigma0; }
97 Float_t GetSigma0Err() const { return fSigma0Err; }
98 Float_t GetSigma1() const { return fSigma1; }
99 Float_t GetSigma1Err() const { return fSigma1Err; }
100
101 Bool_t IsOscillating() const;
102 Bool_t IsChargeFitValid() const;
103 Bool_t IsPedestalFitOK() const;
104 Bool_t IsSinglePheFitOK() const;
105 Bool_t IsFluxInsidePlexiglassAvailable() const;
106
107 Bool_t CalcFluxInsidePlexiglass();
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.