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 
7 from RecoEgamma.PhotonIdentification.Identification.mvaPhotonID_Spring16_nonTrig_V1_cff \
8  import mvaPhoID_Spring16_nonTrig_V1_producer_config
9 mvaConfigsForPhoProducer.append( mvaPhoID_Spring16_nonTrig_V1_producer_config )
10 
12 mvaConfigsForPhoProducer.append( mvaPhoID_RunIIFall17_v1_producer_config )
13 
15 mvaConfigsForPhoProducer.append( mvaPhoID_RunIIFall17_v1p1_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  )