1 import FWCore.ParameterSet.Config
as cms
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"),
26 selectedPatCandidatesTask = cms.Task(
28 selectedPatLowPtElectrons,
32 selectedPatOOTPhotons,
36 selectedPatCandidates = cms.Sequence(selectedPatCandidateSummary, selectedPatCandidatesTask)
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")) )