1 import FWCore.ParameterSet.Config
as cms
13 patCandidateSummary = cms.EDAnalyzer(
"CandidateSummaryTable",
14 logName = cms.untracked.string(
"patCandidates|PATSummaryTables"),
15 candidates = cms.VInputTag(
16 cms.InputTag(
"patElectrons"),
17 cms.InputTag(
"patLowPtElectrons"),
18 cms.InputTag(
"patMuons"),
19 cms.InputTag(
"patTaus"),
20 cms.InputTag(
"patPhotons"),
21 cms.InputTag(
"patOOTPhotons"),
22 cms.InputTag(
"patJets"),
23 cms.InputTag(
"patMETs"),
27 patCandidatesTask = cms.Task(
29 makePatLowPtElectronsTask,
33 makePatOOTPhotonsTask,
37 patCandidates = cms.Sequence(patCandidateSummary, patCandidatesTask)
39 from Configuration.Eras.Modifier_pp_on_AA_2018_cff
import pp_on_AA_2018
40 pp_on_AA_2018.toReplaceWith(patCandidatesTask, patCandidatesTask.copyAndExclude([makePatOOTPhotonsTask]))
41 pp_on_AA_2018.toModify(patCandidateSummary.candidates, func =
lambda list: list.remove(cms.InputTag(
"patOOTPhotons")) )