1 import FWCore.ParameterSet.Config
as cms
13 selectedPatJets = _selectedPatJets.clone()
16 selectedPatCandidateSummary = cms.EDAnalyzer(
"CandidateSummaryTable",
17 logName = cms.untracked.string(
"selectedPatCanddiates|PATSummaryTables"),
18 candidates = cms.VInputTag(
19 cms.InputTag(
"selectedPatElectrons"),
20 cms.InputTag(
"selectedPatLowPtElectrons"),
21 cms.InputTag(
"selectedPatMuons"),
22 cms.InputTag(
"selectedPatDisplacedMuons"),
23 cms.InputTag(
"selectedPatTaus"),
24 cms.InputTag(
"selectedPatPhotons"),
25 cms.InputTag(
"selectedPatOOTPhotons"),
26 cms.InputTag(
"selectedPatJets"),
30 selectedPatCandidatesTask = cms.Task(
32 selectedPatLowPtElectrons,
34 selectedPatDisplacedMuons,
37 selectedPatOOTPhotons,
41 selectedPatCandidates = cms.Sequence(selectedPatCandidateSummary, selectedPatCandidatesTask)
43 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
44 pp_on_AA.toReplaceWith(selectedPatCandidatesTask, selectedPatCandidatesTask.copyAndExclude([selectedPatOOTPhotons]))
45 pp_on_AA.toModify(selectedPatCandidateSummary.candidates, func =
lambda list: list.remove(cms.InputTag(
"selectedPatOOTPhotons")) )
47 (pp_on_AA).toReplaceWith(
48 selectedPatCandidatesTask,
49 selectedPatCandidatesTask.copyAndExclude([selectedPatLowPtElectrons])).toModify(
50 selectedPatCandidateSummary.candidates,
51 func =
lambda list: list.remove(cms.InputTag(
"selectedPatLowPtElectrons")) )
53 from Configuration.ProcessModifiers.run2_miniAOD_UL_cff
import run2_miniAOD_UL
54 from Configuration.Eras.Era_Run2_2016_HIPM_cff
import Run2_2016_HIPM
55 (pp_on_AA | run2_miniAOD_UL | Run2_2016_HIPM).toReplaceWith(selectedPatCandidatesTask,
56 selectedPatCandidatesTask.copyAndExclude([selectedPatDisplacedMuons]))
57 (pp_on_AA | run2_miniAOD_UL | Run2_2016_HIPM).toModify(selectedPatCandidateSummary.candidates,
58 func =
lambda list: list.remove(cms.InputTag(
"selectedPatDisplacedMuons")) )
60 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
61 fastSim.toReplaceWith(selectedPatCandidatesTask, selectedPatCandidatesTask.copyAndExclude([selectedPatDisplacedMuons]))