CMS 3D CMS Logo

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

Classes

class  PhoMVA_2Categories_WP
 

Functions

def configureVIDMVAPhoID_V1
 

Function Documentation

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

Definition at line 33 of file mvaPhotonID_tools.py.

33 
34 def configureVIDMVAPhoID_V1( mvaWP ):
35  """
36  This function configures the full cms.PSet for a VID ID and returns it.
37  The inputs: an object of the class PhoMVA_2Categories_WP or similar
38  that contains all necessary parameters for this MVA.
39  """
40  parameterSet = cms.PSet(
41  #
42  idName = cms.string( mvaWP.idName ),
43  cutFlow = cms.VPSet(
44  cms.PSet( cutName = cms.string("PhoMVACut"),
45  mvaCuts = cms.vdouble( mvaWP.getCutValues() ),
46  mvaValueMapName = cms.InputTag( mvaWP.mvaValueMapName ),
47  mvaCategoriesMapName =cms.InputTag( mvaWP.mvaCategoriesMapName ),
48  needsAdditionalProducts = cms.bool(True),
49  isIgnored = cms.bool(False)
50  )
51  )
52  )
53  #
54  return parameterSet