| 1 | #ifndef MARS_MBadPixelsCam | 
|---|
| 2 | #define MARS_MBadPixelsCam | 
|---|
| 3 |  | 
|---|
| 4 | #ifndef MARS_MBadPixelsPix | 
|---|
| 5 | #include "MBadPixelsPix.h" | 
|---|
| 6 | #endif | 
|---|
| 7 | #ifndef MARS_MCamEvent | 
|---|
| 8 | #include "MCamEvent.h" | 
|---|
| 9 | #endif | 
|---|
| 10 |  | 
|---|
| 11 | class MGeomPix; | 
|---|
| 12 | class TClonesArray; | 
|---|
| 13 |  | 
|---|
| 14 | class MBadPixelsCam : public MParContainer, public MCamEvent | 
|---|
| 15 | { | 
|---|
| 16 | private: | 
|---|
| 17 | TClonesArray *fArray; //-> | 
|---|
| 18 |  | 
|---|
| 19 | Short_t GetNumSuitableNeighbors(MBadPixelsPix::UnsuitableType_t type, const MGeomPix &pix) const; | 
|---|
| 20 | Short_t GetNumMaxCluster(MBadPixelsPix::UnsuitableType_t type, TObjArray &list, Int_t idx, Int_t aidx) const; | 
|---|
| 21 |  | 
|---|
| 22 | void PrintBadPixels( MBadPixelsPix::UncalibratedType_t typ, const char *text) const; | 
|---|
| 23 |  | 
|---|
| 24 | public: | 
|---|
| 25 | MBadPixelsCam(const char *name=NULL, const char *title=NULL); | 
|---|
| 26 | MBadPixelsCam(const MBadPixelsCam &cam); | 
|---|
| 27 | ~MBadPixelsCam(); | 
|---|
| 28 |  | 
|---|
| 29 | void Reset(); | 
|---|
| 30 | void Clear(Option_t *o=""); | 
|---|
| 31 | void Print(Option_t *o="") const; | 
|---|
| 32 | void Copy(TObject &object) const; | 
|---|
| 33 |  | 
|---|
| 34 | void InitSize(const UInt_t i); | 
|---|
| 35 | Int_t GetSize() const; | 
|---|
| 36 |  | 
|---|
| 37 | MBadPixelsPix &operator[](Int_t i); | 
|---|
| 38 | const MBadPixelsPix &operator[](Int_t i) const; | 
|---|
| 39 |  | 
|---|
| 40 | void Merge(const MBadPixelsCam &cam); | 
|---|
| 41 |  | 
|---|
| 42 | Short_t GetNumUnsuitable(MBadPixelsPix::UnsuitableType_t type, const MGeomCam *geom, Int_t aidx=-1) const; | 
|---|
| 43 | Short_t GetNumUnsuitable(MBadPixelsPix::UnsuitableType_t type) const { return GetNumUnsuitable(type, 0); } | 
|---|
| 44 | Short_t GetNumUnsuitable() const; | 
|---|
| 45 | Short_t GetNumSuitable(MBadPixelsPix::UnsuitableType_t type, const MGeomCam *geom, Int_t aidx=-1) const; | 
|---|
| 46 | Short_t GetNumSuitable(MBadPixelsPix::UnsuitableType_t type) const { return GetNumSuitable(type, 0); } | 
|---|
| 47 | Short_t GetNumIsolated(MBadPixelsPix::UnsuitableType_t type, const MGeomCam &geom, Int_t aidx=-1) const; | 
|---|
| 48 | Short_t GetNumIsolated(const MGeomCam &geom, Int_t aidx=-1) const { return GetNumIsolated(MBadPixelsPix::kUnsuitableRun, geom, aidx); } | 
|---|
| 49 | Short_t GetNumMaxCluster(MBadPixelsPix::UnsuitableType_t type, const MGeomCam &geom, Int_t aidx=-1) const; | 
|---|
| 50 | Short_t GetNumMaxCluster(const MGeomCam &geom, Int_t aidx=-1) { return GetNumMaxCluster(MBadPixelsPix::kUnsuitableRun, geom, aidx); } | 
|---|
| 51 |  | 
|---|
| 52 | void   AsciiRead(istream &fin); | 
|---|
| 53 | Bool_t AsciiWrite(ostream &out) const; | 
|---|
| 54 |  | 
|---|
| 55 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const; | 
|---|
| 56 | void DrawPixelContent(Int_t num) const; | 
|---|
| 57 |  | 
|---|
| 58 | ClassDef(MBadPixelsCam, 1)  //Storage container to store bad pixel of the camera... | 
|---|
| 59 | }; | 
|---|
| 60 |  | 
|---|
| 61 | #endif | 
|---|
| 62 |  | 
|---|