CMS 3D CMS Logo

patCandidates_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
10 
11 ## module to count objects
12 patCandidateSummary = cms.EDAnalyzer("CandidateSummaryTable",
13  logName = cms.untracked.string("patCandidates|PATSummaryTables"),
14  candidates = cms.VInputTag(
15  cms.InputTag("patElectrons"),
16  cms.InputTag("patMuons"),
17  cms.InputTag("patTaus"),
18  cms.InputTag("patPhotons"),
19  cms.InputTag("patOOTPhotons"),
20  cms.InputTag("patJets"),
21  cms.InputTag("patMETs"),
22  )
23 )
24 
25 patCandidatesTask = cms.Task(
26  makePatElectronsTask,
27  makePatMuonsTask,
28  makePatTausTask,
29  makePatPhotonsTask,
30  makePatOOTPhotonsTask,
31  makePatJetsTask,
32  makePatMETsTask
33 )
34 patCandidates = cms.Sequence(patCandidateSummary, patCandidatesTask)
35 
36 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
37 pp_on_AA_2018.toReplaceWith(patCandidatesTask, patCandidatesTask.copyAndExclude([makePatOOTPhotonsTask]))
38 pp_on_AA_2018.toModify(patCandidateSummary.candidates, func = lambda list: list.remove(cms.InputTag("patOOTPhotons")) )