1 import FWCore.ParameterSet.Config
as cms
11 CosmicMuonSeed.DTRecSegmentLabel =
'dt4DCosmicSegments' 14 cosmicMuons.TrajectoryBuilderParameters.DTRecSegmentLabel =
'dt4DCosmicSegments' 17 muonsFromCosmics = RecoMuon.MuonIdentification.muons1stStep_cfi.muons1stStep.clone(
18 inputCollectionLabels = [
'cosmicMuons'],
19 inputCollectionTypes = [
'outer tracks'],
20 fillIsolation =
False,
21 fillGlobalTrackQuality =
False,
22 fillGlobalTrackRefits =
False,
23 TrackAssociatorParameters = dict(DTRecSegment4DCollectionLabel =
'dt4DCosmicSegments'),
24 TrackExtractorPSet = dict(inputTrackCollection =
'cosmicMuons'),
25 TimingFillerParameters = dict(
26 MatchParameters = dict(DTsegments =
'dt4DCosmicSegments'),
27 DTTimingParameters = dict(PruneCut = 9999),
28 CSCTimingParameters = dict(PruneCut = 9999)),
29 selectHighPurity =
False,
34 muoncosmicreco2legsSTATask = cms.Task(CosmicMuonSeed,cosmicMuons)
35 muoncosmicreco2legsSTA = cms.Sequence(muoncosmicreco2legsSTATask)
36 muoncosmicreco2legsHighLevelTask = cms.Task(muonsFromCosmics)
37 muoncosmicreco2legsHighLevel = cms.Sequence(muoncosmicreco2legsHighLevelTask)
41 cosmicMuons1Leg = cosmicMuons.clone(
42 MuonSeedCollectionLabel =
'CosmicMuonSeed',
43 TrajectoryBuilderParameters = dict(
44 BuildTraversingMuon =
True,
46 DTRecSegmentLabel =
'dt4DCosmicSegments')
50 muonsFromCosmics1Leg = muons1stStep.clone(
51 inputCollectionLabels = [
'cosmicMuons1Leg'],
52 inputCollectionTypes = [
'outer tracks'],
53 fillIsolation =
False,
54 fillGlobalTrackQuality =
False,
55 fillGlobalTrackRefits =
False,
56 TrackAssociatorParameters = dict(DTRecSegment4DCollectionLabel =
'dt4DCosmicSegments'),
57 TrackExtractorPSet = dict(inputTrackCollection =
'cosmicMuons1Leg'),
58 TimingFillerParameters = dict(
59 MatchParameters = dict(DTsegments =
'dt4DCosmicSegments'),
60 DTTimingParameters = dict(PruneCut = 9999),
61 CSCTimingParameters = dict(PruneCut = 9999)),
62 selectHighPurity =
False,
66 muoncosmicreco1legSTATask = cms.Task(CosmicMuonSeed,cosmicMuons1Leg)
67 muoncosmicreco1legSTA = cms.Sequence(muoncosmicreco1legSTATask)
68 muoncosmicreco1legHighLevelTask = cms.Task(muonsFromCosmics1Leg)
69 muoncosmicreco1legHighLevel = cms.Sequence(muoncosmicreco1legHighLevelTask)
71 muoncosmicrecoTask = cms.Task(muoncosmicreco2legsSTATask,muoncosmicreco1legSTATask)
72 muoncosmicreco = cms.Sequence(muoncosmicrecoTask)
73 muoncosmichighlevelrecoTask = cms.Task(muoncosmicreco2legsHighLevelTask,muoncosmicreco1legHighLevelTask,cosmicsMuonIdTask)
74 muoncosmichighlevelreco = cms.Sequence(muoncosmichighlevelrecoTask)
84 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
85 fastSim.toModify(muonReducedTrackExtras, outputClusters =
False)
88 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
89 phase2_tracker.toModify(muonReducedTrackExtras, outputClusters =
False)
90 phase2_tracker.toModify(displacedMuonReducedTrackExtras, outputClusters =
False)
92 muonshighlevelrecoTask = cms.Task(muonPFIsolationTask,displacedMuonPFIsolationTask,muons,displacedMuons,muonReducedTrackExtras, displacedMuonReducedTrackExtras)
93 muonshighlevelreco = cms.Sequence(muonshighlevelrecoTask)
96 fastSim.toReplaceWith(muonshighlevelrecoTask,muonshighlevelrecoTask.copyAndExclude([displacedMuonPFIsolationTask,displacedMuons,displacedMuonReducedTrackExtras]))
High level sequence (i.e., post PF reconstruction) ###.