source: trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCam.h@ 3842

Last change on this file since 3842 was 3837, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.5 KB
Line 
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
12class MCalibrationChargeCam : public MCalibrationCam
13{
14private:
15
16 TArrayI fNumUncalibrated;
17 TArrayI fNumUnreliable;
18
19 Byte_t fFlags; // Bit-field to hold the flags
20
21 enum { kFFactorMethodValid };
22
23public:
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
Note: See TracBrowser for help on using the repository browser.