source: trunk/MagicSoft/Mars/mtemp/meth/MDCACalc.h@ 6066

Last change on this file since 6066 was 4096, checked in by commichau, 21 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1
2#ifndef MARS_MDCACalc
3#define MARS_MDCACalc
4
5#include "MTask.h"
6#include "MParList.h"
7#include "MDCA.h"
8#include "MCerPhotEvt.h"
9#include "MLog.h"
10#include "MLogManip.h"
11#include "MHillasCalc.h"
12
13class MGeomCam;
14class MCerPhotEvt;
15class MDCA;
16
17class MDCACalc : public MTask
18{
19 const MGeomCam *fGeomCam; // Camera Geometry used to calculate Hillas
20 const MCerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation
21 const MHillas *fHillas;
22
23 MDCA *fMDCA; // Output container to store the result
24
25 TString fDCAName;
26
27 Double_t par[6];
28 Double_t dca;
29
30 Int_t fErrors;
31 Int_t fFlags;
32
33 Int_t PreProcess(MParList *pList);
34 Int_t Process();
35 Int_t PostProcess();
36
37public:
38 enum CalcCont_t {
39 kCalcDCA = BIT(0),
40 };
41
42 MDCACalc(const char *name=NULL, const char *title=NULL);
43
44 void SetNameDCA(const char *name) { fDCAName = name; }
45
46 void SetFlags(Int_t f) { fFlags = f; }
47 void Enable(Int_t f) { fFlags |= f; }
48 void Disable(Int_t f) { fFlags &= ~f; }
49 Bool_t TestFlag(CalcCont_t i) const { return fFlags&i; }
50
51
52 ClassDef(MDCACalc, 0) // Task to calculate DCA
53};
54
55#endif
56
57
58
59
60
Note: See TracBrowser for help on using the repository browser.