CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AntiElectronIDMVA5.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------------------------------
2 // AntiElectronIDMVA5
3 //
4 // Helper Class for applying MVA anti-electron discrimination
5 //
6 // Authors: I.Naranjo, C.Veelken
7 //--------------------------------------------------------------------------------------------------
8 
9 #ifndef RECOTAUTAG_RECOTAU_AntiElectronIDMVA5_H
10 #define RECOTAUTAG_RECOTAU_AntiElectronIDMVA5_H
11 
16 
23 
24 #include "TMVA/Tools.h"
25 #include "TMVA/Reader.h"
26 
28 
29 #include <vector>
30 
32 {
33  public:
34 
37 
38  void beginEvent(const edm::Event&, const edm::EventSetup&);
39 
40  double MVAValue(Float_t TauEtaAtEcalEntrance,
41  Float_t TauPt,
42  Float_t TauLeadChargedPFCandEtaAtEcalEntrance,
43  Float_t TauLeadChargedPFCandPt,
44  Float_t TaudCrackEta,
45  Float_t TaudCrackPhi,
46  Float_t TauEmFraction,
47  Float_t TauSignalPFGammaCands,
48  Float_t TauLeadPFChargedHadrHoP,
49  Float_t TauLeadPFChargedHadrEoP,
50  Float_t TauVisMass,
51  Float_t TauHadrMva,
52  const std::vector<Float_t>& GammasdEta,
53  const std::vector<Float_t>& GammasdPhi,
54  const std::vector<Float_t>& GammasPt,
55  Float_t TauKFNumHits,
56  Float_t TauGSFNumHits,
57  Float_t TauGSFChi2,
58  Float_t TauGSFTrackResol,
59  Float_t TauGSFTracklnPt,
60  Float_t TauGSFTrackEta,
61  Float_t TauPhi,
62  Float_t TauSignalPFChargedCands,
63  Float_t TauHasGsf,
64  Float_t ElecEta,
65  Float_t ElecPhi,
66  Float_t ElecPt,
67  Float_t ElecEe,
68  Float_t ElecEgamma,
69  Float_t ElecPin,
70  Float_t ElecPout,
71  Float_t ElecFbrem,
72  Float_t ElecChi2GSF,
73  Float_t ElecGSFNumHits,
74  Float_t ElecGSFTrackResol,
75  Float_t ElecGSFTracklnPt,
76  Float_t ElecGSFTrackEta);
77 
78  double MVAValue(Float_t TauEtaAtEcalEntrance,
79  Float_t TauPt,
80  Float_t TauLeadChargedPFCandEtaAtEcalEntrance,
81  Float_t TauLeadChargedPFCandPt,
82  Float_t TaudCrackEta,
83  Float_t TaudCrackPhi,
84  Float_t TauEmFraction,
85  Float_t TauSignalPFGammaCands,
86  Float_t TauLeadPFChargedHadrHoP,
87  Float_t TauLeadPFChargedHadrEoP,
88  Float_t TauVisMass,
89  Float_t TauHadrMva,
90  Float_t TauGammaEtaMom,
91  Float_t TauGammaPhiMom,
92  Float_t TauGammaEnFrac,
93  Float_t TauKFNumHits,
94  Float_t TauGSFNumHits,
95  Float_t TauGSFChi2,
96  Float_t TauGSFTrackResol,
97  Float_t TauGSFTracklnPt,
98  Float_t TauGSFTrackEta,
99  Float_t TauPhi,
100  Float_t TauSignalPFChargedCands,
101  Float_t TauHasGsf,
102  Float_t ElecEta,
103  Float_t ElecPhi,
104  Float_t ElecPt,
105  Float_t ElecEe,
106  Float_t ElecEgamma,
107  Float_t ElecPin,
108  Float_t ElecPout,
109  Float_t ElecFbrem,
110  Float_t ElecChi2GSF,
111  Float_t ElecGSFNumHits,
112  Float_t ElecGSFTrackResol,
113  Float_t ElecGSFTracklnPt,
114  Float_t ElecGSFTrackEta);
115 
116  // CV: this function can be called for all categories
117  double MVAValue(const reco::PFTau& thePFTau,
118  const reco::GsfElectron& theGsfEle);
119  // CV: this function can be called for category 1 only !!
120  double MVAValue(const reco::PFTau& thePFTau);
121 
122  private:
123 
124  double dCrackEta(double eta);
125  double minimum(double a,double b);
126  double dCrackPhi(double phi, double eta);
127 
147 
164 
181 
182  std::vector<TFile*> inputFilesToDelete_;
183 
185 };
186 
187 #endif
const GBRForest * mva_woGwGSF_BL_
Float_t * Var_NoEleMatch_woGwoGSF_Endcap_
Float_t * Var_NoEleMatch_wGwoGSF_Barrel_
const GBRForest * mva_woGwoGSF_BL_
double minimum(double a, double b)
edm::FileInPath inputFileName_
const GBRForest * mva_wGwoGSF_EC_
std::string mvaName_woGwoGSF_BL_
const GBRForest * mva_NoEleMatch_woGwGSF_EC_
std::string mvaName_NoEleMatch_woGwoGSF_EC_
Float_t * Var_NoEleMatch_woGwoGSF_Barrel_
T eta() const
std::string mvaName_NoEleMatch_woGwGSF_BL_
const GBRForest * mva_NoEleMatch_wGwGSF_EC_
std::string mvaName_woGwoGSF_EC_
std::string mvaName_NoEleMatch_woGwGSF_EC_
std::string mvaName_wGwoGSF_EC_
const GBRForest * mva_NoEleMatch_woGwoGSF_EC_
void beginEvent(const edm::Event &, const edm::EventSetup &)
const GBRForest * mva_woGwoGSF_EC_
const GBRForest * mva_NoEleMatch_wGwGSF_BL_
const GBRForest * mva_NoEleMatch_woGwoGSF_BL_
std::string mvaName_wGwoGSF_BL_
std::string mvaName_woGwGSF_EC_
std::string mvaName_woGwGSF_BL_
const GBRForest * mva_woGwGSF_EC_
std::string mvaName_wGwGSF_EC_
std::string mvaName_NoEleMatch_wGwoGSF_BL_
Float_t * Var_NoEleMatch_woGwGSF_Endcap_
std::vector< TFile * > inputFilesToDelete_
std::string mvaName_NoEleMatch_woGwoGSF_BL_
double dCrackEta(double eta)
const GBRForest * mva_wGwoGSF_BL_
std::string mvaName_wGwGSF_BL_
double MVAValue(Float_t TauEtaAtEcalEntrance, Float_t TauPt, Float_t TauLeadChargedPFCandEtaAtEcalEntrance, Float_t TauLeadChargedPFCandPt, Float_t TaudCrackEta, Float_t TaudCrackPhi, Float_t TauEmFraction, Float_t TauSignalPFGammaCands, Float_t TauLeadPFChargedHadrHoP, Float_t TauLeadPFChargedHadrEoP, Float_t TauVisMass, Float_t TauHadrMva, const std::vector< Float_t > &GammasdEta, const std::vector< Float_t > &GammasdPhi, const std::vector< Float_t > &GammasPt, Float_t TauKFNumHits, Float_t TauGSFNumHits, Float_t TauGSFChi2, Float_t TauGSFTrackResol, Float_t TauGSFTracklnPt, Float_t TauGSFTrackEta, Float_t TauPhi, Float_t TauSignalPFChargedCands, Float_t TauHasGsf, Float_t ElecEta, Float_t ElecPhi, Float_t ElecPt, Float_t ElecEe, Float_t ElecEgamma, Float_t ElecPin, Float_t ElecPout, Float_t ElecFbrem, Float_t ElecChi2GSF, Float_t ElecGSFNumHits, Float_t ElecGSFTrackResol, Float_t ElecGSFTracklnPt, Float_t ElecGSFTrackEta)
const GBRForest * mva_NoEleMatch_woGwGSF_BL_
const GBRForest * mva_NoEleMatch_wGwoGSF_BL_
std::string mvaName_NoEleMatch_wGwGSF_BL_
Float_t * Var_NoEleMatch_woGwGSF_Barrel_
const GBRForest * mva_wGwGSF_BL_
double b
Definition: hdecay.h:120
Float_t * Var_NoEleMatch_wGwGSF_Endcap_
const GBRForest * mva_NoEleMatch_wGwoGSF_EC_
const GBRForest * mva_wGwGSF_EC_
double a
Definition: hdecay.h:121
double dCrackPhi(double phi, double eta)
std::string mvaName_NoEleMatch_wGwoGSF_EC_
std::string mvaName_NoEleMatch_wGwGSF_EC_
Float_t * Var_NoEleMatch_wGwGSF_Barrel_
AntiElectronIDMVA5(const edm::ParameterSet &)
Float_t * Var_NoEleMatch_wGwoGSF_Endcap_
Definition: DDAxes.h:10