source: tags/Mars-V0.9.5/mbadpixels/MBadPixelsIntensityCam.h

Last change on this file was 7189, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 3.6 KB
Line 
1#ifndef MARS_MBadPixelsIntensityCam
2#define MARS_MBadPixelsIntensityCam
3
4#ifndef MARS_MBadPixelsPix
5#include "MBadPixelsPix.h"
6#endif
7#ifndef MARS_MCamEvent
8#include "MCamEvent.h"
9#endif
10#ifndef MARS_MBadPixelsCam
11#include "MBadPixelsCam.h"
12#endif
13#ifndef MARS_MGeomCamMagic
14#include "MGeomCamMagic.h"
15#endif
16
17class TOrdCollection;
18class TGraph;
19class MHCamera;
20class MBadPixelsIntensityCam : public MParContainer, public MCamEvent
21{
22private:
23
24 TOrdCollection *fCams; //-> Array of MBadPixelsCams, one per pulse colour and intensity
25
26 void Add(const UInt_t from, const UInt_t to);
27
28public:
29
30 MBadPixelsIntensityCam(const char *name=NULL, const char *title=NULL);
31 ~MBadPixelsIntensityCam();
32
33 void Clear ( Option_t *o="" );
34 void Print ( Option_t *o="" ) const;
35 void Copy ( TObject& object) const;
36
37 void AddToList( const char* name, const MGeomCam &geom );
38
39 // Getters
40 Int_t GetSize() const;
41
42 MBadPixelsCam *GetCam ( Int_t i=-1);
43 const MBadPixelsCam *GetCam ( Int_t i=-1) const;
44
45 MBadPixelsCam *GetCam ( const char *name );
46 const MBadPixelsCam *GetCam ( const char *name ) const;
47
48 MBadPixelsPix &operator[] ( Int_t i );
49 const MBadPixelsPix &operator[] ( Int_t i ) const;
50
51 Short_t GetNumUnsuitable(MBadPixelsPix::UnsuitableType_t type,const MGeomCam *geom,Int_t aidx=-1)
52 const { return GetCam()->GetNumUnsuitable(type,geom,aidx); }
53 Short_t GetNumUnsuitable(MBadPixelsPix::UnsuitableType_t type)
54 const { return GetCam()->GetNumUnsuitable(type); }
55 Short_t GetNumIsolated(MBadPixelsPix::UnsuitableType_t type,const MGeomCam &geom,Int_t aidx=-1)
56 const { return GetCam()->GetNumIsolated(type,geom,aidx); }
57 Short_t GetNumIsolated(const MGeomCam &geom,Int_t aidx=-1)
58 const { return GetCam()->GetNumIsolated(geom, aidx); }
59 Short_t GetNumMaxCluster(MBadPixelsPix::UnsuitableType_t type,const MGeomCam &geom,Int_t aidx=-1)
60 const { return GetCam()->GetNumMaxCluster(type,geom,aidx); }
61 Short_t GetNumMaxCluster(const MGeomCam &geom,Int_t aidx=-1)
62 { return GetCam()->GetNumMaxCluster(geom, aidx); }
63
64 void AsciiRead(istream &fin, UInt_t run)
65 { GetCam()->AsciiRead(fin,run); }
66 void AsciiRead(istream &fin)
67 {GetCam()->AsciiRead(fin); }
68 Bool_t AsciiWrite(ostream &out, UInt_t run)
69 const { return GetCam()->AsciiWrite(out,run); }
70 Bool_t AsciiWrite(ostream &out)
71 const { return GetCam()->AsciiWrite(out); }
72
73 // Inits
74 void Init ( const MGeomCam &geom );
75 void InitSize( const UInt_t i );
76
77 Bool_t GetPixelContent ( Double_t &val, Int_t idx, const MGeomCam &cam,Int_t type=0) const;
78 void DrawPixelContent( Int_t num) const;
79
80 TGraph *GetUncalibratedPerAreaVsTime( const MBadPixelsPix::UncalibratedType_t typ,
81 const Int_t aidx=-1, const MGeomCam &geom=MGeomCamMagic());
82 TGraph *GetUnsuitablePerAreaVsTime( const MBadPixelsPix::UnsuitableType_t typ,
83 const Int_t aidx=-1, const MGeomCam &geom=MGeomCamMagic());
84
85 MHCamera *GetUnsuitableSpectrum( const MBadPixelsPix::UnsuitableType_t typ, const MGeomCam &geom=MGeomCamMagic());
86
87 MHCamera *GetUncalibratedSpectrum( const MBadPixelsPix::UncalibratedType_t typ, const MGeomCam &geom=MGeomCamMagic());
88
89 void DrawUncalibratedPerAreaVsTime( const MBadPixelsPix::UncalibratedType_t typ,
90 const Int_t aidx=-1, const MGeomCam &geom=MGeomCamMagic()); // *MENU*
91 void DrawUnsuitablePerAreaVsTime( const MBadPixelsPix::UnsuitableType_t typ,
92 const Int_t aidx=-1, const MGeomCam &geom=MGeomCamMagic()); // *MENU*
93
94
95
96 ClassDef(MBadPixelsIntensityCam, 1) // Base Container Intensity BadPixels Results
97};
98
99#endif
Note: See TracBrowser for help on using the repository browser.