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

Last change on this file since 4162 was 3526, checked in by blanch, 21 years ago
*** empty log message ***
File size: 2.7 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;
24class MConcentration;
25
26class MHillasCalc : public MTask
27{
28 const MGeomCam *fGeomCam; //! Camera Geometry used to calculate Hillas
29 const MCerPhotEvt *fCerPhotEvt; //! Cerenkov Photon Event used for calculation
30
31 MHillas *fHillas; //! output container to store result
32 MHillasExt *fHillasExt; //! output container to store result
33 MNewImagePar *fNewImgPar; //! output container to store result
34 MConcentration *fConc; //! output container to store result
35
36 TString fHilName; // name of the 'MHillas' container
37 TString fHilExtName; // name of the 'MHillasExt' container
38 TString fImgParName; // name of the 'MNewImagePar' container
39 TString fConcName; // name of the 'MConcentration' container
40
41 Int_t fFlags; // Flags defining the behaviour of MHillasCalc
42
43 TArrayL fErrors; //! Error counter. Do we have to change to Double?
44
45 void PrintSkipped(int i, const char *str) const;
46
47 Int_t PreProcess(MParList *pList);
48 Int_t Process();
49 Int_t PostProcess();
50
51public:
52 enum CalcCont_t {
53 kCalcHillas = BIT(0),
54 kCalcHillasExt = BIT(1),
55 //kCalcHillasSrc = BIT(2),
56 kCalcNewImagePar = BIT(3),
57 kCalcConc = BIT(4)
58 };
59
60 MHillasCalc(const char *name=NULL, const char *title=NULL);
61
62 void SetNameHillas(const char *name) { fHilName = name; }
63 void SetNameHillasExt(const char *name) { fHilExtName = name; }
64 void SetNameNewImgPar(const char *name) { fImgParName = name; }
65 void SetNameConc(const char *name) { fConcName = name; }
66
67 void SetFlags(Int_t f) { fFlags = f; }
68 void Enable(Int_t f) { fFlags |= f; }
69 void Disable(Int_t f) { fFlags &= ~f; }
70 Bool_t TestFlag(CalcCont_t i) const { return fFlags&i; }
71
72 ClassDef(MHillasCalc, 0) // Task to calculate Hillas and other image parameters
73};
74
75#endif
Note: See TracBrowser for help on using the repository browser.