1 import FWCore.ParameterSet.Config
as cms
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"),
25 patCandidatesTask = cms.Task(
30 makePatOOTPhotonsTask,
34 patCandidates = cms.Sequence(patCandidateSummary, patCandidatesTask)
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")) )