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

Last change on this file since 3645 was 3645, checked in by gaug, 20 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 MCalibrationCam : public MParContainer, public MCamEvent
17{
18
19protected:
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 Byte_t fFlags; // Byte to hold the flags
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 InitSize( const UInt_t i );
36 void InitAverageAreas( const UInt_t i );
37 void InitAverageSectors( const UInt_t i );
38
39 // Getters
40 Int_t GetSize() const;
41 Int_t GetAverageAreas() const;
42 Int_t GetAverageSectors() const;
43
44 // Others
45 MCalibrationPix &operator[](UInt_t i);
46 const MCalibrationPix &operator[](UInt_t i) const;
47
48 MCalibrationPix &GetAverageArea(UInt_t i);
49 const MCalibrationPix &GetAverageArea(UInt_t i) const;
50
51 MBadPixelsPix &GetAverageBadArea(UInt_t i);
52 const MBadPixelsPix &GetAverageBadArea(UInt_t i) const;
53
54 MCalibrationPix &GetAverageSector(UInt_t i);
55 const MCalibrationPix &GetAverageSector(UInt_t i) const;
56
57 MBadPixelsPix &GetAverageBadSector(UInt_t i);
58 const MBadPixelsPix &GetAverageBadSector(UInt_t i) const;
59
60 // Draws
61 virtual void DrawPixelContent(Int_t num) const;
62
63 // Others
64 virtual Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
65
66 ClassDef(MCalibrationCam, 1) // Base class Container for Calibration Results Camera
67};
68
69#endif
Note: See TracBrowser for help on using the repository browser.