source: trunk/Mars/mfilter/MFSupercuts.h@ 19994

Last change on this file since 19994 was 6877, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef MARS_MFSupercuts
2#define MARS_MFSupercuts
3
4#ifndef MARS_MFilter
5#include "MFilter.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 MCerPhotEvt;
18class MGeomCam;
19class MHadronness;
20class MHMatrix;
21
22class MFSupercuts : public MFilter
23{
24private:
25 MHillas *fHil; //!
26 MHillasSrc *fHilSrc; //!
27 MHillasExt *fHilExt; //!
28 MNewImagePar *fNewPar; //!
29
30 Double_t fMm2Deg; //!
31 Bool_t fResult; //!
32
33 Int_t fMap[11]; //!
34 MHMatrix *fMatrix; //!
35
36 TArrayD fVariables;
37
38 Int_t PreProcess(MParList *pList);
39 Int_t Process();
40
41 Bool_t IsExpressionTrue() const { return fResult; }
42
43 Double_t GetVal(Int_t i) const;
44
45 Double_t CtsMCut(const Double_t* a, Double_t ls, Double_t ct,
46 Double_t ls2, Double_t dd2) const;
47
48 TString GetDataMember() const;
49 //TString GetRule() const { return "<MFSupercuts>"; }
50
51public:
52 MFSupercuts(const char *name=NULL, const char *title=NULL);
53
54 void InitMapping(MHMatrix *mat);
55 void StopMapping() { InitMapping(NULL); }
56
57 void SetVariables(const TArrayD &arr);
58
59 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE);
60
61 Bool_t CoefficentsRead(const char *fname);
62 Bool_t CoefficentsWrite(const char *fname) const;
63
64 ClassDef(MFSupercuts, 0) // A filter to evaluate the Supercuts
65};
66
67#endif
Note: See TracBrowser for help on using the repository browser.