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.InputCollection = cms.InputTag('pfAllElectrons') # for global Validation
21 pfElectronValidation1.MatchCollection = cms.InputTag('gensource') # for global Validation
22 pfElectronValidation1.BenchmarkLabel = cms.string('PFElectronValidation/CompWithGenElectron')
23 pfElectronValidationSequence = cms.Sequence( pfAllElectrons + gensource + pfElectronValidation1 )
24 
25 
26 # NoTracking
27 pfElectronValidation2 = pfElectronDQMAnalyzer.clone()
28 pfElectronValidation2.InputCollection = cms.InputTag('pfAllElectrons','','PFlowDQMnoTracking')
29 pfElectronValidation2.MatchCollection = cms.InputTag('gensource','','PFlowDQMnoTracking')
30 pfElectronValidation2.BenchmarkLabel = cms.string('PFElectronValidation/CompWithGenElectron')
31 pfElectronValidationSequence_NoTracking = cms.Sequence( pfElectronValidation2 )