source: trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.h@ 2320

Last change on this file since 2320 was 2298, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.5 KB
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
12class MGeomCam;
13class MPedestal;
14class MCerPhotEvt;
15class MBlindPixels;
16class MPedestalCam;
17
18class MBlindPixelCalc : public MTask
19{
20private:
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
44public:
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.