CMS 3D CMS Logo

Classes | Functions | Variables
mvaPhotonID_tools Namespace Reference

Classes

class  PhoMVA_2Categories_WP
 

Functions

def configureVIDMVAPhoID_V1 (mvaWP)
 

Variables

 weightFileBaseDir
 

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 37 of file mvaPhotonID_tools.py.

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

Variable Documentation

mvaPhotonID_tools.weightFileBaseDir

Definition at line 5 of file mvaPhotonID_tools.py.