CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoMuonPPonly_cff.py
Go to the documentation of this file.
2 
3 # Seed generator
5 
6 # Stand alone muon track producer
8 
9 # refitted stand-alone muons.
10 refittedStandAloneMuons = standAloneMuons.clone()
11 refittedStandAloneMuons.STATrajBuilderParameters.DoRefit = True
12 
13 # Displaced SA muons
15 displacedMuonSeeds = CosmicMuonSeed.clone()
16 displacedMuonSeeds.ForcePointDown = False
17 
18 displacedStandAloneMuons = standAloneMuons.clone()
19 displacedStandAloneMuons.InputObjects = cms.InputTag("displacedMuonSeeds")
20 displacedStandAloneMuons.MuonTrajectoryBuilder = cms.string("StandAloneMuonTrajectoryBuilder")
21 displacedStandAloneMuons.TrackLoaderParameters.VertexConstraint = cms.bool(False)
22 
23 # Global muon track producer
25 
26 # TeV refinement
28 
29 # SET Muon tracking
31 
32 # Muon Id producer
34 muons1stStep.fillGlobalTrackQuality = True
35 
36 #Muon Id isGood flag ValueMap producer sequence
38 
39 # Muon Isolation sequence
41 
42 # ---------------------------------------------------- #
43 ################## Make the sequences ##################
44 # ---------------------------------------------------- #
45 
46 # Muon Tracking sequence
47 standalonemuontracking = cms.Sequence(standAloneMuonSeeds*standAloneMuons*refittedStandAloneMuons*displacedMuonSeeds*displacedStandAloneMuons)
48 globalmuontracking = cms.Sequence(globalMuons*tevMuons)
49 muontracking = cms.Sequence(standalonemuontracking*globalmuontracking)
50 
51 # Muon Reconstruction
52 muonreco = cms.Sequence(muontracking*muonIdProducerSequence)
53 
54 # Muon Reconstruction plus Isolation
55 muonreco_plus_isolation = cms.Sequence(muonreco*muIsolation)
56 muonreco_plus_isolation_plus_SET = cms.Sequence(muonreco_plus_isolation*muonreco_with_SET)
57 
58 muonrecoComplete = cms.Sequence(muonreco_plus_isolation_plus_SET*muonSelectionTypeSequence)
59 
60 
61 # _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- #
62 # -_-_-_- Special Sequences for Iterative tracking -_-_-_- #
63 # -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ #
64 
65 # We need to split the muon sequence above in two, to be able to run the MuonSeeding in the tracker. So muonrecoComplete will
66 # be run no longer...
67 
68 #from RecoMuon.MuonIdentification.earlyMuons_cfi import earlyMuons
69 
70 muonGlobalReco = cms.Sequence(globalmuontracking*muonIdProducerSequence*muonSelectionTypeSequence*muIsolation*muonreco_with_SET)
71 
72 # ... instead, the sequences will be run in the following order:
73 # 1st - standalonemuontracking
74 # 2nd - iterative tracking (def in RecoTracker config)
75 # 3rd - MuonIDProducer with 1&2 as input, with special replacements; the earlyMuons above.
76 # 4th - MuonSeeded tracks, inside-out and outside-in
77 # 5th - Merging of the new TK tracks into the generalTracks collection
78 # 6th - Run the remnant part of the muon sequence (muonGlobalReco)
79 
80 ########################################################