CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTFastRecoForMuon_cff.py
Go to the documentation of this file.
2 
5 
6 # RecoMuon flux ##########################################################
7 # L2 seeds from L1 input
8 # module hltL2MuonSeeds = L2MuonSeeds from "RecoMuon/L2MuonSeedGenerator/data/L2MuonSeeds.cfi"
9 # replace hltL2MuonSeeds.GMTReadoutCollection = l1extraParticles
10 # replace hltL2MuonSeeds.InputObjects = l1extraParticles
11 # L3 regional reconstruction
13 #import FastSimulation.Muons.L3Muons_cfi
14 #hltL3Muonstemp = FastSimulation.Muons.L3Muons_cfi.L3Muons.clone()
15 #hltL3Muonstemp.L3TrajBuilderParameters.TrackTransformer.TrackerRecHitBuilder = 'WithoutRefit'
16 #hltL3Muonstemp.L3TrajBuilderParameters.TrackerRecHitBuilder = 'WithoutRefit'
17 #hltL3Muonstemp.TrackLoaderParameters.beamSpot = cms.InputTag("offlineBeamSpot")
18 
19 # L3 regional seeding, candidating, tracking
20 #--the two below have to be picked up from confDB:
21 # from FastSimulation.Muons.TSGFromL2_cfi import *
22 # from FastSimulation.Muons.HLTL3TkMuons_cfi import *
23 #from FastSimulation.Muons.TrackCandidateFromL2_cfi import *
24 #from FastSimulation.Muons.TSGFromL2_cfi import *
25 #hltL3TrajectorySeed = FastSimulation.Muons.TSGFromL2_cfi.hltL3TrajectorySeed.clone()
26 
27 import FastSimulation.Muons.TSGFromL2_cfi as TSG
28 #from FastSimulation.Muons.TSGFromL2_cfi import OIStatePropagators as OIProp
29 from FastSimulation.Muons.TSGFromL2_cfi import OIHitPropagators as OIHProp
30 ## Make three individual seeders
31 ## OIState can be taken directly from configuration
32 #hltL3TrajSeedOIState = TSG.l3seeds("OIState")
33 #hltL3TrajSeedOIState.ServiceParameters.Propagators = cms.untracked.vstring()
34 #OIProp(hltL3TrajSeedOIState,hltL3TrajSeedOIState.TkSeedGenerator)
35 hltL3TrajSeedOIHit = TSG.l3seeds("OIHitCascade")
36 hltL3TrajSeedOIHit.ServiceParameters.Propagators = cms.untracked.vstring()
37 OIHProp(hltL3TrajSeedOIHit,hltL3TrajSeedOIHit.TkSeedGenerator.iterativeTSG)
38 hltL3TrajSeedIOHit = TSG.l3seeds("IOHitCascade")
39 hltL3NoFiltersTrajSeedOIHit = TSG.l3seeds("OIHitCascade")
40 hltL3NoFiltersTrajSeedOIHit.ServiceParameters.Propagators = cms.untracked.vstring()
41 OIHProp(hltL3NoFiltersTrajSeedOIHit,hltL3NoFiltersTrajSeedOIHit.TkSeedGenerator.iterativeTSG)
42 hltL3NoFiltersTrajSeedIOHit = TSG.l3seeds("IOHitCascade")
43 
44 ## Make one TrackCand for each seeder
46 hltL3TrackCandidateFromL2OIState = FastSimulation.Muons.TrackCandidateFromL2_cfi.hltL3TrackCandidateFromL2.clone()
47 hltL3TrackCandidateFromL2OIState.SeedProducer = "hltL3TrajSeedOIState"
48 hltL3TrackCandidateFromL2OIHit = FastSimulation.Muons.TrackCandidateFromL2_cfi.hltL3TrackCandidateFromL2.clone()
49 hltL3TrackCandidateFromL2OIHit.SeedProducer = "hltL3TrajSeedOIHit"
50 hltL3TrackCandidateFromL2IOHit = FastSimulation.Muons.TrackCandidateFromL2_cfi.hltL3TrackCandidateFromL2.clone()
51 hltL3TrackCandidateFromL2IOHit.SeedProducer = "hltL3TrajSeedIOHit"
52 hltL3TrackCandidateFromL2NoVtx = FastSimulation.Muons.TrackCandidateFromL2_cfi.hltL3TrackCandidateFromL2.clone()
53 hltL3TrackCandidateFromL2NoVtx.SeedProducer = "hltL3TrajectorySeedNoVtx"
54 
55 
56 # (Not-so) Regional Tracking - needed because the TrackCandidateProducer needs the seeds
57 
58 
59 # Paths that need a regional pixel seed (which accesses Pixel RecHits in its usual implementation)
60 hltJpsiTkPixelSeedFromL3Candidate = FastSimulation.HighLevelTrigger.DummyModule_cfi.dummyModule.clone()
61 hltCkfTrackCandidatesJpsiTk = cms.Sequence(globalPixelTracking)
62 
63 # CKFTrackCandidateMaker
65 
66 hltMuCkfTrackCandidates = FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone()
67 hltMuCkfTrackCandidates.SeedProducer = cms.InputTag("hltMuTrackSeeds")
68 hltMuCkfTrackCandidates.SeedCleaning = True
69 hltMuCkfTrackCandidates.SplitHits = False
70 
71 hltMuTrackJpsiCkfTrackCandidates = FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone()
72 hltMuTrackJpsiCkfTrackCandidates.SeedProducer = cms.InputTag("hltMuTrackJpsiTrackSeeds")
73 hltMuTrackJpsiCkfTrackCandidates.SeedCleaning = True
74 hltMuTrackJpsiCkfTrackCandidates.SplitHits = False
75 
76 hltMuTrackJpsiEffCkfTrackCandidates = FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone()
77 hltMuTrackJpsiEffCkfTrackCandidates.SeedProducer = cms.InputTag("hltMuTrackJpsiTrackSeeds")
78 hltMuTrackJpsiEffCkfTrackCandidates.SeedCleaning = True
79 hltMuTrackJpsiEffCkfTrackCandidates.SplitHits = False
80 
81 hltMuTrackCkfTrackCandidatesOnia = FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone()
82 hltMuTrackCkfTrackCandidatesOnia.SeedProducer = cms.InputTag("hltMuTrackTrackSeedsOnia")
83 hltMuTrackCkfTrackCandidatesOnia.SeedCleaning = True
84 hltMuTrackCkfTrackCandidatesOnia.SplitHits = False
85 
86 # CTF track fit with material
88 
89 hltMuCtfTracks = RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cfi.ctfWithMaterialTracks.clone()
90 hltMuCtfTracks.src = 'hltMuCkfTrackCandidates'
91 hltMuCtfTracks.TTRHBuilder = 'WithoutRefit'
92 hltMuCtfTracks.Fitter = 'KFFittingSmoother'
93 hltMuCtfTracks.Propagator = 'PropagatorWithMaterial'
94 
95 hltMuTrackJpsiCtfTracks = RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cfi.ctfWithMaterialTracks.clone()
96 hltMuTrackJpsiCtfTracks.src = 'hltMuTrackJpsiCkfTrackCandidates'
97 hltMuTrackJpsiCtfTracks.TTRHBuilder = 'WithoutRefit'
98 hltMuTrackJpsiCtfTracks.Fitter = 'KFFittingSmoother'
99 hltMuTrackJpsiCtfTracks.Propagator = 'PropagatorWithMaterial'
100 
101 hltMuTrackJpsiEffCtfTracks = RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cfi.ctfWithMaterialTracks.clone()
102 hltMuTrackJpsiEffCtfTracks.src = 'hltMuTrackJpsiEffCkfTrackCandidates'
103 hltMuTrackJpsiEffCtfTracks.TTRHBuilder = 'WithoutRefit'
104 hltMuTrackJpsiEffCtfTracks.Fitter = 'KFFittingSmoother'
105 hltMuTrackJpsiEffCtfTracks.Propagator = 'PropagatorWithMaterial'
106 
107 hltMuTrackCtfTracksOnia = RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cfi.ctfWithMaterialTracks.clone()
108 hltMuTrackCtfTracksOnia.src = 'hltMuTrackCkfTrackCandidatesOnia'
109 hltMuTrackCtfTracksOnia.TTRHBuilder = 'WithoutRefit'
110 hltMuTrackCtfTracksOnia.Fitter = 'KFFittingSmoother'
111 hltMuTrackCtfTracksOnia.Propagator = 'PropagatorWithMaterial'
112 
113 #hltMuTrackSeedsSequence = cms.Sequence(globalPixelTracking+
114 # cms.SequencePlaceholder("hltMuTrackSeeds"))
115 #
116 #HLTMuTrackingSequence = cms.Sequence(hltMuCkfTrackCandidates+
117 # hltMuCtfTracks+
118 # cms.SequencePlaceholder("hltMuTracking"))
119 
120 
121 # L3 muon isolation sequence
123 HLTRegionalCKFTracksForL3Isolation = cms.Sequence( hltPixelTracks)
124 
Make one TrackCand for each seeder.