1 import FWCore.ParameterSet.Config
as cms
2 from PhysicsTools.SelectorUtils.centralIDRegistry
import central_id_registry
8 mvaClassName =
"PhotonMVAEstimator" 14 mvaProducerModuleLabel =
"photonMVAValueMapProducer" 22 This is a container class to hold MVA cut values for a 2-category MVA 23 as well as the names of the value maps that contain the MVA values computed 24 for all particles in a producer upstream. 48 This function configures the full cms.PSet for a VID ID and returns it. 49 The inputs: an object of the class PhoMVA_2Categories_WP or similar 50 that contains all necessary parameters for this MVA. 52 parameterSet = cms.PSet(
54 idName = cms.string( mvaWP.idName ),
56 cms.PSet( cutName = cms.string(
"PhoMVACut"),
57 mvaCuts = cms.vdouble( mvaWP.getCutValues() ),
58 mvaValueMapName = cms.InputTag( mvaWP.mvaValueMapName ),
59 mvaCategoriesMapName =cms.InputTag( mvaWP.mvaCategoriesMapName ),
60 needsAdditionalProducts = cms.bool(
True),
61 isIgnored = cms.bool(
False)
87 mvaValueMapName = mvaProducerModuleLabel +
":" + mvaClassName + mvaTag +
"Values" 88 mvaCategoriesMapName = mvaProducerModuleLabel +
":" + mvaClassName + mvaTag +
"Categories" 91 producer_config = cms.PSet(
92 mvaName = cms.string(mvaClassName),
93 mvaTag = cms.string(mvaTag),
94 weightFileNames = cms.vstring(*weightFiles),
95 variableDefinition = cms.string(variablesFile),
96 ebeeSplit = cms.double(ebeeSplit),
97 **addKwargsForValueProducer
103 idName = wpc[
"idName"]
107 mvaValueMapName = mvaValueMapName,
108 mvaCategoriesMapName = mvaCategoriesMapName,
109 cutCategory0 = wpc[
"cuts"][
"EB"],
110 cutCategory1 = wpc[
"cuts"][
"EE"]
114 configs = {
"producer_config": producer_config,
"VID_config": VID_config}