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 MCalibrationCam : public MParContainer, public MCamEvent
|
---|
17 | {
|
---|
18 | protected:
|
---|
19 |
|
---|
20 | TClonesArray *fPixels; //-> Array of MCalibrationPix, one per pixel
|
---|
21 | TClonesArray *fAverageAreas; //-> Array of MCalibrationPix, one per pixel area
|
---|
22 | TClonesArray *fAverageSectors; //-> Array of MCalibrationPix, one per camera sector
|
---|
23 | TClonesArray *fAverageBadAreas; //-> Array of MBadPixelsPix, one per pixel area
|
---|
24 | TClonesArray *fAverageBadSectors; //-> Array of MBadPixelsPix, one per camera sector
|
---|
25 |
|
---|
26 | Byte_t fFlags;
|
---|
27 |
|
---|
28 | public:
|
---|
29 |
|
---|
30 | MCalibrationCam(const char *name=NULL, const char *title=NULL);
|
---|
31 | ~MCalibrationCam();
|
---|
32 |
|
---|
33 | virtual void Clear( Option_t *o="" );
|
---|
34 | void InitSize( const UInt_t i );
|
---|
35 | void InitAverageAreas( const UInt_t i );
|
---|
36 | void InitAverageSectors( const UInt_t i );
|
---|
37 |
|
---|
38 | // Getters
|
---|
39 | Int_t GetSize() const;
|
---|
40 | Int_t GetAverageAreas() const;
|
---|
41 | Int_t GetAverageSectors() const;
|
---|
42 |
|
---|
43 | // Others
|
---|
44 | MCalibrationPix &operator[](UInt_t i);
|
---|
45 | const MCalibrationPix &operator[](UInt_t i) const;
|
---|
46 |
|
---|
47 | MCalibrationPix &GetAverageArea(UInt_t i);
|
---|
48 | const MCalibrationPix &GetAverageArea(UInt_t i) const;
|
---|
49 |
|
---|
50 | MBadPixelsPix &GetAverageBadArea(UInt_t i);
|
---|
51 | const MBadPixelsPix &GetAverageBadArea(UInt_t i) const;
|
---|
52 |
|
---|
53 | MCalibrationPix &GetAverageSector(UInt_t i);
|
---|
54 | const MCalibrationPix &GetAverageSector(UInt_t i) const;
|
---|
55 |
|
---|
56 | MBadPixelsPix &GetAverageBadSector(UInt_t i);
|
---|
57 | const MBadPixelsPix &GetAverageBadSector(UInt_t i) const;
|
---|
58 |
|
---|
59 | // Draws
|
---|
60 | virtual void DrawPixelContent(Int_t num) const;
|
---|
61 |
|
---|
62 | // Others
|
---|
63 | virtual Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
---|
64 |
|
---|
65 | ClassDef(MCalibrationCam, 1) // Base class Container for camera calibration
|
---|
66 | };
|
---|
67 |
|
---|
68 | #endif
|
---|