CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions | Variables
mvaElectronID_tools Namespace Reference

Classes

class  EleMVA_WP
 
class  EleMVARaw_WP
 

Functions

def configureVIDMVAEleID
 

Variables

list EleMVA_3CategoriesCuts
 
list EleMVA_6CategoriesCuts
 
string mvaClassName = "ElectronMVAEstimatorRun2"
 
string mvaProducerModuleLabel = "electronMVAValueMapProducer"
 
string mvaVariablesFile = "RecoEgamma/ElectronIdentification/data/ElectronMVAEstimatorRun2Variables.txt"
 

Function Documentation

def mvaElectronID_tools.configureVIDMVAEleID (   mvaWP,
  cutName = "GsfEleMVACut" 
)
This function configures the full cms.PSet for a VID ID and returns it.
The inputs: an object of the class EleMVA_WP or similar
that contains all necessary parameters for this MVA.

Definition at line 96 of file mvaElectronID_tools.py.

96 
97 def configureVIDMVAEleID(mvaWP, cutName="GsfEleMVACut"):
98  """
99  This function configures the full cms.PSet for a VID ID and returns it.
100  The inputs: an object of the class EleMVA_WP or similar
101  that contains all necessary parameters for this MVA.
102  """
103  pSet = cms.PSet(
104  #
105  idName = cms.string( mvaWP.idName ),
106  cutFlow = cms.VPSet(
107  cms.PSet( cutName = cms.string(cutName),
108  mvaCuts = cms.vstring( mvaWP.getCutStrings() ),
109  mvaValueMapName = cms.InputTag( mvaWP.mvaValueMapName ),
110  mvaCategoriesMapName = cms.InputTag( mvaWP.mvaCategoriesMapName ),
111  needsAdditionalProducts = cms.bool(True),
112  isIgnored = cms.bool(False)
113  )
114  )
115  )
116  #
117  return pSet

Variable Documentation

list mvaElectronID_tools.EleMVA_3CategoriesCuts
Initial value:
1 = [
2  "abs(superCluster.eta) < 0.800",
3  "abs(superCluster.eta) >= 0.800 && abs(superCluster.eta) < 1.479",
4  "abs(superCluster.eta) >= 1.479"
5  ]

Definition at line 23 of file mvaElectronID_tools.py.

list mvaElectronID_tools.EleMVA_6CategoriesCuts
Initial value:
1 = [
2  "pt < 10. && abs(superCluster.eta) < 0.800",
3  "pt < 10. && abs(superCluster.eta) >= 0.800 && abs(superCluster.eta) < 1.479",
4  "pt < 10. && abs(superCluster.eta) >= 1.479",
5  "pt >= 10. && abs(superCluster.eta) < 0.800",
6  "pt >= 10. && abs(superCluster.eta) >= 0.800 && abs(superCluster.eta) < 1.479",
7  "pt >= 10. && abs(superCluster.eta) >= 1.479",
8  ]

Definition at line 29 of file mvaElectronID_tools.py.

string mvaElectronID_tools.mvaClassName = "ElectronMVAEstimatorRun2"

Definition at line 8 of file mvaElectronID_tools.py.

string mvaElectronID_tools.mvaProducerModuleLabel = "electronMVAValueMapProducer"

Definition at line 14 of file mvaElectronID_tools.py.

string mvaElectronID_tools.mvaVariablesFile = "RecoEgamma/ElectronIdentification/data/ElectronMVAEstimatorRun2Variables.txt"

Definition at line 17 of file mvaElectronID_tools.py.