Line | |
---|
1 | #ifndef MARS_MBlindPixelCalc
|
---|
2 | #define MARS_MBlindPixelCalc
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef ROOT_TArrayS
|
---|
9 | #include <TArrayS.h>
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | class MGeomCam;
|
---|
13 | class MPedestal;
|
---|
14 | class MCerPhotEvt;
|
---|
15 | class MBlindPixels;
|
---|
16 | class MPedestalCam;
|
---|
17 |
|
---|
18 | class MBlindPixelCalc : public MTask
|
---|
19 | {
|
---|
20 | private:
|
---|
21 | MCerPhotEvt *fEvt; //!
|
---|
22 | MBlindPixels *fPixels; //!
|
---|
23 | MGeomCam *fGeomCam; //!
|
---|
24 | MPedestalCam *fPed; //!
|
---|
25 |
|
---|
26 | TArrayS fPixelsIdx; // Pixel Indices for blind pixels, which are entered by the user.
|
---|
27 |
|
---|
28 | Byte_t fFlags; // flag for the method which is used
|
---|
29 |
|
---|
30 | enum
|
---|
31 | {
|
---|
32 | kUseInterpolation = 1,
|
---|
33 | kUseCentralPixel = 2,
|
---|
34 | kUseBlindPixels = 3
|
---|
35 | };
|
---|
36 |
|
---|
37 | void Interpolate() const;
|
---|
38 | void Unmap() const;
|
---|
39 | void StreamPrimitive(ofstream &out) const;
|
---|
40 |
|
---|
41 | Int_t PreProcess(MParList *pList);
|
---|
42 | Int_t Process();
|
---|
43 |
|
---|
44 | public:
|
---|
45 | MBlindPixelCalc(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 SetUseBlindPixels(Bool_t b=kTRUE)
|
---|
56 | {
|
---|
57 | b ? SETBIT(fFlags, kUseBlindPixels) : CLRBIT(fFlags, kUseBlindPixels);
|
---|
58 | }
|
---|
59 |
|
---|
60 | void SetPixelIndices(const TArrayS &pix) { fPixelsIdx = pix; }
|
---|
61 | virtual Bool_t ReInit(MParList *pList);
|
---|
62 |
|
---|
63 | ClassDef(MBlindPixelCalc, 1) // task to deal with hot spots (star, broken pixels, etc)
|
---|
64 | };
|
---|
65 |
|
---|
66 | #endif
|
---|
67 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.