#ifndef MARS_MCalibConstCam #define MARS_MCalibConstCam #ifndef MARS_MParContainer #include "MParContainer.h" #endif #ifndef MARS_MCamEvent #include "MCamEvent.h" #endif class TClonesArray; class MGeomCam; class MCalibConstPix; class MCalibConstCam : public MParContainer, public MCamEvent { private: TClonesArray *fArray; //-> Array of MCalibConstPix, one per pixel TClonesArray *fAverageAreas; //-> Array of MCalibConstPix, one per pixel area TClonesArray *fAverageSectors; //-> Array of MCalibConstPix, one per camera sector public: MCalibConstCam(const char *name=NULL, const char *title=NULL); ~MCalibConstCam(); void Clear(Option_t *o=""); // Getters MCalibConstPix &GetAverageArea ( UInt_t i ); const MCalibConstPix &GetAverageArea ( UInt_t i ) const; const Int_t GetNumAverageArea() const; MCalibConstPix &GetAverageSector ( UInt_t i ); const MCalibConstPix &GetAverageSector ( UInt_t i ) const; const Int_t GetNumAverageSector() const; Int_t GetSize () const; MCalibConstPix &operator[] ( Int_t i ); const MCalibConstPix &operator[] ( Int_t i ) const; void Init ( const MGeomCam &geom); void InitSize ( const UInt_t i ); void InitAverageAreas ( const UInt_t i ); void InitAverageSectors ( const UInt_t i ); void Print(Option_t *o="") const; Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const; void DrawPixelContent(Int_t idx) const; ClassDef(MCalibConstCam, 0) // Temporary Storage for calibration constants }; #endif