CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoMuon_cff.py
Go to the documentation of this file.
2 
3 # Standard pp setup
5 
6 ########################################################
7 
8 # Sequence for cosmic reconstruction
9 
10 # Seed generator
12 CosmicMuonSeed.DTRecSegmentLabel = 'dt4DCosmicSegments'
13 
14 
15 # Stand alone muon track producer
17 cosmicMuons.TrajectoryBuilderParameters.DTRecSegmentLabel = 'dt4DCosmicSegments'
18 
19 # Global muon track producer
21 globalCosmicMuons.TrajectoryBuilderParameters.TkTrackCollectionLabel = 'regionalCosmicTracks'
22 
23 # Muon Id producer
24 muonsFromCosmics = RecoMuon.MuonIdentification.muons1stStep_cfi.muons1stStep.clone()
25 
26 muonsFromCosmics.inputCollectionLabels = ['globalCosmicMuons', 'cosmicMuons', 'regionalCosmicTracks']
27 muonsFromCosmics.inputCollectionTypes = ['links', 'outer tracks', 'inner tracks' ]
28 muonsFromCosmics.TrackAssociatorParameters.DTRecSegment4DCollectionLabel = 'dt4DCosmicSegments'
29 muonsFromCosmics.TrackExtractorPSet.inputTrackCollection = 'regionalCosmicTracks'
30 muonsFromCosmics.TimingFillerParameters.DTTimingParameters.MatchParameters.DTsegments = 'dt4DCosmicSegments'
31 muonsFromCosmics.TimingFillerParameters.DTTimingParameters.DTsegments = 'dt4DCosmicSegments'
32 muonsFromCosmics.TimingFillerParameters.CSCTimingParameters.MatchParameters.DTsegments = 'dt4DCosmicSegments'
33 muonsFromCosmics.fillIsolation = False
34 muonsFromCosmics.fillGlobalTrackQuality = False
35 muonsFromCosmics.fillGlobalTrackRefits = False
36 
37 #from RecoTracker.Configuration.RecoTrackerNotStandard_cff import *
38 #add regional cosmic tracks here
39 #muoncosmicreco2legs = cms.Sequence(cosmicMuons*regionalCosmicTracksSeq*globalCosmicMuons*muonsFromCosmics)
40 muoncosmicreco2legsSTA = cms.Sequence(CosmicMuonSeed*cosmicMuons)
41 muoncosmicreco2legsHighLevel = cms.Sequence(globalCosmicMuons*muonsFromCosmics)
42 
43 # 1 Leg type
44 
45 # Stand alone muon track producer
46 cosmicMuons1Leg = cosmicMuons.clone()
47 cosmicMuons1Leg.TrajectoryBuilderParameters.BuildTraversingMuon = True
48 cosmicMuons1Leg.TrajectoryBuilderParameters.Strict1Leg = True
49 cosmicMuons1Leg.TrajectoryBuilderParameters.DTRecSegmentLabel = 'dt4DCosmicSegments'
50 cosmicMuons1Leg.MuonSeedCollectionLabel = 'CosmicMuonSeed'
51 
52 # Global muon track producer
53 globalCosmicMuons1Leg = globalCosmicMuons.clone()
54 globalCosmicMuons1Leg.MuonCollectionLabel = 'cosmicMuons1Leg'
55 globalCosmicMuons1Leg.TrajectoryBuilderParameters.TkTrackCollectionLabel = 'regionalCosmicTracks'
56 
57 # Muon Id producer
58 muonsFromCosmics1Leg = muons1stStep.clone()
59 muonsFromCosmics1Leg.inputCollectionLabels = ['globalCosmicMuons1Leg', 'cosmicMuons1Leg', 'regionalCosmicTracks' ]
60 muonsFromCosmics1Leg.inputCollectionTypes = ['links', 'outer tracks', 'inner tracks' ]
61 muonsFromCosmics1Leg.TrackAssociatorParameters.DTRecSegment4DCollectionLabel = 'dt4DCosmicSegments'
62 muonsFromCosmics1Leg.TrackExtractorPSet.inputTrackCollection = 'regionalCosmicTracks'
63 muonsFromCosmics1Leg.TimingFillerParameters.DTTimingParameters.MatchParameters.DTsegments = 'dt4DCosmicSegments'
64 muonsFromCosmics1Leg.TimingFillerParameters.DTTimingParameters.DTsegments = 'dt4DCosmicSegments'
65 muonsFromCosmics1Leg.TimingFillerParameters.CSCTimingParameters.MatchParameters.DTsegments = 'dt4DCosmicSegments'
66 muonsFromCosmics1Leg.fillIsolation = False
67 muonsFromCosmics1Leg.fillGlobalTrackQuality = False
68 muonsFromCosmics1Leg.fillGlobalTrackRefits = False
69 
70 #muoncosmicreco1leg = cms.Sequence(cosmicMuons1Leg*globalCosmicMuons1Leg*muonsFromCosmics1Leg)
71 muoncosmicreco1legSTA = cms.Sequence(CosmicMuonSeed*cosmicMuons1Leg)
72 muoncosmicreco1legHighLevel = cms.Sequence(globalCosmicMuons1Leg*muonsFromCosmics1Leg)
73 
74 #muoncosmicreco = cms.Sequence(CosmicMuonSeed*(muoncosmicreco2legs+muoncosmicreco1leg)*cosmicsMuonIdSequence)
75 muoncosmicreco = cms.Sequence(muoncosmicreco2legsSTA+muoncosmicreco1legSTA)
76 muoncosmichighlevelreco = cms.Sequence((muoncosmicreco2legsHighLevel+muoncosmicreco1legHighLevel)*cosmicsMuonIdSequence)
77 
78 
79 #### High level sequence (i.e., post PF reconstruction) ###
80 
83 
84 muonshighlevelreco = cms.Sequence(muonPFIsolationSequence*muons)