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

Last change on this file since 2440 was 2440, checked in by tbretz, 23 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#ifndef ROOT_TArrayC
16#include <TArrayC.h>
17#endif
18
19class MGeomCam;
20class MCerPhotEvt;
21class MHillas;
22class MHillasExt;
23class MNewImagePar;
24
25class MHillasCalc : public MTask
26{
27 const MGeomCam *fGeomCam; // Camera Geometry used to calculate Hillas
28 const MCerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation
29
30 MHillas *fHillas; // output container to store result
31 MHillasExt *fHillasExt;
32 MNewImagePar *fNewImgPar;
33
34 TString fHilName;
35 TString fHilExtName;
36 TString fImgParName;
37
38 TArrayC fErrors;
39
40 Int_t fFlags;
41
42 Int_t PreProcess(MParList *pList);
43 Int_t Process();
44 Int_t PostProcess();
45
46public:
47 enum CalcCont_t {
48 kCalcHillas = BIT(0),
49 kCalcHillasExt = BIT(1),
50 //kCalcHillasSrc = BIT(2),
51 kCalcNewImagePar = BIT(3)
52 };
53
54 MHillasCalc(const char *name=NULL, const char *title=NULL);
55
56 void SetNameHillas(const char *name) { fHilName = name; }
57 void SetNameHillasExt(const char *name) { fHilExtName = name; }
58 void SetNameNewImgPar(const char *name) { fImgParName = name; }
59
60 void SetFlags(Int_t f) { fFlags = f; }
61 void Enable(Int_t f) { fFlags |= f; }
62 void Disable(Int_t f) { fFlags &= ~f; }
63 Bool_t TestFlag(CalcCont_t i) const { return fFlags&i; }
64
65 ClassDef(MHillasCalc, 0) // Task to calculate Hillas and other image parameters
66};
67
68#endif
Note: See TracBrowser for help on using the repository browser.