1 import FWCore.ParameterSet.Config
as cms
12 selectedPatCandidateSummary = cms.EDAnalyzer(
"CandidateSummaryTable",
13 logName = cms.untracked.string(
"selectedPatCanddiates|PATSummaryTables"),
14 candidates = cms.VInputTag(
15 cms.InputTag(
"selectedPatElectrons"),
16 cms.InputTag(
"selectedPatMuons"),
17 cms.InputTag(
"selectedPatTaus"),
18 cms.InputTag(
"selectedPatPhotons"),
19 cms.InputTag(
"selectedPatOOTPhotons"),
20 cms.InputTag(
"selectedPatJets"),
24 selectedPatCandidatesTask = cms.Task(
29 selectedPatOOTPhotons,
33 selectedPatCandidates = cms.Sequence(selectedPatCandidateSummary, selectedPatCandidatesTask)
35 from Configuration.Eras.Modifier_pp_on_AA_2018_cff
import pp_on_AA_2018
36 pp_on_AA_2018.toReplaceWith(selectedPatCandidatesTask, selectedPatCandidatesTask.copyAndExclude([selectedPatOOTPhotons]))
37 pp_on_AA_2018.toModify(selectedPatCandidateSummary.candidates, func =
lambda list: list.remove(cms.InputTag(
"selectedPatOOTPhotons")) )