1 | #ifndef MARS_MCalibrationTestCam
|
---|
2 | #define MARS_MCalibrationTestCam
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef MARS_MCamEvent
|
---|
9 | #include "MCamEvent.h"
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | #ifndef ROOT_TArrayI
|
---|
13 | #include "TArrayI.h"
|
---|
14 | #endif
|
---|
15 |
|
---|
16 | class TClonesArray;
|
---|
17 | class MCalibrationTestPix;
|
---|
18 | class MCalibrationTestCam : public MParContainer, public MCamEvent
|
---|
19 | {
|
---|
20 | private:
|
---|
21 |
|
---|
22 | TArrayI fNumUninterpolated; // Number uninterpolated Pixels per area index
|
---|
23 | Int_t fNumUninterpolatedInMaxCluster; // Number of not interpolateable pixels in biggest cluster
|
---|
24 |
|
---|
25 | TClonesArray *fPixels; //-> Array of MCalibrationTestPix, one per pixel
|
---|
26 | TClonesArray *fAverageAreas; //-> Array of MCalibrationTestPix, one per pixel area
|
---|
27 | TClonesArray *fAverageSectors; //-> Array of MCalibrationTestPix, one per camera sector
|
---|
28 |
|
---|
29 | public:
|
---|
30 |
|
---|
31 | MCalibrationTestCam(const char *name=NULL, const char *title=NULL);
|
---|
32 | ~MCalibrationTestCam();
|
---|
33 |
|
---|
34 | void Clear ( Option_t *o="" );
|
---|
35 |
|
---|
36 | // Getters
|
---|
37 | const Int_t GetAverageAreas () const;
|
---|
38 | MCalibrationTestPix &GetAverageArea ( UInt_t i );
|
---|
39 | const MCalibrationTestPix &GetAverageArea ( UInt_t i ) const;
|
---|
40 | MCalibrationTestPix &GetAverageSector ( UInt_t i );
|
---|
41 | const Int_t GetAverageSectors () const;
|
---|
42 | const MCalibrationTestPix &GetAverageSector ( UInt_t i ) const;
|
---|
43 | const Int_t GetNumUninterpolated ( Int_t aidx ) const {
|
---|
44 | return fNumUninterpolated[aidx]; }
|
---|
45 | const Int_t GetNumUninterplatedInMaxCluster () const {
|
---|
46 | return fNumUninterpolatedInMaxCluster; }
|
---|
47 | Bool_t GetPixelContent ( Double_t &val, Int_t idx,
|
---|
48 | const MGeomCam &cam, Int_t type=0) const;
|
---|
49 | const Int_t GetSize () const;
|
---|
50 |
|
---|
51 | MCalibrationTestPix &operator[] ( UInt_t i );
|
---|
52 | const MCalibrationTestPix &operator[] ( UInt_t i ) const;
|
---|
53 |
|
---|
54 | // Inits
|
---|
55 | void Init ( const MGeomCam &geom );
|
---|
56 | void InitSize ( const UInt_t i );
|
---|
57 | void InitAverageAreas ( const UInt_t i );
|
---|
58 | void InitAverageSectors ( const UInt_t i );
|
---|
59 |
|
---|
60 | // Prints
|
---|
61 | void Print ( Option_t *o="" ) const;
|
---|
62 |
|
---|
63 | // Setters
|
---|
64 | void SetNumUninterpolated ( const UInt_t i, const Int_t aidx );
|
---|
65 | void SetNumUninterpolatedInMaxCluster( const UInt_t i ) { fNumUninterpolatedInMaxCluster = i; }
|
---|
66 |
|
---|
67 | // Draw
|
---|
68 | void DrawPixelContent( Int_t num) const {}
|
---|
69 |
|
---|
70 | ClassDef(MCalibrationTestCam, 1) // Container Test Calibration Results Camera
|
---|
71 | };
|
---|
72 |
|
---|
73 | #endif
|
---|