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
 
 mvaVariablesFileRun3
 

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 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

◆ EleMVA_3CategoriesCuts

mvaElectronID_tools.EleMVA_3CategoriesCuts

Definition at line 24 of file mvaElectronID_tools.py.

◆ EleMVA_6CategoriesCuts

mvaElectronID_tools.EleMVA_6CategoriesCuts

Definition at line 30 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.

◆ mvaVariablesFileRun3

mvaElectronID_tools.mvaVariablesFileRun3

Definition at line 18 of file mvaElectronID_tools.py.