CMS 3D CMS Logo

Classes | Functions
mvaPhotonID_tools Namespace Reference

Classes

class  PhoMVA_2Categories_WP
 

Functions

def configureVIDMVAPhoID_V1 (mvaWP)
 

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.

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