source: trunk/MagicSoft/Mars/mtemp/mucm/classes/MMySuperCutsCalc.h@ 6976

Last change on this file since 6976 was 6310, checked in by marcos, 20 years ago
*** empty log message ***
File size: 2.3 KB
Line 
1#ifndef MARS_MMySuperCutsCalc
2#define MARS_MMySuperCutsCalc
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8#ifndef ROOT_TArrayD
9#include <TArrayD.h>
10#endif
11
12class MParList;
13class MHillas;
14class MHillasSrc;
15class MHillasExt;
16class MNewImagePar;
17class MMcEvt;
18class MCerPhotEvt;
19class MGeomCam;
20class MHadronness;
21class MHMatrix;
22class MMySuperCuts;
23class MPointingPos;
24class MNewImagePar;
25class MHillasExt;
26
27class MMySuperCutsCalc : public MTask
28{
29 private:
30
31 MHillas *fHil;
32 MHillasSrc *fHilSrc;
33 MHillasExt *fHilExt;
34 MNewImagePar *fNewPar;
35 MMcEvt *fMcEvt;
36 MHadronness *fHadronness; //! output container for hadronness
37 MMySuperCuts *fSuper; // container for supercut parameters
38 MPointingPos *fPointingPos;
39 MNewImagePar *fNewImagePar;
40 MHillasExt *fHillasExt;
41
42 TString fHadronnessName; // name of container to store hadronness
43 TString fHilName;
44 TString fHilSrcName;
45 TString fHilExtName;
46 TString fNewParName;
47 TString fSuperName; // name of container for supercut parameters
48
49 Double_t fMm2Deg; //!
50
51 Int_t fMap[11]; //!
52 MHMatrix *fMatrix; //!
53
54 Bool_t fNoDistCut;
55 Float_t fSizeCutLow,fSizeCutUp ;
56
57
58 Int_t PreProcess(MParList *pList);
59 Int_t Process();
60
61 Double_t GetVal(Int_t i) const;
62
63 Double_t CtsMCut(const Double_t* a, Double_t ls, Double_t ls2, Double_t ct, Double_t dd2) const;
64
65
66 public:
67
68 MMySuperCutsCalc(const char *hilname="MHillas",
69 const char *hilsrcname="MHillasSrc",
70 const char *name=NULL, const char *title=NULL);
71
72 void SetHadronnessName(const TString name) { fHadronnessName = name; }
73 TString GetHadronnessName() const { return fHadronnessName; }
74
75 void InitMapping(MHMatrix *mat);
76 void StopMapping() { InitMapping(NULL); }
77
78
79 /* Double_t Calc(MMySuperCuts* super, MHillas* hillas, MHillasSrc* hillasSrc, MHadronness* hadronness); */
80
81 Bool_t CalcDistCut(MHillasSrc* hillasSrc);
82
83
84 void SetNoDistCut(Bool_t flag) { fNoDistCut = flag; }
85 void SetSizeCuts(Float_t sizeLow, Float_t sizeUp)
86 {
87 fSizeCutLow = sizeLow;
88 fSizeCutUp = sizeUp;
89 }
90
91
92 ClassDef(MMySuperCutsCalc, 0) // A class to evaluate the Supercuts
93};
94
95#endif
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
Note: See TracBrowser for help on using the repository browser.