CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
7 mvaConfigsForEleProducer.append( mvaEleID_PHYS14_PU20bx25_nonTrig_V1_producer_config )
8 
10 mvaConfigsForEleProducer.append( mvaEleID_Spring15_25ns_nonTrig_V1_producer_config )
11 
13 mvaConfigsForEleProducer.append( mvaEleID_Spring15_50ns_Trig_V1_producer_config )
14 
16 mvaConfigsForEleProducer.append( mvaEleID_Spring15_25ns_Trig_V1_producer_config )
17 
18 from RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Spring16_HZZ_V1_cff \
19  import mvaEleID_Spring16_HZZ_V1_producer_config
20 mvaConfigsForEleProducer.append( mvaEleID_Spring16_HZZ_V1_producer_config )
21 
22 from RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Spring16_GeneralPurpose_V1_cff \
23  import mvaEleID_Spring16_GeneralPurpose_V1_producer_config
24 mvaConfigsForEleProducer.append( mvaEleID_Spring16_GeneralPurpose_V1_producer_config )
25 
26 
27 electronMVAValueMapProducer = cms.EDProducer('ElectronMVAValueMapProducer',
28  # The module automatically detects AOD vs miniAOD, so we configure both
29  #
30  # AOD case
31  #
32  src = cms.InputTag('gedGsfElectrons'),
33  #
34  # miniAOD case
35  #
36  srcMiniAOD = cms.InputTag('slimmedElectrons',processName=cms.InputTag.skipCurrentProcess()),
37  #
38  # MVA configurations
39  #
40  mvaConfigurations = mvaConfigsForEleProducer
41  )