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

Last change on this file since 2274 was 2274, 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 MCerPhotEvt;
14class MBlindPixels;
15
16class MBlindPixelCalc : public MTask
17{
18private:
19 MCerPhotEvt *fEvt; //!
20 MBlindPixels *fPixels; //!
21 MGeomCam *fGeomCam; //!
22
23 TArrayS fPixelsIdx; // Pixel Indices for blind pixels, which are entered by the user.
24
25 Byte_t fFlags; // flag for the method which is used
26
27 enum
28 {
29 kUseInterpolation = 1,
30 kUseCentralPixel = 2,
31 kUseBlindPixels = 3
32 };
33
34 void Interpolate() const;
35 void Unmap() const;
36 void StreamPrimitive(ofstream &out) const;
37
38 Int_t PreProcess(MParList *pList);
39 Int_t Process();
40
41public:
42 MBlindPixelCalc(const char *name=NULL, const char *title=NULL);
43
44 void SetUseInterpolation(Bool_t b=kTRUE)
45 {
46 b ? SETBIT(fFlags, kUseInterpolation) : CLRBIT(fFlags, kUseInterpolation);
47 }
48 void SetUseCentralPixel(Bool_t b=kTRUE)
49 {
50 b ? SETBIT(fFlags, kUseCentralPixel) : CLRBIT(fFlags, kUseCentralPixel);
51 }
52 void SetUseBlindPixels(Bool_t b=kTRUE)
53 {
54 b ? SETBIT(fFlags, kUseBlindPixels) : CLRBIT(fFlags, kUseBlindPixels);
55 }
56
57 void SetPixelIndices(const TArrayS &pix) { fPixelsIdx = pix; }
58 virtual Bool_t ReInit(MParList *pList);
59
60 ClassDef(MBlindPixelCalc, 1) // task to deal with hot spots (star, broken pixels, etc)
61};
62
63#endif
64
Note: See TracBrowser for help on using the repository browser.