| 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 |  | 
|---|
| 12 | class MParList; | 
|---|
| 13 | class MHillas; | 
|---|
| 14 | class MHillasSrc; | 
|---|
| 15 | class MHillasExt; | 
|---|
| 16 | class MNewImagePar; | 
|---|
| 17 | class MCerPhotEvt; | 
|---|
| 18 | class MGeomCam; | 
|---|
| 19 | class MHadronness; | 
|---|
| 20 | class MHMatrix; | 
|---|
| 21 |  | 
|---|
| 22 | class MFSupercuts : public MFilter | 
|---|
| 23 | { | 
|---|
| 24 | private: | 
|---|
| 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 |  | 
|---|
| 51 | public: | 
|---|
| 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.