CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFElectronValidation_cff.py
Go to the documentation of this file.
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 pfElectronValidation1.BenchmarkLabel = cms.string('PFElectronValidation/CompWithGenElectron')
21 pfElectronValidationSequence = cms.Sequence( gensource + pfElectronValidation1 )
22 
23 
24 # NoTracking
25 pfElectronValidation2 = pfElectronDQMAnalyzer.clone()
26 pfElectronValidation2.InputCollection = cms.InputTag('pfAllElectrons','','PFlowDQMnoTracking')
27 pfElectronValidation2.MatchCollection = cms.InputTag('gensource','','PFlowDQMnoTracking')
28 pfElectronValidation2.BenchmarkLabel = cms.string('PFElectronValidation/CompWithGenElectron')
29 pfElectronValidationSequence_NoTracking = cms.Sequence( pfElectronValidation2 )