| 1 | #ifndef MARS_MCalibrationIntensityConstCam
|
|---|
| 2 | #define MARS_MCalibrationIntensityConstCam
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MCamEvent
|
|---|
| 5 | #include "MCamEvent.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | #ifndef MARS_MParContainer
|
|---|
| 9 | #include "MParContainer.h"
|
|---|
| 10 | #endif
|
|---|
| 11 |
|
|---|
| 12 | #ifndef MARS_MCalibConstCam
|
|---|
| 13 | #include "MCalibConstCam.h"
|
|---|
| 14 | #endif
|
|---|
| 15 |
|
|---|
| 16 | #ifndef MARS_MGeomCamMagic
|
|---|
| 17 | #include "MGeomCamMagic.h"
|
|---|
| 18 | #endif
|
|---|
| 19 |
|
|---|
| 20 | class MCalibConstPix;
|
|---|
| 21 | class MBadPixelsCam;
|
|---|
| 22 | class TOrdCollection;
|
|---|
| 23 | class TGraph;
|
|---|
| 24 | class TGraphErrors;
|
|---|
| 25 |
|
|---|
| 26 | class MCalibrationIntensityConstCam : public MParContainer, public MCamEvent
|
|---|
| 27 | {
|
|---|
| 28 | private:
|
|---|
| 29 |
|
|---|
| 30 | TOrdCollection *fCams; // Array of MCalibConstCams, one per pulse colour and intensity
|
|---|
| 31 | MBadPixelsCam *fBadPixels; //! Pointer to current MBadPixelsCam
|
|---|
| 32 |
|
|---|
| 33 | void Add(const UInt_t from, const UInt_t to);
|
|---|
| 34 | void InitSize( const UInt_t n );
|
|---|
| 35 |
|
|---|
| 36 | public:
|
|---|
| 37 |
|
|---|
| 38 | MCalibrationIntensityConstCam(const char *name=NULL, const char *title=NULL);
|
|---|
| 39 | ~MCalibrationIntensityConstCam();
|
|---|
| 40 |
|
|---|
| 41 | void Clear ( Option_t *o="" );
|
|---|
| 42 |
|
|---|
| 43 | void AddToList( const char* name, const MGeomCam &geom);
|
|---|
| 44 |
|
|---|
| 45 | const Int_t GetSize() const;
|
|---|
| 46 |
|
|---|
| 47 | MCalibConstCam *GetCam ( Int_t i=-1);
|
|---|
| 48 | const MCalibConstCam *GetCam ( Int_t i=-1) const;
|
|---|
| 49 |
|
|---|
| 50 | MCalibConstPix &operator[] ( UInt_t i );
|
|---|
| 51 | const MCalibConstPix &operator[] ( UInt_t i ) const;
|
|---|
| 52 |
|
|---|
| 53 | // Inits
|
|---|
| 54 | void Init ( const MGeomCam &geom );
|
|---|
| 55 |
|
|---|
| 56 | // Prints
|
|---|
| 57 | void Print(Option_t *o="") const;
|
|---|
| 58 |
|
|---|
| 59 | // Setters
|
|---|
| 60 | void SetBadPixels( MBadPixelsCam *b ) { fBadPixels = b; }
|
|---|
| 61 |
|
|---|
| 62 | // MCamEvent
|
|---|
| 63 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
|---|
| 64 | void DrawPixelContent( Int_t num) const { return GetCam()->DrawPixelContent(num); }
|
|---|
| 65 |
|
|---|
| 66 | // Posterior displays
|
|---|
| 67 | TGraphErrors *GetConvFactorPerAreaVsTime( const Int_t aidx=0, const MGeomCam &geom=MGeomCamMagic());
|
|---|
| 68 | TGraph *GetConvFactorVsTime ( const Int_t pixid );
|
|---|
| 69 |
|
|---|
| 70 | void DrawConvFactorPerAreaVsTime( const Int_t aidx=-1); // *MENU*
|
|---|
| 71 | void DrawConvFactorVsTime ( const Int_t idx ); // *MENU*
|
|---|
| 72 |
|
|---|
| 73 | ClassDef(MCalibrationIntensityConstCam, 1) // Container Calibration Constants Results Camera
|
|---|
| 74 | };
|
|---|
| 75 |
|
|---|
| 76 | #endif
|
|---|