1 | #ifndef MARS_MCalibrationCam
|
---|
2 | #define MARS_MCalibrationCam
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 | #ifndef MARS_MCamEvent
|
---|
8 | #include "MCamEvent.h"
|
---|
9 | #endif
|
---|
10 |
|
---|
11 | class TClonesArray;
|
---|
12 |
|
---|
13 | class MCalibrationPix;
|
---|
14 | class MBadPixelsPix;
|
---|
15 | class MBadPixelsCam;
|
---|
16 | class MGeomCam;
|
---|
17 |
|
---|
18 | class MCalibrationCam : public MParContainer, public MCamEvent
|
---|
19 | {
|
---|
20 |
|
---|
21 | protected:
|
---|
22 |
|
---|
23 | TClonesArray *fPixels; //-> Array of MCalibrationPix, one per pixel
|
---|
24 | TClonesArray *fAverageAreas; //-> Array of MCalibrationPix, one per pixel area
|
---|
25 | TClonesArray *fAverageSectors; //-> Array of MCalibrationPix, one per camera sector
|
---|
26 | TClonesArray *fAverageBadAreas; //-> Array of MBadPixelsPix, one per pixel area
|
---|
27 | TClonesArray *fAverageBadSectors; //-> Array of MBadPixelsPix, one per camera sector
|
---|
28 |
|
---|
29 | public:
|
---|
30 |
|
---|
31 | MCalibrationCam(const char *name=NULL, const char *title=NULL);
|
---|
32 | ~MCalibrationCam();
|
---|
33 |
|
---|
34 | virtual void Clear( Option_t *o="" );
|
---|
35 | void Init(const MGeomCam &geom);
|
---|
36 | void InitSize( const UInt_t i );
|
---|
37 | void InitAverageAreas( const UInt_t i );
|
---|
38 | void InitAverageSectors( const UInt_t i );
|
---|
39 |
|
---|
40 | // Getters
|
---|
41 | Int_t GetSize() const;
|
---|
42 | Int_t GetAverageAreas() const;
|
---|
43 | Int_t GetAverageSectors() const;
|
---|
44 |
|
---|
45 | // Others
|
---|
46 | MCalibrationPix &operator[](UInt_t i);
|
---|
47 | const MCalibrationPix &operator[](UInt_t i) const;
|
---|
48 |
|
---|
49 | MCalibrationPix &GetAverageArea(UInt_t i);
|
---|
50 | const MCalibrationPix &GetAverageArea(UInt_t i) const;
|
---|
51 |
|
---|
52 | MBadPixelsPix &GetAverageBadArea(UInt_t i);
|
---|
53 | const MBadPixelsPix &GetAverageBadArea(UInt_t i) const;
|
---|
54 |
|
---|
55 | MCalibrationPix &GetAverageSector(UInt_t i);
|
---|
56 | const MCalibrationPix &GetAverageSector(UInt_t i) const;
|
---|
57 |
|
---|
58 | MBadPixelsPix &GetAverageBadSector(UInt_t i);
|
---|
59 | const MBadPixelsPix &GetAverageBadSector(UInt_t i) const;
|
---|
60 |
|
---|
61 | // Draws
|
---|
62 | virtual void DrawPixelContent(Int_t num) const;
|
---|
63 |
|
---|
64 | // Others
|
---|
65 | virtual Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
---|
66 |
|
---|
67 | ClassDef(MCalibrationCam, 1) // Base class Container for Calibration Results Camera
|
---|
68 | };
|
---|
69 |
|
---|
70 | #endif
|
---|