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 
18 mvaConfigsForPhoProducer.append( mvaPhoID_RunIIFall17_v2_producer_config )
19 
20 photonMVAValueMapProducer = cms.EDProducer('PhotonMVAValueMapProducer',
21  # The module automatically detects AOD vs miniAOD, so we configure both
22  #
23  # AOD case
24  #
25  src = cms.InputTag('gedPhotons'),
26  #
27  # miniAOD case
28  #
29  srcMiniAOD = cms.InputTag('slimmedPhotons',processName=cms.InputTag.skipCurrentProcess()),
30  #
31  # MVA configurations
32  #
33  mvaConfigurations = mvaConfigsForPhoProducer
34  )