CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
egmPhotonIDs_cff Namespace Reference

Functions

def loadEgmIdSequence
 

Function Documentation

def egmPhotonIDs_cff.loadEgmIdSequence (   process,
  dataFormat 
)

Definition at line 5 of file egmPhotonIDs_cff.py.

Referenced by vid_id_tools.switchOnVIDPhotonIdProducer().

5 
6 def loadEgmIdSequence(process, dataFormat):
7  process.load("RecoEgamma.PhotonIdentification.egmPhotonIDs_cfi")
8  from PhysicsTools.SelectorUtils.centralIDRegistry import central_id_registry
9 
10  # Load the producer for MVA IDs. Make sure it is also added to the sequence!
11  process.load("RecoEgamma.PhotonIdentification.PhotonMVAValueMapProducer_cfi")
12  process.egmPhotonIDTask = cms.Task()
13  # Add everything else other then isolation
14  process.egmPhotonIDTask.add(process.photonMVAValueMapProducer,
15  process.egmPhotonIDs)
16 
17  process.egmPhotonIDSequence = cms.Sequence(process.egmPhotonIDTask)