source: trunk/MagicSoft/Mars/mimage/MHillasCalc.h@ 2124

Last change on this file since 2124 was 2100, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 2.0 KB
Line 
1#ifndef MARS_MHillasCalc
2#define MARS_MHillasCalc
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MHillasCalkc //
7// //
8// Task to calculate Hillas Parameters //
9// //
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef MARS_MTask
13#include "MTask.h"
14#endif
15
16class MGeomCam;
17class MCerPhotEvt;
18class MHillas;
19class MHillasExt;
20class MNewImagePar;
21
22class MHillasCalc : public MTask
23{
24 const MGeomCam *fGeomCam; // Camera Geometry used to calculate Hillas
25 const MCerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation
26
27 MHillas *fHillas; // output container to store result
28 MHillasExt *fHillasExt;
29 MNewImagePar *fNewImgPar;
30
31 TString fHilName;
32 TString fHilExtName;
33 TString fImgParName;
34
35 Int_t fErrors[5];
36
37 Int_t fFlags;
38
39 Bool_t PreProcess(MParList *pList);
40 Bool_t Process();
41 Bool_t PostProcess();
42
43public:
44 enum CalcCont_t {
45 kCalcHillas = BIT(0),
46 kCalcHillasExt = BIT(1),
47 //kCalcHillasSrc = BIT(2),
48 kCalcNewImagePar = BIT(3)
49 };
50
51 MHillasCalc(const char *name=NULL, const char *title=NULL);
52
53 void SetNameHillas(const char *name) { fHilName = name; }
54 void SetNameHillasExt(const char *name) { fHilExtName = name; }
55 void SetNameNewImgPar(const char *name) { fImgParName = name; }
56
57 void SetFlags(Int_t f) { fFlags = f; }
58 void Enable(Int_t f) { fFlags |= f; }
59 void Disable(Int_t f) { fFlags &= ~f; }
60 Bool_t TestFlag(CalcCont_t i) const { return fFlags&i; }
61
62 ClassDef(MHillasCalc, 0) // Task to calculate Hillas and other image parameters
63};
64
65#endif
Note: See TracBrowser for help on using the repository browser.