CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
electronBenchmarkGeneric_cff.py
Go to the documentation of this file.
2 
5 
6 from Validation.RecoParticleFlow.pfElectronBenchmarkGeneric_cfi import pfElectronBenchmarkGeneric
7 
9 # setting the sources
10 
11 gensource = cms.EDProducer(
12  "GenParticlePruner",
13  src = cms.InputTag("genParticles"),
14  select = cms.vstring(
15  "drop * ",
16  "keep pdgId = {e-}",
17  "keep pdgId = {e+}"
18  )
19 )
20 
21 pfElectronBenchmarkGeneric.InputRecoLabel = cms.InputTag("pfAllElectrons")
22 pfElectronBenchmarkGeneric.InputTruthLabel = cms.InputTag("gensource")
23 pfAllElectrons.src = cms.InputTag("pfNoPileUp")
24 
25 electronBenchmarkGeneric = cms.Sequence(
26  pfNoPileUpSequence+
27  pfAllElectrons +
28  gensource +
29  pfElectronBenchmarkGeneric
30 )