CMS 3D CMS Logo

selectedPatCandidates_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
10 #from PhysicsTools.PatAlgos.producersLayer1.hemisphereProducer_cfi import *
11 
12 # One module to count objects
13 selectedPatCandidateSummary = cms.EDAnalyzer("CandidateSummaryTable",
14  logName = cms.untracked.string("selectedPatCanddiates|PATSummaryTables"),
15  candidates = cms.VInputTag(
16  cms.InputTag("selectedPatElectrons"),
17  cms.InputTag("selectedPatLowPtElectrons"),
18  cms.InputTag("selectedPatMuons"),
19  cms.InputTag("selectedPatTaus"),
20  cms.InputTag("selectedPatPhotons"),
21  cms.InputTag("selectedPatOOTPhotons"),
22  cms.InputTag("selectedPatJets"),
23  )
24 )
25 
26 selectedPatCandidatesTask = cms.Task(
27  selectedPatElectrons,
28  selectedPatLowPtElectrons,
29  selectedPatMuons,
30  selectedPatTaus,
31  selectedPatPhotons,
32  selectedPatOOTPhotons,
33  selectedPatJets
34 )
35 
36 selectedPatCandidates = cms.Sequence(selectedPatCandidateSummary, selectedPatCandidatesTask)
37 
38 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
39 pp_on_AA_2018.toReplaceWith(selectedPatCandidatesTask, selectedPatCandidatesTask.copyAndExclude([selectedPatOOTPhotons]))
40 pp_on_AA_2018.toModify(selectedPatCandidateSummary.candidates, func = lambda list: list.remove(cms.InputTag("selectedPatOOTPhotons")) )