CMS 3D CMS Logo

ElectronMVAValueMapProducer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 mvaConfigsForEleProducer = cms.VPSet( )
4 
5 # Import and add all desired MVAs
6 from RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Spring16_HZZ_V1_cff \
7  import mvaEleID_Spring16_HZZ_V1_producer_config
8 mvaConfigsForEleProducer.append( mvaEleID_Spring16_HZZ_V1_producer_config )
9 
10 from RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Spring16_GeneralPurpose_V1_cff \
11  import mvaEleID_Spring16_GeneralPurpose_V1_producer_config
12 mvaConfigsForEleProducer.append( mvaEleID_Spring16_GeneralPurpose_V1_producer_config )
13 
14 from RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Fall17_noIso_V1_cff \
15  import mvaEleID_Fall17_noIso_V1_producer_config
16 mvaConfigsForEleProducer.append( mvaEleID_Fall17_noIso_V1_producer_config )
17 
18 from RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Fall17_iso_V1_cff \
19  import mvaEleID_Fall17_iso_V1_producer_config
20 mvaConfigsForEleProducer.append( mvaEleID_Fall17_iso_V1_producer_config )
21 
22 
23 electronMVAValueMapProducer = cms.EDProducer('ElectronMVAValueMapProducer',
24  # The module automatically detects AOD vs miniAOD, so we configure both
25  #
26  # AOD case
27  #
28  src = cms.InputTag('gedGsfElectrons'),
29  #
30  # miniAOD case
31  #
32  srcMiniAOD = cms.InputTag('slimmedElectrons',processName=cms.InputTag.skipCurrentProcess()),
33  #
34  # MVA configurations
35  #
36  mvaConfigurations = mvaConfigsForEleProducer
37  )