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

◆ configureVIDMVAEleID()

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

Variable Documentation

◆ EleMVA_3CategoriesCuts

mvaElectronID_tools.EleMVA_3CategoriesCuts

Definition at line 23 of file mvaElectronID_tools.py.

◆ EleMVA_6CategoriesCuts

mvaElectronID_tools.EleMVA_6CategoriesCuts

Definition at line 29 of file mvaElectronID_tools.py.

◆ mvaClassName

mvaElectronID_tools.mvaClassName

Definition at line 8 of file mvaElectronID_tools.py.

◆ mvaProducerModuleLabel

mvaElectronID_tools.mvaProducerModuleLabel

Definition at line 14 of file mvaElectronID_tools.py.

◆ mvaVariablesFile

mvaElectronID_tools.mvaVariablesFile

Definition at line 17 of file mvaElectronID_tools.py.