| 1 | #ifndef MARS_MBadPixelsCam
|
|---|
| 2 | #define MARS_MBadPixelsCam
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MParContainer
|
|---|
| 5 | #include "MParContainer.h"
|
|---|
| 6 | #endif
|
|---|
| 7 | #ifndef MARS_MCamEvent
|
|---|
| 8 | #include "MCamEvent.h"
|
|---|
| 9 | #endif
|
|---|
| 10 |
|
|---|
| 11 | class TClonesArray;
|
|---|
| 12 | class MBadPixelsPix;
|
|---|
| 13 |
|
|---|
| 14 | class MBadPixelsCam : public MParContainer, public MCamEvent
|
|---|
| 15 | {
|
|---|
| 16 | private:
|
|---|
| 17 | TClonesArray *fArray; //->
|
|---|
| 18 |
|
|---|
| 19 | public:
|
|---|
| 20 | MBadPixelsCam(const char *name=NULL, const char *title=NULL);
|
|---|
| 21 | MBadPixelsCam(const MBadPixelsCam &cam);
|
|---|
| 22 | ~MBadPixelsCam();
|
|---|
| 23 |
|
|---|
| 24 | void Clear(Option_t *o="");
|
|---|
| 25 | void Print(Option_t *o="") const;
|
|---|
| 26 | void Copy(TObject &object) const;
|
|---|
| 27 |
|
|---|
| 28 | void InitSize(const UInt_t i);
|
|---|
| 29 | Int_t GetSize() const;
|
|---|
| 30 |
|
|---|
| 31 | MBadPixelsPix &operator[](Int_t i);
|
|---|
| 32 | const MBadPixelsPix &operator[](Int_t i) const;
|
|---|
| 33 |
|
|---|
| 34 | void Merge(const MBadPixelsCam &cam);
|
|---|
| 35 |
|
|---|
| 36 | void AsciiRead(ifstream &fin, UInt_t run);
|
|---|
| 37 | void AsciiRead(ifstream &fin) { AsciiRead(fin, 0); }
|
|---|
| 38 | Bool_t AsciiWrite(ostream &out, UInt_t run) const;
|
|---|
| 39 | Bool_t AsciiWrite(ostream &out) const { return AsciiWrite(out, 0); }
|
|---|
| 40 |
|
|---|
| 41 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
|---|
| 42 | void DrawPixelContent(Int_t num) const;
|
|---|
| 43 |
|
|---|
| 44 | ClassDef(MBadPixelsCam, 1) //Storage container to store bad pixel of the camera...
|
|---|
| 45 | };
|
|---|
| 46 |
|
|---|
| 47 | #endif
|
|---|
| 48 |
|
|---|