CMS 3D CMS Logo

Classes | Functions | Variables
mvaElectronID_tools Namespace Reference

Classes

class  EleMVA_WP
 

Functions

def configureVIDMVAEleID_V1 (mvaWP, cutName="GsfEleMVACut")
 

Variables

 EleMVA_3Categories_WP
 
 EleMVA_6Categories_WP
 

Function Documentation

def mvaElectronID_tools.configureVIDMVAEleID_V1 (   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 40 of file mvaElectronID_tools.py.

40 def configureVIDMVAEleID_V1(mvaWP, cutName="GsfEleMVACut"):
41  """
42  This function configures the full cms.PSet for a VID ID and returns it.
43  The inputs: an object of the class EleMVA_WP or similar
44  that contains all necessary parameters for this MVA.
45  """
46  parameterSet = cms.PSet(
47  #
48  idName = cms.string( mvaWP.idName ),
49  cutFlow = cms.VPSet(
50  cms.PSet( cutName = cms.string(cutName),
51  mvaCuts = cms.vdouble( mvaWP.getCutValues() ),
52  mvaValueMapName = cms.InputTag( mvaWP.mvaValueMapName ),
53  mvaCategoriesMapName =cms.InputTag( mvaWP.mvaCategoriesMapName ),
54  needsAdditionalProducts = cms.bool(True),
55  isIgnored = cms.bool(False)
56  )
57  )
58  )
59  #
60  return parameterSet
61 
def configureVIDMVAEleID_V1(mvaWP, cutName="GsfEleMVACut")

Variable Documentation

mvaElectronID_tools.EleMVA_3Categories_WP

Definition at line 33 of file mvaElectronID_tools.py.

mvaElectronID_tools.EleMVA_6Categories_WP

Definition at line 34 of file mvaElectronID_tools.py.