source: trunk/MagicSoft/Mars/mbadpixels/MBadPixelsIntensityCam.h@ 6905

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