CMS 3D CMS Logo

PhotonMVAValueMapProducer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 mvaConfigsForPhoProducer = cms.VPSet( )
4 
5 # Import and add all desired MVAs
6 
8 mvaConfigsForPhoProducer.append( mvaPhoID_Spring15_50ns_nonTrig_V2p1_producer_config )
9 
11 mvaConfigsForPhoProducer.append( mvaPhoID_Spring15_25ns_nonTrig_V2p1_producer_config )
12 
13 from RecoEgamma.PhotonIdentification.Identification.mvaPhotonID_Spring16_nonTrig_V1_cff \
14  import mvaPhoID_Spring16_nonTrig_V1_producer_config
15 mvaConfigsForPhoProducer.append( mvaPhoID_Spring16_nonTrig_V1_producer_config )
16 
17 photonMVAValueMapProducer = cms.EDProducer('PhotonMVAValueMapProducer',
18  # The module automatically detects AOD vs miniAOD, so we configure both
19  #
20  # AOD case
21  #
22  src = cms.InputTag('gedPhotons'),
23  #
24  # miniAOD case
25  #
26  srcMiniAOD = cms.InputTag('slimmedPhotons',processName=cms.InputTag.skipCurrentProcess()),
27  #
28  # MVA configurations
29  #
30  mvaConfigurations = mvaConfigsForPhoProducer
31  )