CMS 3D CMS Logo

PFElectronValidation_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMOffline.PFTau.PFElectronDQMAnalyzer_cfi import pfElectronDQMAnalyzer
4 
5 pfAllElectrons = cms.EDFilter("PdgIdPFCandidateSelector",
6  pdgId = cms.vint32(11, -11),
7  src = cms.InputTag("particleFlow")
8  )
9 
10 gensource = cms.EDProducer("GenParticlePruner",
11  src = cms.InputTag("genParticles"),
12  select = cms.vstring('drop *',
13  'keep pdgId = 11',
14  'keep pdgId = -11'
15  )
16  )
17 
18 
19 pfElectronValidation1 = pfElectronDQMAnalyzer.clone(
20  BenchmarkLabel = 'PFElectronValidation/CompWithGenElectron'
21 )
22 pfElectronValidationSequence = cms.Sequence( gensource + pfElectronValidation1 )
23 
24 
25 # NoTracking
26 pfElectronValidation2 = pfElectronDQMAnalyzer.clone(
27  InputCollection = 'pfAllElectrons::PFlowDQMnoTracking',
28  MatchCollection = 'gensource::PFlowDQMnoTracking',
29  BenchmarkLabel = 'PFElectronValidation/CompWithGenElectron'
30 )
31 pfElectronValidationSequence_NoTracking = cms.Sequence( pfElectronValidation2 )