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

Last change on this file since 5404 was 5053, checked in by gaug, 20 years ago
*** empty log message ***
File size: 3.6 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 // Draws
45 void DrawHiLoFits();
46 void DrawPixelContent( Int_t num) const;
47
48 // Getters
49 Bool_t GetPixelContent( Double_t &val, Int_t idx, const MGeomCam &cam,Int_t type=0) const;
50 const Int_t GetSize() const;
51
52 const Int_t GetAverageAreas () const;
53 MCalibrationPix &GetAverageArea ( UInt_t i );
54 const MCalibrationPix &GetAverageArea ( UInt_t i ) const;
55 MBadPixelsPix &GetAverageBadArea ( UInt_t i );
56 const MBadPixelsPix &GetAverageBadArea ( UInt_t i ) const;
57 const Int_t GetAverageSectors () const;
58 MCalibrationPix &GetAverageSector ( UInt_t i );
59 const MCalibrationPix &GetAverageSector ( UInt_t i ) const;
60 MBadPixelsPix &GetAverageBadSector ( UInt_t i );
61 const MBadPixelsPix &GetAverageBadSector ( UInt_t i ) const;
62
63 MCalibrationCam *GetCam ( Int_t i=-1);
64 const MCalibrationCam *GetCam ( Int_t i=-1) const;
65
66 MCalibrationCam *GetCam ( const char *name );
67 const MCalibrationCam *GetCam ( const char *name ) const;
68
69 MCalibrationPix &operator[] ( UInt_t i );
70 const MCalibrationPix &operator[] ( UInt_t i ) const;
71
72 const Float_t GetNumHiGainFADCSlices ( const Int_t aidx=0 ) const { return GetCam()->GetNumHiGainFADCSlices(aidx); }
73 const Float_t GetNumLoGainFADCSlices ( const Int_t aidx=0 ) const { return GetCam()->GetNumLoGainFADCSlices(aidx); }
74 const Int_t GetNumUnsuitable ( const Int_t aidx=-1) const { return GetCam()->GetNumUnsuitable(aidx); }
75 const Int_t GetNumUnreliable ( const Int_t aidx=-1) const { return GetCam()->GetNumUnreliable(aidx); }
76
77 // Inits
78 void Init ( const MGeomCam &geom );
79
80 // Prints
81 void Print(Option_t *o="") const;
82
83 // Setters
84 void SetNumHiGainFADCSlices( const Float_t f, const Int_t aidx=0) { GetCam()->SetNumHiGainFADCSlices(f,aidx); }
85 void SetNumLoGainFADCSlices( const Float_t f, const Int_t aidx=0) { GetCam()->SetNumLoGainFADCSlices(f,aidx); }
86 void SetNumUnsuitable ( const UInt_t i, const Int_t aidx ) { GetCam()->SetNumUnsuitable(i,aidx); }
87 void SetNumUnreliable ( const UInt_t i, const Int_t aidx ) { GetCam()->SetNumUnreliable(i,aidx); }
88 void SetPulserColor ( const MCalibrationCam::PulserColor_t col=MCalibrationCam::kCT1) {
89 GetCam()->SetPulserColor(col); }
90
91 ClassDef(MCalibrationIntensityCam, 1) // Base Container Intensity Calibration Results
92};
93
94#endif
Note: See TracBrowser for help on using the repository browser.