source: trunk/MagicSoft/Mars/mcalib/MCalibrationTestCam.h@ 5023

Last change on this file since 5023 was 4882, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 2.6 KB
Line 
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
16class TClonesArray;
17class MCalibrationTestPix;
18
19class MCalibrationTestCam : public MParContainer, public MCamEvent
20{
21private:
22
23 TArrayI fNumUninterpolated; // Number uninterpolated Pixels per area index
24 Int_t fNumUninterpolatedInMaxCluster; // Number of not interpolateable pixels in biggest cluster
25
26 TClonesArray *fPixels; //-> Array of MCalibrationTestPix, one per pixel
27 TClonesArray *fAverageAreas; //-> Array of MCalibrationTestPix, one per pixel area
28 TClonesArray *fAverageSectors; //-> Array of MCalibrationTestPix, one per camera sector
29
30public:
31
32 MCalibrationTestCam(const char *name=NULL, const char *title=NULL);
33 ~MCalibrationTestCam();
34
35 void Clear ( Option_t *o="" );
36
37 // Getters
38 const Int_t GetAverageAreas () const;
39 MCalibrationTestPix &GetAverageArea ( UInt_t i );
40 const MCalibrationTestPix &GetAverageArea ( UInt_t i ) const;
41 MCalibrationTestPix &GetAverageSector ( UInt_t i );
42 const Int_t GetAverageSectors () const;
43 const MCalibrationTestPix &GetAverageSector ( UInt_t i ) const;
44 const Int_t GetNumUninterpolated ( Int_t aidx ) const {
45 return fNumUninterpolated[aidx]; }
46 const Int_t GetNumUninterplatedInMaxCluster () const {
47 return fNumUninterpolatedInMaxCluster; }
48 Bool_t GetPixelContent ( Double_t &val, Int_t idx,
49 const MGeomCam &cam, Int_t type=0) const;
50 const Int_t GetSize () const;
51
52 MCalibrationTestPix &operator[] ( UInt_t i );
53 const MCalibrationTestPix &operator[] ( UInt_t i ) const;
54
55 // Inits
56 void Init ( const MGeomCam &geom );
57 void InitSize ( const UInt_t i );
58 void InitAverageAreas ( const UInt_t i );
59 void InitAverageSectors ( const UInt_t i );
60
61 // Prints
62 void Print ( Option_t *o="" ) const;
63
64 // Setters
65 void SetNumUninterpolated ( const UInt_t i, const Int_t aidx );
66 void SetNumUninterpolatedInMaxCluster( const UInt_t i ) { fNumUninterpolatedInMaxCluster = i; }
67
68 // Draw
69 void DrawPixelContent( Int_t num) const {}
70
71 ClassDef(MCalibrationTestCam, 1) // Container Test Calibration Results Camera
72};
73
74#endif
Note: See TracBrowser for help on using the repository browser.