source: branches/MarsISDCBranchBasedOn17887/mcalib/MCalibrationIntensityConstCam.h@ 18221

Last change on this file since 18221 was 7195, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 2.1 KB
Line 
1#ifndef MARS_MCalibrationIntensityConstCam
2#define MARS_MCalibrationIntensityConstCam
3
4#ifndef MARS_MCamEvent
5#include "MCamEvent.h"
6#endif
7
8#ifndef MARS_MParContainer
9#include "MParContainer.h"
10#endif
11
12#ifndef MARS_MCalibConstCam
13#include "MCalibConstCam.h"
14#endif
15
16#ifndef MARS_MGeomCamMagic
17#include "MGeomCamMagic.h"
18#endif
19
20class MCalibConstPix;
21class MBadPixelsCam;
22class TOrdCollection;
23class TGraph;
24class TGraphErrors;
25
26class MCalibrationIntensityConstCam : public MParContainer, public MCamEvent
27{
28private:
29
30 TOrdCollection *fCams; // Array of MCalibConstCams, one per pulse colour and intensity
31 MBadPixelsCam *fBadPixels; //! Pointer to current MBadPixelsCam
32
33 void Add(const UInt_t from, const UInt_t to);
34 void InitSize( const UInt_t n );
35
36public:
37
38 MCalibrationIntensityConstCam(const char *name=NULL, const char *title=NULL);
39 ~MCalibrationIntensityConstCam();
40
41 void Clear ( Option_t *o="" );
42
43 void AddToList( const char* name, const MGeomCam &geom);
44
45 const Int_t GetSize() const;
46
47 MCalibConstCam *GetCam ( Int_t i=-1);
48 const MCalibConstCam *GetCam ( Int_t i=-1) const;
49
50 MCalibConstPix &operator[] ( UInt_t i );
51 const MCalibConstPix &operator[] ( UInt_t i ) const;
52
53 // Inits
54 void Init ( const MGeomCam &geom );
55
56 // Prints
57 void Print(Option_t *o="") const;
58
59 // Setters
60 void SetBadPixels( MBadPixelsCam *b ) { fBadPixels = b; }
61
62 // MCamEvent
63 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
64 void DrawPixelContent( Int_t num) const { return GetCam()->DrawPixelContent(num); }
65
66 // Posterior displays
67 TGraphErrors *GetConvFactorPerAreaVsTime( const Int_t aidx=0, const MGeomCam &geom=MGeomCamMagic());
68 TGraph *GetConvFactorVsTime ( const Int_t pixid );
69
70 void DrawConvFactorPerAreaVsTime( const Int_t aidx=-1); // *MENU*
71 void DrawConvFactorVsTime ( const Int_t idx ); // *MENU*
72
73 ClassDef(MCalibrationIntensityConstCam, 1) // Container Calibration Constants Results Camera
74};
75
76#endif
Note: See TracBrowser for help on using the repository browser.