CMS 3D CMS Logo

Classes | Functions
mvaElectronID_tools Namespace Reference

Classes

class  EleMVA_3Categories_WP
 
class  EleMVA_6Categories_WP
 

Functions

def configureVIDMVAEleID_V1 (mvaWP)
 

Function Documentation

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

Definition at line 66 of file mvaElectronID_tools.py.

67  """
68  This function configures the full cms.PSet for a VID ID and returns it.
69  The inputs: an object of the class EleMVA_6Categories_WP or similar
70  that contains all necessary parameters for this MVA.
71  """
72  parameterSet = cms.PSet(
73  #
74  idName = cms.string( mvaWP.idName ),
75  cutFlow = cms.VPSet(
76  cms.PSet( cutName = cms.string("GsfEleMVACut"),
77  mvaCuts = cms.vdouble( mvaWP.getCutValues() ),
78  mvaValueMapName = cms.InputTag( mvaWP.mvaValueMapName ),
79  mvaCategoriesMapName =cms.InputTag( mvaWP.mvaCategoriesMapName ),
80  needsAdditionalProducts = cms.bool(True),
81  isIgnored = cms.bool(False)
82  )
83  )
84  )
85  #
86  return parameterSet
87 
def configureVIDMVAEleID_V1(mvaWP)