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

Last change on this file since 3440 was 2455, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 2.4 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_TArrayL
16#include <TArrayL.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; //! output container to store result
32 MNewImagePar *fNewImgPar; //! output container to store result
33
34 TString fHilName; // name of the 'MHillas' container
35 TString fHilExtName; // name of the 'MHillasExt' container
36 TString fImgParName; // name of the 'MNewImagePar' container
37
38 Int_t fFlags; // Flags defining the behaviour of MHillasCalc
39
40 TArrayL fErrors; //! Error counter. Do we have to change to Double?
41
42 void PrintSkipped(int i, const char *str) const;
43
44 Int_t PreProcess(MParList *pList);
45 Int_t Process();
46 Int_t PostProcess();
47
48public:
49 enum CalcCont_t {
50 kCalcHillas = BIT(0),
51 kCalcHillasExt = BIT(1),
52 //kCalcHillasSrc = BIT(2),
53 kCalcNewImagePar = BIT(3)
54 };
55
56 MHillasCalc(const char *name=NULL, const char *title=NULL);
57
58 void SetNameHillas(const char *name) { fHilName = name; }
59 void SetNameHillasExt(const char *name) { fHilExtName = name; }
60 void SetNameNewImgPar(const char *name) { fImgParName = name; }
61
62 void SetFlags(Int_t f) { fFlags = f; }
63 void Enable(Int_t f) { fFlags |= f; }
64 void Disable(Int_t f) { fFlags &= ~f; }
65 Bool_t TestFlag(CalcCont_t i) const { return fFlags&i; }
66
67 ClassDef(MHillasCalc, 0) // Task to calculate Hillas and other image parameters
68};
69
70#endif
Note: See TracBrowser for help on using the repository browser.