1 | #ifndef MARS_MCalibrationIntensityCam
|
---|
2 | #define MARS_MCalibrationIntensityCam
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef MARS_MCamEvent
|
---|
9 | #include "MCamEvent.h"
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | #ifndef MARS_MArrayD
|
---|
13 | #include "MArrayD.h"
|
---|
14 | #endif
|
---|
15 |
|
---|
16 | #ifndef MARS_MCalibrationCam
|
---|
17 | #include "MCalibrationCam.h"
|
---|
18 | #endif
|
---|
19 |
|
---|
20 | class TClonesArray;
|
---|
21 | class MCalibrationPix;
|
---|
22 | class MBadPixelsPix;
|
---|
23 | class MGeomCam;
|
---|
24 | class MCalibrationIntensityCam : public MParContainer, public MCamEvent
|
---|
25 | {
|
---|
26 | private:
|
---|
27 |
|
---|
28 | MArrayD fOffsets; //! Arrays of Higain-vs-LoGain fit result Offsets
|
---|
29 | MArrayD fSlopes; //! Arrays of Higain-vs-LoGain fit result Slopes
|
---|
30 |
|
---|
31 | void InitSize( const UInt_t n );
|
---|
32 |
|
---|
33 | protected:
|
---|
34 |
|
---|
35 | TClonesArray *fCams; // Array of MCalibrationCams, one per pulse colour and intensity
|
---|
36 |
|
---|
37 | public:
|
---|
38 |
|
---|
39 | MCalibrationIntensityCam(const char *name=NULL, const char *title=NULL);
|
---|
40 | ~MCalibrationIntensityCam();
|
---|
41 |
|
---|
42 | void Clear ( Option_t *o="" );
|
---|
43 | void Copy(TObject& object) const;
|
---|
44 |
|
---|
45 | void AddToList( const char* name, const MGeomCam &geom );
|
---|
46 |
|
---|
47 | // Draws
|
---|
48 | void DrawHiLoFits();
|
---|
49 | void DrawPixelContent( Int_t num) const;
|
---|
50 |
|
---|
51 | // Getters
|
---|
52 | Bool_t GetPixelContent( Double_t &val, Int_t idx, const MGeomCam &cam,Int_t type=0) const;
|
---|
53 | const Int_t GetSize() const;
|
---|
54 |
|
---|
55 | const Int_t GetAverageAreas () const;
|
---|
56 | MCalibrationPix &GetAverageArea ( UInt_t i );
|
---|
57 | const MCalibrationPix &GetAverageArea ( UInt_t i ) const;
|
---|
58 | MBadPixelsPix &GetAverageBadArea ( UInt_t i );
|
---|
59 | const MBadPixelsPix &GetAverageBadArea ( UInt_t i ) const;
|
---|
60 | const Int_t GetAverageSectors () const;
|
---|
61 | MCalibrationPix &GetAverageSector ( UInt_t i );
|
---|
62 | const MCalibrationPix &GetAverageSector ( UInt_t i ) const;
|
---|
63 | MBadPixelsPix &GetAverageBadSector ( UInt_t i );
|
---|
64 | const MBadPixelsPix &GetAverageBadSector ( UInt_t i ) const;
|
---|
65 |
|
---|
66 | MCalibrationCam *GetCam ( Int_t i=-1);
|
---|
67 | const MCalibrationCam *GetCam ( Int_t i=-1) const;
|
---|
68 |
|
---|
69 | MCalibrationCam *GetCam ( const char *name );
|
---|
70 | const MCalibrationCam *GetCam ( const char *name ) const;
|
---|
71 |
|
---|
72 | MCalibrationPix &operator[] ( UInt_t i );
|
---|
73 | const MCalibrationPix &operator[] ( UInt_t i ) const;
|
---|
74 |
|
---|
75 | const Float_t GetNumHiGainFADCSlices ( const Int_t aidx=0 ) const { return GetCam()->GetNumHiGainFADCSlices(aidx); }
|
---|
76 | const Float_t GetNumLoGainFADCSlices ( const Int_t aidx=0 ) const { return GetCam()->GetNumLoGainFADCSlices(aidx); }
|
---|
77 | const Int_t GetNumUnsuitable ( const Int_t aidx=-1) const { return GetCam()->GetNumUnsuitable(aidx); }
|
---|
78 | const Int_t GetNumUnreliable ( const Int_t aidx=-1) const { return GetCam()->GetNumUnreliable(aidx); }
|
---|
79 |
|
---|
80 | // Inits
|
---|
81 | void Init ( const MGeomCam &geom );
|
---|
82 |
|
---|
83 | // Prints
|
---|
84 | void Print(Option_t *o="") const;
|
---|
85 |
|
---|
86 | // Setters
|
---|
87 | void SetNumHiGainFADCSlices( const Float_t f, const Int_t aidx=0) { GetCam()->SetNumHiGainFADCSlices(f,aidx); }
|
---|
88 | void SetNumLoGainFADCSlices( const Float_t f, const Int_t aidx=0) { GetCam()->SetNumLoGainFADCSlices(f,aidx); }
|
---|
89 | void SetNumUnsuitable ( const UInt_t i, const Int_t aidx ) { GetCam()->SetNumUnsuitable(i,aidx); }
|
---|
90 | void SetNumUnreliable ( const UInt_t i, const Int_t aidx ) { GetCam()->SetNumUnreliable(i,aidx); }
|
---|
91 | void SetPulserColor ( const MCalibrationCam::PulserColor_t col=MCalibrationCam::kCT1) {
|
---|
92 | GetCam()->SetPulserColor(col); }
|
---|
93 |
|
---|
94 | ClassDef(MCalibrationIntensityCam, 1) // Base Container Intensity Calibration Results
|
---|
95 | };
|
---|
96 |
|
---|
97 | #endif
|
---|