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.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
39 pp_on_AA.toReplaceWith(selectedPatCandidatesTask, selectedPatCandidatesTask.copyAndExclude([selectedPatOOTPhotons]))
40 pp_on_AA.toModify(selectedPatCandidateSummary.candidates, func =
lambda list: list.remove(cms.InputTag(
"selectedPatOOTPhotons")) )