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 |
|
---|
14 | class TObjArray;
|
---|
15 | class MGeomCam;
|
---|
16 | class MBadPixelsIntensityCam : public MParContainer, public MCamEvent
|
---|
17 | {
|
---|
18 | private:
|
---|
19 |
|
---|
20 | void InitSize( const UInt_t n );
|
---|
21 |
|
---|
22 | protected:
|
---|
23 |
|
---|
24 | TObjArray *fCams; //-> Array of MBadPixelsCams, one per pulse colour and intensity
|
---|
25 |
|
---|
26 | public:
|
---|
27 |
|
---|
28 | MBadPixelsIntensityCam(const char *name=NULL, const char *title=NULL);
|
---|
29 | ~MBadPixelsIntensityCam();
|
---|
30 |
|
---|
31 | void Clear ( Option_t *o="" );
|
---|
32 | void Print ( Option_t *o="" ) const;
|
---|
33 | void Copy ( TObject& object) const;
|
---|
34 |
|
---|
35 | void AddToList( const char* name, const MGeomCam &geom );
|
---|
36 |
|
---|
37 | // Getters
|
---|
38 | Int_t GetSize() const;
|
---|
39 |
|
---|
40 | MBadPixelsCam *GetCam ( Int_t i=-1);
|
---|
41 | const MBadPixelsCam *GetCam ( Int_t i=-1) const;
|
---|
42 |
|
---|
43 | MBadPixelsCam *GetCam ( const char *name );
|
---|
44 | const MBadPixelsCam *GetCam ( const char *name ) const;
|
---|
45 |
|
---|
46 | MBadPixelsPix &operator[] ( Int_t i );
|
---|
47 | const MBadPixelsPix &operator[] ( Int_t i ) const;
|
---|
48 |
|
---|
49 | Short_t GetNumUnsuitable(MBadPixelsPix::UnsuitableType_t type,const MGeomCam *geom,Int_t aidx=-1)
|
---|
50 | const { return GetCam()->GetNumUnsuitable(type,geom,aidx); }
|
---|
51 | Short_t GetNumUnsuitable(MBadPixelsPix::UnsuitableType_t type)
|
---|
52 | const { return GetCam()->GetNumUnsuitable(type); }
|
---|
53 | Short_t GetNumIsolated(MBadPixelsPix::UnsuitableType_t type,const MGeomCam &geom,Int_t aidx=-1)
|
---|
54 | const { return GetCam()->GetNumIsolated(type,geom,aidx); }
|
---|
55 | Short_t GetNumIsolated(const MGeomCam &geom,Int_t aidx=-1)
|
---|
56 | const { return GetCam()->GetNumIsolated(geom, aidx); }
|
---|
57 | Short_t GetNumMaxCluster(MBadPixelsPix::UnsuitableType_t type,const MGeomCam &geom,Int_t aidx=-1)
|
---|
58 | const { return GetCam()->GetNumMaxCluster(type,geom,aidx); }
|
---|
59 | Short_t GetNumMaxCluster(const MGeomCam &geom,Int_t aidx=-1)
|
---|
60 | { return GetCam()->GetNumMaxCluster(geom, aidx); }
|
---|
61 |
|
---|
62 | void AsciiRead(istream &fin, UInt_t run)
|
---|
63 | { GetCam()->AsciiRead(fin,run); }
|
---|
64 | void AsciiRead(istream &fin)
|
---|
65 | {GetCam()->AsciiRead(fin); }
|
---|
66 | Bool_t AsciiWrite(ostream &out, UInt_t run)
|
---|
67 | const { return GetCam()->AsciiWrite(out,run); }
|
---|
68 | Bool_t AsciiWrite(ostream &out)
|
---|
69 | const { return GetCam()->AsciiWrite(out); }
|
---|
70 |
|
---|
71 | // Inits
|
---|
72 | void Init ( const MGeomCam &geom );
|
---|
73 |
|
---|
74 | Bool_t GetPixelContent ( Double_t &val, Int_t idx, const MGeomCam &cam,Int_t type=0) const;
|
---|
75 | void DrawPixelContent( Int_t num) const;
|
---|
76 |
|
---|
77 | ClassDef(MBadPixelsIntensityCam, 1) // Base Container Intensity BadPixels Results
|
---|
78 | };
|
---|
79 |
|
---|
80 | #endif
|
---|