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