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 # Take all pixel tracks (pTMin>1GeV, nHits>=8)
63 hltCtfWithMaterialTracksJpsiTk = cms.EDProducer("FastTrackMerger",
64  SaveTracksOnly = cms.untracked.bool(True),
65  TrackProducers = cms.VInputTag(cms.InputTag("globalPixelWithMaterialTracks"),
66  cms.InputTag("globalPixelTrackCandidates")),
67  ptMin = cms.untracked.double(1.0),
68  minHits = cms.untracked.uint32(8)
69 )
70 
71 # CKFTrackCandidateMaker
73 
74 hltMuCkfTrackCandidates = FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone()
75 hltMuCkfTrackCandidates.SeedProducer = cms.InputTag("hltMuTrackSeeds")
76 hltMuCkfTrackCandidates.TrackProducers = []
77 hltMuCkfTrackCandidates.SeedCleaning = True
78 hltMuCkfTrackCandidates.SplitHits = False
79 
80 hltMuTrackJpsiCkfTrackCandidates = FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone()
81 hltMuTrackJpsiCkfTrackCandidates.SeedProducer = cms.InputTag("hltMuTrackJpsiTrackSeeds")
82 hltMuTrackJpsiCkfTrackCandidates.TrackProducers = []
83 hltMuTrackJpsiCkfTrackCandidates.SeedCleaning = True
84 hltMuTrackJpsiCkfTrackCandidates.SplitHits = False
85 
86 hltMuTrackJpsiEffCkfTrackCandidates = FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone()
87 hltMuTrackJpsiEffCkfTrackCandidates.SeedProducer = cms.InputTag("hltMuTrackJpsiTrackSeeds")
88 hltMuTrackJpsiEffCkfTrackCandidates.TrackProducers = []
89 hltMuTrackJpsiEffCkfTrackCandidates.SeedCleaning = True
90 hltMuTrackJpsiEffCkfTrackCandidates.SplitHits = False
91 
92 hltMuTrackCkfTrackCandidatesOnia = FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone()
93 hltMuTrackCkfTrackCandidatesOnia.SeedProducer = cms.InputTag("hltMuTrackTrackSeedsOnia")
94 hltMuTrackCkfTrackCandidatesOnia.TrackProducers = []
95 hltMuTrackCkfTrackCandidatesOnia.SeedCleaning = True
96 hltMuTrackCkfTrackCandidatesOnia.SplitHits = False
97 
98 # CTF track fit with material
100 
101 hltMuCtfTracks = RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cfi.ctfWithMaterialTracks.clone()
102 hltMuCtfTracks.src = 'hltMuCkfTrackCandidates'
103 hltMuCtfTracks.TTRHBuilder = 'WithoutRefit'
104 hltMuCtfTracks.Fitter = 'KFFittingSmoother'
105 hltMuCtfTracks.Propagator = 'PropagatorWithMaterial'
106 
107 hltMuTrackJpsiCtfTracks = RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cfi.ctfWithMaterialTracks.clone()
108 hltMuTrackJpsiCtfTracks.src = 'hltMuTrackJpsiCkfTrackCandidates'
109 hltMuTrackJpsiCtfTracks.TTRHBuilder = 'WithoutRefit'
110 hltMuTrackJpsiCtfTracks.Fitter = 'KFFittingSmoother'
111 hltMuTrackJpsiCtfTracks.Propagator = 'PropagatorWithMaterial'
112 
113 hltMuTrackJpsiEffCtfTracks = RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cfi.ctfWithMaterialTracks.clone()
114 hltMuTrackJpsiEffCtfTracks.src = 'hltMuTrackJpsiEffCkfTrackCandidates'
115 hltMuTrackJpsiEffCtfTracks.TTRHBuilder = 'WithoutRefit'
116 hltMuTrackJpsiEffCtfTracks.Fitter = 'KFFittingSmoother'
117 hltMuTrackJpsiEffCtfTracks.Propagator = 'PropagatorWithMaterial'
118 
119 hltMuTrackCtfTracksOnia = RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cfi.ctfWithMaterialTracks.clone()
120 hltMuTrackCtfTracksOnia.src = 'hltMuTrackCkfTrackCandidatesOnia'
121 hltMuTrackCtfTracksOnia.TTRHBuilder = 'WithoutRefit'
122 hltMuTrackCtfTracksOnia.Fitter = 'KFFittingSmoother'
123 hltMuTrackCtfTracksOnia.Propagator = 'PropagatorWithMaterial'
124 
125 #hltMuTrackSeedsSequence = cms.Sequence(globalPixelTracking+
126 # cms.SequencePlaceholder("hltMuTrackSeeds"))
127 #
128 #HLTMuTrackingSequence = cms.Sequence(hltMuCkfTrackCandidates+
129 # hltMuCtfTracks+
130 # cms.SequencePlaceholder("hltMuTracking"))
131 
132 
133 # L3 muon isolation sequence
135 HLTRegionalCKFTracksForL3Isolation = cms.Sequence( hltPixelTracks)
136 
Make one TrackCand for each seeder.