source: trunk/MagicSoft/Mars/mcalib/MCalibrationQECam.h@ 4855

Last change on this file since 4855 was 4855, checked in by gaug, 20 years ago
*** empty log message ***
File size: 2.5 KB
Line 
1#ifndef MARS_MCalibrationQECam
2#define MARS_MCalibrationQECam
3
4#ifndef MARS_MCalibrationCam
5#include "MCalibrationCam.h"
6#endif
7
8#ifndef ROOT_TArrayC
9#include "TArrayC.h"
10#endif
11
12class MCalibrationQECam : public MCalibrationCam
13{
14private:
15
16 static const Float_t gkPlexiglassQE ; //! Quantum Efficiency Plexiglass (now set to: 0.96)
17 static const Float_t gkPlexiglassQEErr; //! Uncertainty QE Plexiglass (now set to: 0.01)
18
19 TArrayF fCorningBlues; //! Corning blues of the pixels (if available)
20 TArrayF fCorningReds; //! Corning reds of the pixels (if available)
21
22 TArrayC fFlags;
23
24 enum { kBlindPixelMethodValid, kFFactorMethodValid,
25 kPINDiodeMethodValid, kCombinedMethodValid };
26
27public:
28
29 MCalibrationQECam(const char *name=NULL, const char *title=NULL);
30 ~MCalibrationQECam() {}
31
32 void Clear( Option_t *o="");
33 void Copy(TObject& object) const;
34
35 // Others
36 void DrawPixelContent( Int_t num ) const;
37 Bool_t GetPixelContent ( Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0 ) const;
38
39 Float_t GetPlexiglassQE () const { return gkPlexiglassQE; }
40 Float_t GetPlexiglassQERelVar () const;
41
42 Bool_t IsBlindPixelMethodValid () const;
43 Bool_t IsFFactorMethodValid () const;
44 Bool_t IsCombinedMethodValid () const;
45 Bool_t IsPINDiodeMethodValid () const;
46
47 Bool_t IsBlindPixelMethodValid ( MCalibrationCam::PulserColor_t col ) const;
48 Bool_t IsFFactorMethodValid ( MCalibrationCam::PulserColor_t col ) const;
49 Bool_t IsCombinedMethodValid ( MCalibrationCam::PulserColor_t col ) const;
50 Bool_t IsPINDiodeMethodValid ( MCalibrationCam::PulserColor_t col ) const;
51
52 // Prints
53 void Print(Option_t *o="") const;
54
55 // Setters (without color only for MC!)
56 void SetBlindPixelMethodValid ( const Bool_t b=kTRUE );
57 void SetBlindPixelMethodValid ( const Bool_t b, MCalibrationCam::PulserColor_t col);
58 void SetCombinedMethodValid ( const Bool_t b=kTRUE );
59 void SetCombinedMethodValid ( const Bool_t b, MCalibrationCam::PulserColor_t col);
60 void SetFFactorMethodValid ( const Bool_t b=kTRUE );
61 void SetFFactorMethodValid ( const Bool_t b, MCalibrationCam::PulserColor_t col);
62 void SetPINDiodeMethodValid ( const Bool_t b=kTRUE );
63 void SetPINDiodeMethodValid ( const Bool_t b, MCalibrationCam::PulserColor_t col);
64
65 ClassDef(MCalibrationQECam, 1) // Container Quantum Efficieny Calibration Results Camera
66};
67
68#endif
69
70
71
72
73
Note: See TracBrowser for help on using the repository browser.