CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
egmPhotonIDs_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from PhysicsTools.SelectorUtils.tools.DataFormat import DataFormat
4 
5 def loadEgmIdSequence(process, dataFormat):
6  process.load("RecoEgamma.PhotonIdentification.egmPhotonIDs_cfi")
7  from PhysicsTools.SelectorUtils.centralIDRegistry import central_id_registry
8 
9  # Load the producer for MVA IDs. Make sure it is also added to the sequence!
10  process.load("RecoEgamma.PhotonIdentification.PhotonMVAValueMapProducer_cfi")
11  process.egmPhotonIDTask = cms.Task()
12  # Add everything else other then isolation
13  process.egmPhotonIDTask.add(process.photonMVAValueMapProducer,
14  process.egmPhotonIDs)
15 
16  process.egmPhotonIDSequence = cms.Sequence(process.egmPhotonIDTask)