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 | TArrayI fNumUncalibrated;
|
---|
17 | TArrayI fNumUnreliable;
|
---|
18 |
|
---|
19 | Byte_t fFlags; // Bit-field to hold the flags
|
---|
20 |
|
---|
21 | enum { kFFactorMethodValid };
|
---|
22 |
|
---|
23 | public:
|
---|
24 |
|
---|
25 | MCalibrationChargeCam(const char *name=NULL, const char *title=NULL);
|
---|
26 |
|
---|
27 | void Clear ( Option_t *o="" );
|
---|
28 |
|
---|
29 | // Draws
|
---|
30 | void DrawPixelContent(Int_t num) const;
|
---|
31 |
|
---|
32 | // Getters
|
---|
33 | Bool_t GetConversionFactorFFactor( Int_t ipx, Float_t &mean, Float_t &err, Float_t &ffactor );
|
---|
34 | Int_t GetNumUncalibrated ( const Int_t aidx) const { return fNumUncalibrated[aidx]; }
|
---|
35 | Int_t GetNumUnreliable ( const Int_t aidx) const { return fNumUnreliable [aidx]; }
|
---|
36 | Bool_t GetPixelContent ( Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
---|
37 | Bool_t IsFFactorMethodValid() const;
|
---|
38 |
|
---|
39 | // Inits
|
---|
40 | void Init ( const MGeomCam &geom );
|
---|
41 |
|
---|
42 | // Prints
|
---|
43 | void Print(Option_t *o="") const;
|
---|
44 |
|
---|
45 | // Setters
|
---|
46 | void SetFFactorMethodValid ( const Bool_t b=kTRUE );
|
---|
47 | void SetNumUncalibrated ( const Int_t i, const Int_t aidx) { fNumUncalibrated[aidx] = i; }
|
---|
48 | void SetNumUnreliable ( const Int_t i, const Int_t aidx) { fNumUnreliable [aidx] = i; }
|
---|
49 |
|
---|
50 | ClassDef(MCalibrationChargeCam, 1) // Container Charge Calibration Results Camera
|
---|
51 | };
|
---|
52 |
|
---|
53 | #endif
|
---|