source: trunk/MagicSoft/Mars/mcalib/MCalibConstCam.h@ 6937

Last change on this file since 6937 was 6073, checked in by gaug, 20 years ago
*** empty log message ***
File size: 1.8 KB
Line 
1#ifndef MARS_MCalibConstCam
2#define MARS_MCalibConstCam
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 MGeomCam;
14class MCalibConstPix;
15class MCalibConstCam : public MParContainer, public MCamEvent
16{
17private:
18
19 TClonesArray *fArray; //-> Array of MCalibConstPix, one per pixel
20 TClonesArray *fAverageAreas; //-> Array of MCalibConstPix, one per pixel area
21 TClonesArray *fAverageSectors; //-> Array of MCalibConstPix, one per camera sector
22
23public:
24
25 MCalibConstCam(const char *name=NULL, const char *title=NULL);
26 ~MCalibConstCam();
27
28 void Clear(Option_t *o="");
29
30 // Getters
31 MCalibConstPix &GetAverageArea ( UInt_t i );
32 const MCalibConstPix &GetAverageArea ( UInt_t i ) const;
33 const Int_t GetNumAverageArea() const;
34 MCalibConstPix &GetAverageSector ( UInt_t i );
35 const MCalibConstPix &GetAverageSector ( UInt_t i ) const;
36 const Int_t GetNumAverageSector() const;
37 Int_t GetSize () const;
38
39 MCalibConstPix &operator[] ( Int_t i );
40 const MCalibConstPix &operator[] ( Int_t i ) const;
41
42 void Init ( const MGeomCam &geom);
43 void InitSize ( const UInt_t i );
44 void InitAverageAreas ( const UInt_t i );
45 void InitAverageSectors ( const UInt_t i );
46
47 void Print(Option_t *o="") const;
48
49 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
50 void DrawPixelContent(Int_t idx) const;
51
52 ClassDef(MCalibConstCam, 0) // Temporary Storage for calibration constants
53};
54
55#endif
Note: See TracBrowser for help on using the repository browser.