1 import FWCore.ParameterSet.Config
as cms
2 from PhysicsTools.SelectorUtils.centralIDRegistry
import central_id_registry
5 weightFileBaseDir =
"RecoEgamma/PhotonIdentification/data/MVA" 11 mvaClassName =
"PhotonMVAEstimator" 17 mvaProducerModuleLabel =
"photonMVAValueMapProducer" 25 This is a container class to hold MVA cut values for a 2-category MVA 26 as well as the names of the value maps that contain the MVA values computed 27 for all particles in a producer upstream. 51 This function configures the full cms.PSet for a VID ID and returns it. 52 The inputs: an object of the class PhoMVA_2Categories_WP or similar 53 that contains all necessary parameters for this MVA. 55 parameterSet = cms.PSet(
57 idName = cms.string( mvaWP.idName ),
59 cms.PSet( cutName = cms.string(
"PhoMVACut"),
60 mvaCuts = cms.vdouble( mvaWP.getCutValues() ),
61 mvaValueMapName = cms.InputTag( mvaWP.mvaValueMapName ),
62 mvaCategoriesMapName =cms.InputTag( mvaWP.mvaCategoriesMapName ),
63 needsAdditionalProducts = cms.bool(
True),
64 isIgnored = cms.bool(
False)
90 mvaValueMapName = mvaProducerModuleLabel +
":" + mvaClassName + mvaTag +
"Values" 91 mvaCategoriesMapName = mvaProducerModuleLabel +
":" + mvaClassName + mvaTag +
"Categories" 94 producer_config = cms.PSet(
95 mvaName = cms.string(mvaClassName),
96 mvaTag = cms.string(mvaTag),
97 weightFileNames = cms.vstring(*weightFiles),
98 variableDefinition = cms.string(variablesFile),
99 ebeeSplit = cms.double(ebeeSplit),
100 **addKwargsForValueProducer
106 idName = wpc[
"idName"]
110 mvaValueMapName = mvaValueMapName,
111 mvaCategoriesMapName = mvaCategoriesMapName,
112 cutCategory0 = wpc[
"cuts"][
"EB"],
113 cutCategory1 = wpc[
"cuts"][
"EE"]
117 configs = {
"producer_config": producer_config,
"VID_config": VID_config}