| Line | |
|---|
| 1 | #ifndef MARS_MBadPixelsTreat
|
|---|
| 2 | #define MARS_MBadPixelsTreat
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MTask
|
|---|
| 5 | #include "MTask.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | class MGeomCam;
|
|---|
| 9 | class MCerPhotEvt;
|
|---|
| 10 | class MPedPhotCam;
|
|---|
| 11 | class MBadPixelsCam;
|
|---|
| 12 |
|
|---|
| 13 | class MBadPixelsTreat : public MTask
|
|---|
| 14 | {
|
|---|
| 15 | private:
|
|---|
| 16 | MGeomCam *fGeomCam; //!
|
|---|
| 17 | MPedPhotCam *fPedPhot; //!
|
|---|
| 18 | MCerPhotEvt *fEvt; //!
|
|---|
| 19 | MBadPixelsCam *fBadPixels; //!
|
|---|
| 20 |
|
|---|
| 21 | Byte_t fFlags; // flag for the method which is used
|
|---|
| 22 |
|
|---|
| 23 | enum
|
|---|
| 24 | {
|
|---|
| 25 | kUseInterpolation = BIT(1),
|
|---|
| 26 | kUseCentralPixel = BIT(2),
|
|---|
| 27 | };
|
|---|
| 28 |
|
|---|
| 29 | static Double_t Sqr(Double_t x) { return x*x; }
|
|---|
| 30 |
|
|---|
| 31 | void Interpolate() const;
|
|---|
| 32 | void Unmap() const;
|
|---|
| 33 | void StreamPrimitive(ofstream &out) const;
|
|---|
| 34 |
|
|---|
| 35 | Int_t PreProcess(MParList *pList);
|
|---|
| 36 | Int_t Process();
|
|---|
| 37 |
|
|---|
| 38 | public:
|
|---|
| 39 | MBadPixelsTreat(const char *name=NULL, const char *title=NULL);
|
|---|
| 40 |
|
|---|
| 41 | void SetUseInterpolation(Bool_t b=kTRUE)
|
|---|
| 42 | {
|
|---|
| 43 | b ? SETBIT(fFlags, kUseInterpolation) : CLRBIT(fFlags, kUseInterpolation);
|
|---|
| 44 | }
|
|---|
| 45 | void SetUseCentralPixel(Bool_t b=kTRUE)
|
|---|
| 46 | {
|
|---|
| 47 | b ? SETBIT(fFlags, kUseCentralPixel) : CLRBIT(fFlags, kUseCentralPixel);
|
|---|
| 48 | }
|
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 | ClassDef(MBadPixelsTreat, 1) // Task to treat bad pixels (interpolation, unmapping)
|
|---|
| 52 | };
|
|---|
| 53 |
|
|---|
| 54 | #endif
|
|---|
| 55 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.