1 | #ifndef MARS_MCalibrationChargeCam
|
---|
2 | #define MARS_MCalibrationChargeCam
|
---|
3 |
|
---|
4 | #ifndef MARS_MCalibrationCam
|
---|
5 | #include "MCalibrationCam.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef ROOT_TArrayI
|
---|
9 | #include "TArrayI.h"
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | class MCalibrationChargeCam : public MCalibrationCam
|
---|
13 | {
|
---|
14 | private:
|
---|
15 |
|
---|
16 | Byte_t fFlags; // Bit-field to hold the flags
|
---|
17 |
|
---|
18 | Float_t fNumPhotonsBlindPixelMethod; // Average nr. photons from Blind Pixel Method (Inner Pixel)
|
---|
19 | Float_t fNumPhotonsFFactorMethod; // Average nr. photons from F-Factor Method (Inner Pixel)
|
---|
20 | Float_t fNumPhotonsPINDiodeMethod; // Average nr. photons from PIN Diode Method (Inner Pixel)
|
---|
21 | Float_t fNumPhotonsBlindPixelMethodErr; // Error av. nr. photons from Blind Pixel Method
|
---|
22 | Float_t fNumPhotonsFFactorMethodErr; // Error av. nr. photons from F-Factor Method
|
---|
23 | Float_t fNumPhotonsPINDiodeMethodErr; // Error av. nr. photons from PIN Diode Method
|
---|
24 |
|
---|
25 | enum { kFFactorMethodValid };
|
---|
26 |
|
---|
27 | public:
|
---|
28 |
|
---|
29 | MCalibrationChargeCam(const char *name=NULL, const char *title=NULL);
|
---|
30 |
|
---|
31 | void Clear ( Option_t *o="" );
|
---|
32 |
|
---|
33 | // Draws
|
---|
34 | void DrawPixelContent(Int_t num) const;
|
---|
35 |
|
---|
36 | // Getters
|
---|
37 | Bool_t GetConversionFactorFFactor( Int_t ipx, Float_t &mean, Float_t &err, Float_t &ffactor );
|
---|
38 | Bool_t GetPixelContent ( Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
---|
39 |
|
---|
40 | Float_t GetNumPhotonsBlindPixelMethod () const { return fNumPhotonsBlindPixelMethod; }
|
---|
41 | Float_t GetNumPhotonsFFactorMethod () const { return fNumPhotonsFFactorMethod; }
|
---|
42 | Float_t GetNumPhotonsPINDiodeMethod () const { return fNumPhotonsPINDiodeMethod; }
|
---|
43 | Float_t GetNumPhotonsBlindPixelMethodErr() const { return fNumPhotonsBlindPixelMethodErr; }
|
---|
44 | Float_t GetNumPhotonsFFactorMethodErr () const { return fNumPhotonsFFactorMethodErr; }
|
---|
45 | Float_t GetNumPhotonsPINDiodeMethodErr () const { return fNumPhotonsPINDiodeMethodErr; }
|
---|
46 | Bool_t IsFFactorMethodValid () const;
|
---|
47 |
|
---|
48 | // Inits
|
---|
49 | void Init ( const MGeomCam &geom );
|
---|
50 |
|
---|
51 | // Prints
|
---|
52 | void Print(Option_t *o="") const;
|
---|
53 |
|
---|
54 | // Setters
|
---|
55 | void SetFFactorMethodValid ( const Bool_t b=kTRUE );
|
---|
56 | void SetNumPhotonsBlindPixelMethod ( const Float_t f ) { fNumPhotonsBlindPixelMethod = f; }
|
---|
57 | void SetNumPhotonsFFactorMethod ( const Float_t f ) { fNumPhotonsFFactorMethod = f; }
|
---|
58 | void SetNumPhotonsPINDiodeMethod ( const Float_t f ) { fNumPhotonsPINDiodeMethod = f; }
|
---|
59 | void SetNumPhotonsBlindPixelMethodErr ( const Float_t f ) { fNumPhotonsBlindPixelMethodErr = f; }
|
---|
60 | void SetNumPhotonsFFactorMethodErr ( const Float_t f ) { fNumPhotonsFFactorMethodErr = f; }
|
---|
61 | void SetNumPhotonsPINDiodeMethodErr ( const Float_t f ) { fNumPhotonsPINDiodeMethodErr = f; }
|
---|
62 |
|
---|
63 | ClassDef(MCalibrationChargeCam, 2) // Container Charge Calibration Results Camera
|
---|
64 | };
|
---|
65 |
|
---|
66 | #endif
|
---|