source: trunk/MagicSoft/Mars/mcalib/MCalibrationCam.h@ 3667

Last change on this file since 3667 was 3667, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 2.0 KB
Line 
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
11class TClonesArray;
12
13class MCalibrationPix;
14class MBadPixelsPix;
15class MBadPixelsCam;
16class MGeomCam;
17
18class MCalibrationCam : public MParContainer, public MCamEvent
19{
20
21protected:
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
29public:
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
Note: See TracBrowser for help on using the repository browser.