CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
mvaElectronID_tools Namespace Reference

Classes

class  EleMVA_3Categories_WP
 
class  EleMVA_6Categories_WP
 

Functions

def configureVIDMVAEleID_V1
 

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.

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