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

Last change on this file since 3678 was 3678, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.1 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
17 static const Float_t gkPlexiglassQEErr; //! Uncertainty QE Plexiglass
18
19 TArrayC fFlags;
20
21 enum { kBlindPixelMethodValid, kFFactorMethodValid,
22 kPINDiodeMethodValid, kCombinedMethodValid };
23
24public:
25
26 MCalibrationQECam(const char *name=NULL, const char *title=NULL);
27 ~MCalibrationQECam() {}
28
29 void Clear( Option_t *o="");
30
31 Float_t GetPlexiglassQE () const { return gkPlexiglassQE; }
32 Float_t GetPlexiglassQERelVar () const;
33
34 // Only for MC (Ciao Abelardo!!)
35 void SetBlindPixelMethodValid ( Bool_t b=kTRUE );
36 void SetFFactorMethodValid ( Bool_t b=kTRUE );
37 void SetCombinedMethodValid ( Bool_t b=kTRUE );
38 void SetPINDiodeMethodValid ( Bool_t b=kTRUE );
39
40 void SetBlindPixelMethodValid ( Bool_t b, MCalibrationCam::PulserColor_t col);
41 void SetFFactorMethodValid ( Bool_t b, MCalibrationCam::PulserColor_t col);
42 void SetCombinedMethodValid ( Bool_t b, MCalibrationCam::PulserColor_t col);
43 void SetPINDiodeMethodValid ( Bool_t b, MCalibrationCam::PulserColor_t col);
44
45 Bool_t IsBlindPixelMethodValid() const;
46 Bool_t IsFFactorMethodValid () const;
47 Bool_t IsCombinedMethodValid () const;
48 Bool_t IsPINDiodeMethodValid () const;
49
50 Bool_t IsBlindPixelMethodValid(MCalibrationCam::PulserColor_t col) const;
51 Bool_t IsFFactorMethodValid (MCalibrationCam::PulserColor_t col) const;
52 Bool_t IsCombinedMethodValid (MCalibrationCam::PulserColor_t col) const;
53 Bool_t IsPINDiodeMethodValid (MCalibrationCam::PulserColor_t col) const;
54
55 // Prints
56 void Print(Option_t *o="") const;
57
58 // Others
59 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
60 void DrawPixelContent(Int_t num) const;
61
62 ClassDef(MCalibrationQECam, 1) // Container Quantum Efficieny Calibration Results Camera
63};
64
65#endif
66
67
68
69
70
Note: See TracBrowser for help on using the repository browser.