Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-04 02:53:09

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 slimmedMuons = cms.EDProducer("PATMuonSlimmer",
0004     src = cms.InputTag("selectedPatMuons"),
0005     linkToPackedPFCandidates = cms.bool(True),
0006     linkToLostTrack = cms.bool(True),
0007     pfCandidates = cms.VInputTag(cms.InputTag("particleFlow")),
0008     packedPFCandidates = cms.VInputTag(cms.InputTag("packedPFCandidates")), 
0009     lostTracks = cms.InputTag("lostTracks"),
0010     saveTeVMuons = cms.string("pt > 100"), # you can put a cut to slim selectively, e.g. pt > 10
0011     dropDirectionalIso = cms.string("0"),
0012     dropPfP4 = cms.string("1"),
0013     slimCaloVars = cms.string("1"),
0014     slimKinkVars = cms.string("1"),
0015     slimCaloMETCorr = cms.string("1"),
0016     slimMatches = cms.string("1"),
0017     segmentsMuonSelection = cms.string("pt > 50"), #segments are needed for EXO analysis looking at TOF and for very high pt from e.g. Z' 
0018     saveSegments = cms.bool(True),
0019     modifyMuons = cms.bool(True),
0020     modifierConfig = cms.PSet( modifications = cms.VPSet() ),
0021     trackExtraAssocs = cms.VInputTag(["muonReducedTrackExtras", "slimmedMuonTrackExtras"]),
0022 )
0023 
0024 # full set of track extras not available in existing AOD
0025 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
0026 from Configuration.Eras.Modifier_run2_miniAOD_94XFall17_cff import run2_miniAOD_94XFall17
0027 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0028 from Configuration.ProcessModifiers.miniAOD_skip_trackExtras_cff import miniAOD_skip_trackExtras
0029 
0030 (run2_miniAOD_80XLegacy | run2_miniAOD_94XFall17 | pp_on_AA | miniAOD_skip_trackExtras).toModify(slimmedMuons, trackExtraAssocs = ["slimmedMuonTrackExtras"])
0031 from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff import run2_miniAOD_pp_on_AA_103X
0032 run2_miniAOD_pp_on_AA_103X.toModify(slimmedMuons,
0033                        packedPFCandidates = ["packedPFCandidates","packedPFCandidatesRemoved"],
0034                        pfCandidates = ["cleanedParticleFlow","cleanedParticleFlow:removed"]
0035 )