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