CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/Validation/RecoParticleFlow/python/electronBenchmarkGeneric_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 from SimGeneral.HepPDTESSource.pythiapdt_cfi import *
00004 from CommonTools.ParticleFlow.ParticleSelectors.pfAllElectrons_cfi import pfAllElectrons
00005 
00006 from Validation.RecoParticleFlow.pfElectronBenchmarkGeneric_cfi import pfElectronBenchmarkGeneric
00007 
00008 from  CommonTools.ParticleFlow.pfNoPileUp_cff import *
00009 # setting the sources
00010 
00011 gensource = cms.EDProducer(
00012     "GenParticlePruner",
00013     src = cms.InputTag("genParticles"),
00014     select = cms.vstring(
00015     "drop * ",
00016     "keep pdgId = {e-}",
00017     "keep pdgId = {e+}"
00018     )
00019 )
00020 
00021 pfElectronBenchmarkGeneric.InputRecoLabel = cms.InputTag("pfAllElectrons")
00022 pfElectronBenchmarkGeneric.InputTruthLabel = cms.InputTag("gensource")
00023 pfAllElectrons.src = cms.InputTag("pfNoPileUp")
00024 
00025 electronBenchmarkGeneric = cms.Sequence(
00026     pfNoPileUpSequence+
00027     pfAllElectrons +
00028     gensource + 
00029     pfElectronBenchmarkGeneric
00030 )