source: trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.h@ 3807

Last change on this file since 3807 was 3802, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef MARS_MBadPixelsTreat
2#define MARS_MBadPixelsTreat
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class MGeomCam;
9class MCerPhotEvt;
10class MPedPhotCam;
11class MBadPixelsCam;
12
13class MBadPixelsTreat : public MTask
14{
15private:
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 Byte_t fNumMinNeighbors;
23
24 enum
25 {
26 kUseInterpolation = BIT(1),
27 kUseCentralPixel = BIT(2),
28 kProcessRMS = BIT(3)
29 };
30
31 static Double_t Pow2(Double_t x) { return x*x; }
32
33 void InterpolateSignal() const;
34 void InterpolatePedestals() const;
35
36 //void Interpolate() const;
37 void Unmap() const;
38 void StreamPrimitive(ofstream &out) const;
39
40 Bool_t ReInit(MParList *pList);
41 Int_t PreProcess(MParList *pList);
42 Int_t Process();
43
44public:
45 MBadPixelsTreat(const char *name=NULL, const char *title=NULL);
46
47 void SetUseInterpolation(Bool_t b=kTRUE)
48 {
49 b ? SETBIT(fFlags, kUseInterpolation) : CLRBIT(fFlags, kUseInterpolation);
50 }
51 void SetUseCentralPixel(Bool_t b=kTRUE)
52 {
53 b ? SETBIT(fFlags, kUseCentralPixel) : CLRBIT(fFlags, kUseCentralPixel);
54 }
55 void SetProcessRMS(Bool_t b=kTRUE)
56 {
57 b ? SETBIT(fFlags, kProcessRMS) : CLRBIT(fFlags, kProcessRMS);
58 }
59 void SetNumMinNeighbors(UShort_t num) { fNumMinNeighbors=num; }
60
61
62 ClassDef(MBadPixelsTreat, 1) // Task to treat bad pixels (interpolation, unmapping)
63};
64
65#endif
66
Note: See TracBrowser for help on using the repository browser.