CMS 3D CMS Logo

slimmedTrackExtras_cff.py
Go to the documentation of this file.
2 
3 import FWCore.ParameterSet.Config as cms
4 
5 slimmedMuonTrackExtras = muonReducedTrackExtras.clone(muonTag = "selectedPatMuons",
6  cut = "pt > 4.5",
7  trackExtraTags = ["muonReducedTrackExtras", "standAloneMuons"],
8  trackExtraAssocs = ["muonReducedTrackExtras"],
9  pixelClusterTag = "muonReducedTrackExtras",
10  stripClusterTag = "muonReducedTrackExtras")
11 
12 from RecoMuon.MuonIdentification.displacedMuonReducedTrackExtras_cfi import displacedMuonReducedTrackExtras
13 slimmedDisplacedMuonTrackExtras = displacedMuonReducedTrackExtras.clone(muonTag = "selectedPatDisplacedMuons",
14  cut = "pt > 4.5",
15  trackExtraTags = ["displacedMuonReducedTrackExtras", "displacedStandAloneMuons"],
16  trackExtraAssocs = ["displacedMuonReducedTrackExtras"],
17  pixelClusterTag = "displacedMuonReducedTrackExtras",
18  stripClusterTag = "displacedMuonReducedTrackExtras")
19 
20 # no clusters in fastsim
21 from Configuration.Eras.Modifier_fastSim_cff import fastSim
22 fastSim.toModify(slimmedMuonTrackExtras, outputClusters = False)
23 
24 # cluster collections are different in phase 2, so skip this for now
25 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
26 phase2_tracker.toModify(slimmedMuonTrackExtras, outputClusters = False)
27 phase2_tracker.toModify(slimmedDisplacedMuonTrackExtras, outputClusters = False)
28 
29 # lower minimum pt for B-parking
30 from Configuration.Eras.Modifier_bParking_cff import bParking
31 bParking.toModify(slimmedMuonTrackExtras, cut = "pt > 3.0")
32 
33 # full set of track extras not available in existing AOD
34 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
35 from Configuration.Eras.Modifier_run2_miniAOD_94XFall17_cff import run2_miniAOD_94XFall17
36 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
37 from Configuration.ProcessModifiers.miniAOD_skip_trackExtras_cff import miniAOD_skip_trackExtras
38 
39 (run2_miniAOD_80XLegacy | run2_miniAOD_94XFall17 | pp_on_AA | miniAOD_skip_trackExtras).toModify(slimmedMuonTrackExtras,
40  trackExtraTags = ["standAloneMuons"],
41  trackExtraAssocs = [],
42  outputClusters = False)