1 import FWCore.ParameterSet.Config
as cms
3 slimmedMuons = cms.EDProducer(
"PATMuonSlimmer",
4 src = cms.InputTag(
"selectedPatMuons"),
5 linkToPackedPFCandidates = cms.bool(
True),
6 pfCandidates = cms.VInputTag(cms.InputTag(
"particleFlow")),
7 packedPFCandidates = cms.VInputTag(cms.InputTag(
"packedPFCandidates")),
8 saveTeVMuons = cms.string(
"pt > 100"),
9 dropDirectionalIso = cms.string(
"0"),
10 dropPfP4 = cms.string(
"1"),
11 slimCaloVars = cms.string(
"1"),
12 slimKinkVars = cms.string(
"1"),
13 slimCaloMETCorr = cms.string(
"1"),
14 slimMatches = cms.string(
"1"),
15 segmentsMuonSelection = cms.string(
"pt > 50"),
16 saveSegments = cms.bool(
True),
17 modifyMuons = cms.bool(
True),
18 modifierConfig = cms.PSet( modifications = cms.VPSet() ),
19 trackExtraAssocs = cms.VInputTag([
"muonReducedTrackExtras",
"slimmedMuonTrackExtras"]),
23 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff
import run2_miniAOD_80XLegacy
24 from Configuration.Eras.Modifier_run2_miniAOD_94XFall17_cff
import run2_miniAOD_94XFall17
25 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
26 from Configuration.ProcessModifiers.miniAOD_skip_trackExtras_cff
import miniAOD_skip_trackExtras
28 (run2_miniAOD_80XLegacy | run2_miniAOD_94XFall17 | pp_on_AA | miniAOD_skip_trackExtras).toModify(slimmedMuons, trackExtraAssocs = [
"slimmedMuonTrackExtras"])
29 from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff
import run2_miniAOD_pp_on_AA_103X
30 run2_miniAOD_pp_on_AA_103X.toModify(slimmedMuons,
31 packedPFCandidates = [
"packedPFCandidates",
"packedPFCandidatesRemoved"],
32 pfCandidates = [
"cleanedParticleFlow",
"cleanedParticleFlow:removed"]