source: trunk/MagicSoft/Mars/mcalib/MCalibrationIntensityCam.h@ 6206

Last change on this file since 6206 was 5651, checked in by gaug, 20 years ago
*** empty log message ***
File size: 3.7 KB
Line 
1#ifndef MARS_MCalibrationIntensityCam
2#define MARS_MCalibrationIntensityCam
3
4#ifndef MARS_MCamEvent
5#include "MCamEvent.h"
6#endif
7
8#ifndef MARS_MArrayD
9#include "MArrayD.h"
10#endif
11
12#ifndef MARS_MCalibrationCam
13#include "MCalibrationCam.h"
14#endif
15
16class TOrdCollection;
17class MCalibrationPix;
18class MBadPixelsPix;
19class MGeomCam;
20class MCalibrationIntensityCam : public MParContainer, public MCamEvent
21{
22private:
23
24 MArrayD fOffsets; //! Arrays of Higain-vs-LoGain fit result Offsets
25 MArrayD fSlopes; //! Arrays of Higain-vs-LoGain fit result Slopes
26
27protected:
28
29 TOrdCollection *fCams; // Array of MCalibrationCams, one per pulse colour and intensity
30
31 virtual void Add(const UInt_t from, const UInt_t to);
32 virtual void InitSize( const UInt_t n );
33
34public:
35
36 MCalibrationIntensityCam(const char *name=NULL, const char *title=NULL);
37 ~MCalibrationIntensityCam();
38
39 void Clear ( Option_t *o="" );
40 void Copy(TObject& object) const;
41
42 void AddToList( const char* name, const MGeomCam &geom );
43
44 Int_t CountNumEntries(const MCalibrationCam::PulserColor_t col) const;
45
46 // Draws
47 void DrawHiLoFits();
48 void DrawPixelContent( Int_t num) const;
49
50 // Getters
51 Bool_t GetPixelContent( Double_t &val, Int_t idx, const MGeomCam &cam,Int_t type=0) const;
52 const Int_t GetSize() const;
53
54 const Int_t GetAverageAreas () const;
55 MCalibrationPix &GetAverageArea ( UInt_t i );
56 const MCalibrationPix &GetAverageArea ( UInt_t i ) const;
57 MBadPixelsPix &GetAverageBadArea ( UInt_t i );
58 const MBadPixelsPix &GetAverageBadArea ( UInt_t i ) const;
59 const Int_t GetAverageSectors () const;
60 MCalibrationPix &GetAverageSector ( UInt_t i );
61 const MCalibrationPix &GetAverageSector ( UInt_t i ) const;
62 MBadPixelsPix &GetAverageBadSector ( UInt_t i );
63 const MBadPixelsPix &GetAverageBadSector ( UInt_t i ) const;
64
65 MCalibrationCam *GetCam ( Int_t i=-1);
66 const MCalibrationCam *GetCam ( Int_t i=-1) const;
67
68 MCalibrationCam *GetCam ( const char *name );
69 const MCalibrationCam *GetCam ( const char *name ) const;
70
71 MCalibrationPix &operator[] ( UInt_t i );
72 const MCalibrationPix &operator[] ( UInt_t i ) const;
73
74 const Float_t GetNumHiGainFADCSlices ( const Int_t aidx=0 ) const { return GetCam()->GetNumHiGainFADCSlices(aidx); }
75 const Float_t GetNumLoGainFADCSlices ( const Int_t aidx=0 ) const { return GetCam()->GetNumLoGainFADCSlices(aidx); }
76 const Int_t GetNumUnsuitable ( const Int_t aidx=-1) const { return GetCam()->GetNumUnsuitable(aidx); }
77 const Int_t GetNumUnreliable ( const Int_t aidx=-1) const { return GetCam()->GetNumUnreliable(aidx); }
78
79 // Inits
80 void Init ( const MGeomCam &geom );
81
82 // Prints
83 void Print(Option_t *o="") const;
84
85 // Setters
86 void SetNumHiGainFADCSlices( const Float_t f, const Int_t aidx=0) { GetCam()->SetNumHiGainFADCSlices(f,aidx); }
87 void SetNumLoGainFADCSlices( const Float_t f, const Int_t aidx=0) { GetCam()->SetNumLoGainFADCSlices(f,aidx); }
88 void SetNumUnsuitable ( const UInt_t i, const Int_t aidx ) { GetCam()->SetNumUnsuitable(i,aidx); }
89 void SetNumUnreliable ( const UInt_t i, const Int_t aidx ) { GetCam()->SetNumUnreliable(i,aidx); }
90 void SetPulserColor ( const MCalibrationCam::PulserColor_t col=MCalibrationCam::kCT1) {
91 GetCam()->SetPulserColor(col); }
92
93 ClassDef(MCalibrationIntensityCam, 1) // Base Container Intensity Calibration Results
94};
95
96#endif
Note: See TracBrowser for help on using the repository browser.