CMS 3D CMS Logo

Classes | Functions | Variables
mvaElectronID_tools Namespace Reference

Classes

class  EleMVA_WP
 
class  EleMVARaw_WP
 

Functions

def configureVIDMVAEleID (mvaWP, cutName="GsfEleMVACut")
 

Variables

 EleMVA_3CategoriesCuts
 
 EleMVA_6CategoriesCuts
 
 mvaClassName
 
 mvaProducerModuleLabel
 
 mvaVariablesFile
 

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 97 of file mvaElectronID_tools.py.

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
118 
def configureVIDMVAEleID(mvaWP, cutName="GsfEleMVACut")

Variable Documentation

mvaElectronID_tools.EleMVA_3CategoriesCuts

Definition at line 23 of file mvaElectronID_tools.py.

mvaElectronID_tools.EleMVA_6CategoriesCuts

Definition at line 29 of file mvaElectronID_tools.py.

mvaElectronID_tools.mvaClassName

Definition at line 8 of file mvaElectronID_tools.py.

mvaElectronID_tools.mvaProducerModuleLabel

Definition at line 14 of file mvaElectronID_tools.py.

mvaElectronID_tools.mvaVariablesFile

Definition at line 17 of file mvaElectronID_tools.py.