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

Last change on this file since 1527 was 1496, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.4 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 fPixelsID; // Pixel IDs 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 };
32
33 void Interpolate() const;
34 void Unmap() const;
35 void StreamPrimitive(ofstream &out) const;
36
37public:
38 MBlindPixelCalc(const char *name=NULL, const char *title=NULL);
39
40 void SetUseInterpolation(Bool_t b=kTRUE)
41 {
42 b ? SETBIT(fFlags, kUseInterpolation) : CLRBIT(fFlags, kUseInterpolation);
43 }
44 void SetUseCentralPixel(Bool_t b=kTRUE)
45 {
46 b ? SETBIT(fFlags, kUseCentralPixel) : CLRBIT(fFlags, kUseCentralPixel);
47 }
48
49 Bool_t PreProcess(MParList *pList);
50 Bool_t Process();
51
52 void SetPixels(Int_t num, Short_t *ids);
53 void SetPixels(const TArrayS pix) { SetPixels(pix.GetSize(), pix.GetArray()); }
54 virtual Bool_t ReInit(MParList *pList);
55
56 ClassDef(MBlindPixelCalc, 1) // task to deal with hot spots (star, broken pixels, etc)
57};
58
59#endif
60
Note: See TracBrowser for help on using the repository browser.