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_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 42 of file mvaElectronID_tools.py.

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