CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ElectronIDMVA.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------------------------------
2 // $Id $
3 //
4 // ElectronIDMVA
5 //
6 // Helper Class for Electron Identification MVA
7 //
8 // Authors: S.Xie
9 // Original based on MitPhysics/Utils/interface/ElectronIDMVA.h?view=markup
10 // Modified by DLE
11 //--------------------------------------------------------------------------------------------------
12 
13 #ifndef ELECTRONIDMVA_H
14 #define ELECTRONIDMVA_H
15 
16 #include "TString.h"
18 
19 class TRandom3;
20 namespace TMVA {
21  class Reader;
22 }
23 
25  public:
26  ElectronIDMVA();
27  ~ElectronIDMVA();
28 
29  void Initialize(TString methodName, unsigned int version,
30  TString Subdet0Pt10To20Weights ,
31  TString Subdet1Pt10To20Weights ,
32  TString Subdet2Pt10To20Weights,
33  TString Subdet0Pt20ToInfWeights,
34  TString Subdet1Pt20ToInfWeights,
35  TString Subdet2Pt20ToInfWeights);
36 
37  Bool_t IsInitialized() const { return fIsInitialized; }
38  Double_t MVAValue(HWW&, const unsigned int ele, const unsigned int vertex);
39  Double_t MVAValue(Double_t ElePt , Double_t EleSCEta,
40  Double_t EleSigmaIEtaIEta,
41  Double_t EleDEtaIn,
42  Double_t EleDPhiIn,
43  Double_t EleD0,
44  Double_t EleDZ,
45  Double_t EleFBrem,
46  Double_t EleEOverP,
47  Double_t EleESeedClusterOverPout,
48  Double_t EleSigmaIPhiIPhi,
49  Double_t EleNBrem,
50  Double_t EleOneOverEMinusOneOverP,
51  Double_t EleESeedClusterOverPIn,
52  Double_t EleIP3d,
53  Double_t EleIP3dSig);
54  Double_t MVAValue(Double_t ElePt , Double_t EleEta,
55  Double_t PileupEnergyDensity,
56  Double_t EleSigmaIEtaIEta,
57  Double_t EleDEtaIn,
58  Double_t EleDPhiIn,
59  Double_t EleHoverE,
60  Double_t EleD0,
61  Double_t EleDZ,
62  Double_t EleFBrem,
63  Double_t EleEOverP,
64  Double_t EleESeedClusterOverPout,
65  Double_t EleSigmaIPhiIPhi,
66  Double_t EleNBrem,
67  Double_t EleOneOverEMinusOneOverP,
68  Double_t EleESeedClusterOverPIn,
69  Double_t EleIP3d,
70  Double_t EleIP3dSig,
71  Double_t EleGsfTrackChi2OverNdof,
72  Double_t EledEtaCalo,
73  Double_t EledPhiCalo,
74  Double_t EleR9,
75  Double_t EleSCEtaWidth,
76  Double_t EleSCPhiWidth,
77  Double_t EleCovIEtaIPhi,
78  Double_t ElePreShowerOverRaw,
79  Double_t EleChargedIso03,
80  Double_t EleNeutralHadronIso03,
81  Double_t EleGammaIso03,
82  Double_t EleChargedIso04,
83  Double_t EleNeutralHadronIso04,
84  Double_t EleGammaIso04,
85  Bool_t printDebug = kFALSE );
86 
100  };
102 
103 
104  protected:
105  TMVA::Reader *fTMVAReader[6];
106  TString fMethodname;
108 
113  Float_t fMVAVar_EleD0;
114  Float_t fMVAVar_EleDZ;
122  Float_t fMVAVar_EleIP3d;
127  Float_t fMVAVar_EleR9;
138 
139  unsigned int version_;
140 };
141 
142 #endif
143 
type
Definition: HCALResponse.h:21
Float_t fMVAVar_EleNBrem
Float_t fMVAVar_EleESeedClusterOverPIn
Float_t fMVAVar_ElePreShowerOverRaw
Float_t fMVAVar_EleIP3dSig
Float_t fMVAVar_EleDEtaIn
Float_t fMVAVar_EleSigmaIPhiIPhi
Double_t MVAValue(HWW &, const unsigned int ele, const unsigned int vertex)
Float_t fMVAVar_EleHoverE
Bool_t fIsInitialized
TString fMethodname
Float_t fMVAVar_EleNeutralHadronIso03OverPt
Float_t fMVAVar_EleSCEtaWidth
Float_t fMVAVar_EleR9
Float_t fMVAVar_EleD0
Float_t fMVAVar_EledPhiCalo
Float_t fMVAVar_EleChargedIso03OverPt
Float_t fMVAVar_EleFBrem
Float_t fMVAVar_EledEtaCalo
Float_t fMVAVar_EleIP3d
Float_t fMVAVar_EleGammaIso03OverPt
Float_t fMVAVar_EleNeutralHadronIso04OverPt
Float_t fMVAVar_EleSCPhiWidth
Float_t fMVAVar_EleCovIEtaIPhi
Float_t fMVAVar_EleGammaIso04OverPt
Double_t ElectronEffectiveArea(EElectronEffectiveAreaType type, Double_t Eta)
Definition: HWW.h:12
Float_t fMVAVar_EleSigmaIEtaIEta
Float_t fMVAVar_EleESeedClusterOverPout
Bool_t IsInitialized() const
Definition: ElectronIDMVA.h:37
Float_t fMVAVar_EleEOverP
Float_t fMVAVar_EleDZ
TMVA::Reader * fTMVAReader[6]
unsigned int version_
Float_t fMVAVar_EleOneOverEMinusOneOverP
Float_t fMVAVar_EleDPhiIn
void Initialize(TString methodName, unsigned int version, TString Subdet0Pt10To20Weights, TString Subdet1Pt10To20Weights, TString Subdet2Pt10To20Weights, TString Subdet0Pt20ToInfWeights, TString Subdet1Pt20ToInfWeights, TString Subdet2Pt20ToInfWeights)
Float_t fMVAVar_EleChargedIso04OverPt
Float_t fMVAVar_EleGsfTrackChi2OverNdof