source: trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.h@ 4903

Last change on this file since 4903 was 4889, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 2.1 KB
Line 
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
11class MGeomPix;
12class TClonesArray;
13
14class MBadPixelsCam : public MParContainer, public MCamEvent
15{
16private:
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
22public:
23 MBadPixelsCam(const char *name=NULL, const char *title=NULL);
24 MBadPixelsCam(const MBadPixelsCam &cam);
25 ~MBadPixelsCam();
26
27 void Clear(Option_t *o="");
28 void Print(Option_t *o="") const;
29 void Copy(TObject &object) const;
30
31 void InitSize(const UInt_t i);
32 Int_t GetSize() const;
33
34 MBadPixelsPix &operator[](Int_t i);
35 const MBadPixelsPix &operator[](Int_t i) const;
36
37 void Merge(const MBadPixelsCam &cam);
38
39 Short_t GetNumUnsuitable(MBadPixelsPix::UnsuitableType_t type, const MGeomCam *geom, Int_t aidx=-1) const;
40 Short_t GetNumUnsuitable(MBadPixelsPix::UnsuitableType_t type) const { return GetNumUnsuitable(type, 0); }
41 Short_t GetNumIsolated(MBadPixelsPix::UnsuitableType_t type, const MGeomCam &geom, Int_t aidx=-1) const;
42 Short_t GetNumIsolated(const MGeomCam &geom, Int_t aidx=-1) const { return GetNumIsolated(MBadPixelsPix::kUnsuitableRun, geom, aidx); }
43 Short_t GetNumMaxCluster(MBadPixelsPix::UnsuitableType_t type, const MGeomCam &geom, Int_t aidx=-1) const;
44 Short_t GetNumMaxCluster(const MGeomCam &geom, Int_t aidx=-1) { return GetNumMaxCluster(MBadPixelsPix::kUnsuitableRun, geom, aidx); }
45
46 void AsciiRead(istream &fin, UInt_t run);
47 void AsciiRead(istream &fin) { AsciiRead(fin, 0); }
48 Bool_t AsciiWrite(ostream &out, UInt_t run) const;
49 Bool_t AsciiWrite(ostream &out) const { return AsciiWrite(out, 0); }
50
51 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
52 void DrawPixelContent(Int_t num) const;
53
54 ClassDef(MBadPixelsCam, 1) //Storage container to store bad pixel of the camera...
55};
56
57#endif
58
Note: See TracBrowser for help on using the repository browser.