CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
associators_cff.py
Go to the documentation of this file.
2 
3 #Track selector
5 
6 #TrackAssociation
10 
11 TrackAssociatorByHits = SimTracker.TrackAssociation.quickTrackAssociatorByHits_cfi.quickTrackAssociatorByHits.clone( ComponentName = 'TrackAssociatorByHits' )
12 
13 OnlineTrackAssociatorByHits = SimTracker.TrackAssociation.quickTrackAssociatorByHits_cfi.quickTrackAssociatorByHits.clone()
14 OnlineTrackAssociatorByHits.ComponentName = 'OnlineTrackAssociatorByHits'
15 OnlineTrackAssociatorByHits.UseGrouped = cms.bool(False)
16 OnlineTrackAssociatorByHits.UseSplitting = cms.bool(False)
17 OnlineTrackAssociatorByHits.ThreeHitTracksAreSpecial = False
18 
19 TrackAssociatorByPosDeltaR = SimTracker.TrackAssociation.TrackAssociatorByPosition_cfi.TrackAssociatorByPosition.clone()
20 TrackAssociatorByPosDeltaR.ComponentName = 'TrackAssociatorByDeltaR'
21 TrackAssociatorByPosDeltaR.method = cms.string('momdr')
22 TrackAssociatorByPosDeltaR.QCut = cms.double(0.5)
23 TrackAssociatorByPosDeltaR.ConsiderAllSimHits = cms.bool(True)
24 
25 #
26 # Configuration for Muon track extractor
27 #
28 
29 import SimMuon.MCTruth.MuonTrackProducer_cfi
30 extractedGlobalMuons = SimMuon.MCTruth.MuonTrackProducer_cfi.muonTrackProducer.clone()
31 extractedGlobalMuons.selectionTags = ('AllGlobalMuons',)
32 extractedGlobalMuons.trackType = "globalTrack"
33 extractedMuonTracks_seq = cms.Sequence( extractedGlobalMuons )
34 
35 #
36 # Configuration for Seed track extractor
37 #
38 
39 import SimMuon.MCTruth.SeedToTrackProducer_cfi
40 seedsOfSTAmuons = SimMuon.MCTruth.SeedToTrackProducer_cfi.SeedToTrackProducer.clone()
41 seedsOfSTAmuons.L2seedsCollection = cms.InputTag("ancientMuonSeed")
42 seedsOfSTAmuons_seq = cms.Sequence( seedsOfSTAmuons )
43 
44 # select probe tracks
45 import PhysicsTools.RecoAlgos.recoTrackSelector_cfi
46 probeTracks = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
47 probeTracks.quality = cms.vstring('highPurity')
48 probeTracks.tip = cms.double(3.5)
49 probeTracks.lip = cms.double(30.)
50 probeTracks.ptMin = cms.double(4.0)
51 probeTracks.minRapidity = cms.double(-2.4)
52 probeTracks.maxRapidity = cms.double(2.4)
53 probeTracks_seq = cms.Sequence( probeTracks )
54 
55 #
56 # Associators for Full Sim + Reco:
57 #
58 
59 tpToTkmuTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
60  associator = cms.string('TrackAssociatorByHits'),
61  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
62 # label_tr = cms.InputTag('generalTracks')
63  label_tr = cms.InputTag('probeTracks')
64 )
65 
66 tpToStaTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
67  associator = cms.string('TrackAssociatorByDeltaR'),
68  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
69  label_tr = cms.InputTag('standAloneMuons','')
70 )
71 
72 tpToStaUpdTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
73  associator = cms.string('TrackAssociatorByDeltaR'),
74  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
75  label_tr = cms.InputTag('standAloneMuons','UpdatedAtVtx')
76 )
77 
78 tpToGlbTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
79  associator = cms.string('TrackAssociatorByDeltaR'),
80  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
81  label_tr = cms.InputTag('extractedGlobalMuons')
82 )
83 
84 tpToStaSETTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
85  associator = cms.string('TrackAssociatorByDeltaR'),
86  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
87  label_tr = cms.InputTag('standAloneSETMuons','')
88 )
89 
90 tpToStaSETUpdTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
91  associator = cms.string('TrackAssociatorByDeltaR'),
92  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
93  label_tr = cms.InputTag('standAloneSETMuons','UpdatedAtVtx')
94 )
95 
96 tpToGlbSETTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
97  associator = cms.string('TrackAssociatorByDeltaR'),
98  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
99  label_tr = cms.InputTag('globalSETMuons')
100 )
101 
102 tpToTevFirstTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
103  associator = cms.string('TrackAssociatorByDeltaR'),
104  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
105  label_tr = cms.InputTag('tevMuons','firstHit')
106 )
107 
108 tpToTevPickyTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
109  associator = cms.string('TrackAssociatorByDeltaR'),
110  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
111  label_tr = cms.InputTag('tevMuons','picky')
112 )
113 tpToTevDytTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
114  associator = cms.string('TrackAssociatorByDeltaR'),
115  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
116  label_tr = cms.InputTag('tevMuons','dyt')
117 )
118 
119 tpToL2TrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
120  ignoremissingtrackcollection=cms.untracked.bool(True),
121  associator = cms.string('TrackAssociatorByDeltaR'),
122  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
123  label_tr = cms.InputTag('hltL2Muons','')
124 )
125 
126 tpToL2UpdTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
127  ignoremissingtrackcollection=cms.untracked.bool(True),
128  associator = cms.string('TrackAssociatorByDeltaR'),
129  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
130  label_tr = cms.InputTag('hltL2Muons','UpdatedAtVtx')
131 )
132 
133 tpToL3TrackAssociation = cms.EDProducer("TrackAssociatorEDProducer",
134  ignoremissingtrackcollection=cms.untracked.bool(True),
135  associator = cms.string('TrackAssociatorByDeltaR'),
136  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
137  label_tr = cms.InputTag('hltL3Muons')
138 )
139 
140 tpToL3TkTrackTrackAssociation = cms.EDProducer("TrackAssociatorEDProducer",
141  ignoremissingtrackcollection=cms.untracked.bool(True),
142  associator = cms.string('OnlineTrackAssociatorByHits'),
143  label_tp = cms.InputTag('mix','MergedTrackTruth'),
144  label_tr = cms.InputTag('hltL3TkTracksFromL2','')
145 )
146 
147 tpToL3L2TrackTrackAssociation = cms.EDProducer("TrackAssociatorEDProducer",
148  ignoremissingtrackcollection=cms.untracked.bool(True),
149  associator = cms.string('OnlineTrackAssociatorByHits'),
150  label_tp = cms.InputTag('mix','MergedTrackTruth'),
151  label_tr = cms.InputTag('hltL3Muons:L2Seeded')
152 )
153 
154 
155 
156 #MuonAssociation
157 import SimMuon.MCTruth.MuonAssociatorByHits_cfi
158 
159 tpToTkMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
160 tpToStaSeedAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
161 tpToStaMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
162 tpToStaUpdMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
163 tpToGlbMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
164 tpToStaRefitMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
165 tpToStaRefitUpdMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
166 tpToStaSETMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
167 tpToStaSETUpdMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
168 tpToGlbSETMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
169 tpToTevFirstMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
170 tpToTevPickyMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
171 tpToTevDytMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
172 tpToL3TkMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
173 tpToL2MuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
174 tpToL2UpdMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
175 tpToL3MuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
176 
177 tpToTkMuonAssociation.tpTag = 'mix:MergedTrackTruth'
178 #tpToTkMuonAssociation.tracksTag = 'generalTracks'
179 tpToTkMuonAssociation.tracksTag = 'probeTracks'
180 tpToTkMuonAssociation.UseTracker = True
181 tpToTkMuonAssociation.UseMuon = False
182 
183 tpToStaSeedAssociation.tpTag = 'mix:MergedTrackTruth'
184 tpToStaSeedAssociation.tracksTag = 'seedsOfSTAmuons'
185 tpToStaSeedAssociation.UseTracker = False
186 tpToStaSeedAssociation.UseMuon = True
187 
188 
189 tpToStaMuonAssociation.tpTag = 'mix:MergedTrackTruth'
190 tpToStaMuonAssociation.tracksTag = 'standAloneMuons'
191 tpToStaMuonAssociation.UseTracker = False
192 tpToStaMuonAssociation.UseMuon = True
193 
194 tpToStaUpdMuonAssociation.tpTag = 'mix:MergedTrackTruth'
195 tpToStaUpdMuonAssociation.tracksTag = 'standAloneMuons:UpdatedAtVtx'
196 tpToStaUpdMuonAssociation.UseTracker = False
197 tpToStaUpdMuonAssociation.UseMuon = True
198 
199 tpToGlbMuonAssociation.tpTag = 'mix:MergedTrackTruth'
200 tpToGlbMuonAssociation.tracksTag = 'extractedGlobalMuons'
201 tpToGlbMuonAssociation.UseTracker = True
202 tpToGlbMuonAssociation.UseMuon = True
203 
204 tpToStaRefitMuonAssociation.tpTag = 'mix:MergedTrackTruth'
205 tpToStaRefitMuonAssociation.tracksTag = 'refittedStandAloneMuons'
206 tpToStaRefitMuonAssociation.UseTracker = False
207 tpToStaRefitMuonAssociation.UseMuon = True
208 
209 tpToStaRefitUpdMuonAssociation.tpTag = 'mix:MergedTrackTruth'
210 tpToStaRefitUpdMuonAssociation.tracksTag = 'refittedStandAloneMuons:UpdatedAtVtx'
211 tpToStaRefitUpdMuonAssociation.UseTracker = False
212 tpToStaRefitUpdMuonAssociation.UseMuon = True
213 
214 tpToStaSETMuonAssociation.tpTag = 'mix:MergedTrackTruth'
215 tpToStaSETMuonAssociation.tracksTag = 'standAloneSETMuons'
216 tpToStaSETMuonAssociation.UseTracker = False
217 tpToStaSETMuonAssociation.UseMuon = True
218 
219 tpToStaSETUpdMuonAssociation.tpTag = 'mix:MergedTrackTruth'
220 tpToStaSETUpdMuonAssociation.tracksTag = 'standAloneSETMuons:UpdatedAtVtx'
221 tpToStaSETUpdMuonAssociation.UseTracker = False
222 tpToStaSETUpdMuonAssociation.UseMuon = True
223 
224 tpToGlbSETMuonAssociation.tpTag = 'mix:MergedTrackTruth'
225 tpToGlbSETMuonAssociation.tracksTag = 'globalSETMuons'
226 tpToGlbSETMuonAssociation.UseTracker = True
227 tpToGlbSETMuonAssociation.UseMuon = True
228 
229 tpToTevFirstMuonAssociation.tpTag = 'mix:MergedTrackTruth'
230 tpToTevFirstMuonAssociation.tracksTag = 'tevMuons:firstHit'
231 tpToTevFirstMuonAssociation.UseTracker = True
232 tpToTevFirstMuonAssociation.UseMuon = True
233 
234 tpToTevPickyMuonAssociation.tpTag = 'mix:MergedTrackTruth'
235 tpToTevPickyMuonAssociation.tracksTag = 'tevMuons:picky'
236 tpToTevPickyMuonAssociation.UseTracker = True
237 tpToTevPickyMuonAssociation.UseMuon = True
238 
239 tpToTevDytMuonAssociation.tpTag = 'mix:MergedTrackTruth'
240 tpToTevDytMuonAssociation.tracksTag = 'tevMuons:dyt'
241 tpToTevDytMuonAssociation.UseTracker = True
242 tpToTevDytMuonAssociation.UseMuon = True
243 
244 tpToL3TkMuonAssociation.tpTag = 'mix:MergedTrackTruth'
245 tpToL3TkMuonAssociation.tracksTag = 'hltL3TkTracksFromL2'
246 tpToL3TkMuonAssociation.DTrechitTag = 'hltDt1DRecHits'
247 tpToL3TkMuonAssociation.UseTracker = True
248 tpToL3TkMuonAssociation.UseMuon = False
249 tpToL3TkMuonAssociation.ignoreMissingTrackCollection = True
250 tpToL3TkMuonAssociation.UseSplitting = False
251 tpToL3TkMuonAssociation.UseGrouped = False
252 
253 tpToL2MuonAssociation.tpTag = 'mix:MergedTrackTruth'
254 tpToL2MuonAssociation.tracksTag = 'hltL2Muons'
255 tpToL2MuonAssociation.DTrechitTag = 'hltDt1DRecHits'
256 tpToL2MuonAssociation.UseTracker = False
257 tpToL2MuonAssociation.UseMuon = True
258 tpToL2MuonAssociation.ignoreMissingTrackCollection = True
259 
260 tpToL2UpdMuonAssociation.tpTag = 'mix:MergedTrackTruth'
261 tpToL2UpdMuonAssociation.tracksTag = 'hltL2Muons:UpdatedAtVtx'
262 tpToL2UpdMuonAssociation.DTrechitTag = 'hltDt1DRecHits'
263 tpToL2UpdMuonAssociation.UseTracker = False
264 tpToL2UpdMuonAssociation.UseMuon = True
265 tpToL2UpdMuonAssociation.ignoreMissingTrackCollection = True
266 
267 tpToL3MuonAssociation.tpTag = 'mix:MergedTrackTruth'
268 tpToL3MuonAssociation.tracksTag = 'hltL3Muons'
269 tpToL3MuonAssociation.DTrechitTag = 'hltDt1DRecHits'
270 tpToL3MuonAssociation.UseTracker = True
271 tpToL3MuonAssociation.UseMuon = True
272 tpToL3MuonAssociation.ignoreMissingTrackCollection = True
273 tpToL3MuonAssociation.UseSplitting = False
274 tpToL3MuonAssociation.UseGrouped = False
275 
276 #
277 # Associators for cosmics:
278 #
279 
280 tpToTkCosmicTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
281  associator = cms.string('TrackAssociatorByHits'),
282  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
283  label_tr = cms.InputTag('ctfWithMaterialTracksP5LHCNavigation')
284 )
285 
286 tpToStaCosmicTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
287  associator = cms.string('TrackAssociatorByDeltaR'),
288  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
289  label_tr = cms.InputTag('cosmicMuons')
290 )
291 
292 tpToGlbCosmicTrackAssociation = cms.EDProducer('TrackAssociatorEDProducer',
293  associator = cms.string('TrackAssociatorByDeltaR'),
294  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
295  label_tr = cms.InputTag('globalCosmicMuons')
296 )
297 
298 tpToTkCosmicMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
299 tpToStaCosmicMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
300 tpToGlbCosmicMuonAssociation = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
301 
302 tpToTkCosmicMuonAssociation.tpTag = 'mix:MergedTrackTruth'
303 tpToTkCosmicMuonAssociation.tracksTag = 'ctfWithMaterialTracksP5LHCNavigation'
304 tpToTkCosmicMuonAssociation.UseTracker = True
305 tpToTkCosmicMuonAssociation.UseMuon = False
306 
307 tpToStaCosmicMuonAssociation.tpTag = 'mix:MergedTrackTruth'
308 tpToStaCosmicMuonAssociation.tracksTag = 'cosmicMuons'
309 tpToStaCosmicMuonAssociation.UseTracker = False
310 tpToStaCosmicMuonAssociation.UseMuon = True
311 
312 tpToGlbCosmicMuonAssociation.tpTag = 'mix:MergedTrackTruth'
313 tpToGlbCosmicMuonAssociation.tracksTag = 'globalCosmicMuons'
314 tpToGlbCosmicMuonAssociation.UseTracker = True
315 tpToGlbCosmicMuonAssociation.UseMuon = True
316 
317 
318 #
319 # The full-sim association sequences
320 #
321 
322 muonAssociation_seq = cms.Sequence(
323  extractedMuonTracks_seq
324  +seedsOfSTAmuons_seq
325  +probeTracks_seq+(tpToTkMuonAssociation+tpToTkmuTrackAssociation)
326  +(tpToStaSeedAssociation+tpToStaMuonAssociation+tpToStaUpdMuonAssociation+tpToGlbMuonAssociation)
327 # +(tpToStaTrackAssociation+tpToStaUpdTrackAssociation+tpToGlbTrackAssociation)
328 )
329 muonAssociationTEV_seq = cms.Sequence(
330  (tpToTevFirstMuonAssociation+tpToTevPickyMuonAssociation+tpToTevDytMuonAssociation)
331 # +(tpToTevFirstTrackAssociation+tpToTevPickyTrackAssociation)
332 )
333 muonAssociationRefit_seq = cms.Sequence(
334  (tpToStaRefitMuonAssociation+tpToStaRefitUpdMuonAssociation)
335 )
336 muonAssociationSET_seq = cms.Sequence(
337  (tpToStaSETMuonAssociation+tpToStaSETUpdMuonAssociation+tpToGlbSETMuonAssociation)
338 # +(tpToStaSETTrackAssociation+tpToStaSETUpdTrackAssociation+tpToGlbSETTrackAssociation)
339 )
340 muonAssociationCosmic_seq = cms.Sequence(
341  (tpToTkCosmicMuonAssociation+tpToStaCosmicMuonAssociation+tpToGlbCosmicMuonAssociation)
342 # +(tpToTkCosmicTrackAssociation+tpToStaCosmicTrackAssociation+tpToGlbCosmicTrackAssociation)
343 )
344 muonAssociationHLT_seq = cms.Sequence(
345  (tpToL2MuonAssociation+tpToL2UpdMuonAssociation+tpToL3MuonAssociation+tpToL3TkMuonAssociation)
346 # +(tpToL2TrackAssociation+tpToL2UpdTrackAssociation+tpToL3TrackAssociation+tpToL3TkTrackTrackAssociation)
347 )
348 
349 
350 #
351 # Associators for Fast Sim
352 #
353 
354 tpToTkmuTrackAssociationFS = cms.EDProducer('TrackAssociatorEDProducer',
355  associator = cms.string('TrackAssociatorByHits'),
356  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
357 # label_tr = cms.InputTag('generalTracks')
358  label_tr = cms.InputTag('probeTracks')
359 )
360 
361 tpToStaTrackAssociationFS = cms.EDProducer('TrackAssociatorEDProducer',
362  associator = cms.string('TrackAssociatorByDeltaR'),
363  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
364  label_tr = cms.InputTag('standAloneMuons','')
365 )
366 
367 tpToStaUpdTrackAssociationFS = cms.EDProducer('TrackAssociatorEDProducer',
368  associator = cms.string('TrackAssociatorByDeltaR'),
369  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
370  label_tr = cms.InputTag('standAloneMuons','UpdatedAtVtx')
371 )
372 
373 tpToGlbTrackAssociationFS = cms.EDProducer('TrackAssociatorEDProducer',
374  associator = cms.string('TrackAssociatorByDeltaR'),
375  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
376  label_tr = cms.InputTag('extractedGlobalMuons')
377 )
378 
379 tpToTevFirstTrackAssociationFS = cms.EDProducer('TrackAssociatorEDProducer',
380  associator = cms.string('TrackAssociatorByDeltaR'),
381  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
382  label_tr = cms.InputTag('tevMuons','firstHit')
383 )
384 
385 tpToTevPickyTrackAssociationFS = cms.EDProducer('TrackAssociatorEDProducer',
386  associator = cms.string('TrackAssociatorByDeltaR'),
387  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
388  label_tr = cms.InputTag('tevMuons','picky')
389 )
390 
391 tpToTevDytTrackAssociationFS = cms.EDProducer('TrackAssociatorEDProducer',
392  associator = cms.string('TrackAssociatorByDeltaR'),
393  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
394  label_tr = cms.InputTag('tevMuons','dyt')
395 )
396 
397 tpToL2TrackAssociationFS = cms.EDProducer('TrackAssociatorEDProducer',
398  ignoremissingtrackcollection=cms.untracked.bool(True),
399  associator = cms.string('TrackAssociatorByDeltaR'),
400  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
401  label_tr = cms.InputTag('hltL2Muons','')
402 )
403 
404 tpToL2UpdTrackAssociationFS = cms.EDProducer('TrackAssociatorEDProducer',
405  ignoremissingtrackcollection=cms.untracked.bool(True),
406  associator = cms.string('TrackAssociatorByDeltaR'),
407  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
408  label_tr = cms.InputTag('hltL2Muons','UpdatedAtVtx')
409 )
410 
411 tpToL3TrackAssociationFS = cms.EDProducer("TrackAssociatorEDProducer",
412  ignoremissingtrackcollection=cms.untracked.bool(True),
413  associator = cms.string('TrackAssociatorByDeltaR'),
414  label_tp = cms.InputTag('mix', 'MergedTrackTruth'),
415  label_tr = cms.InputTag('hltL3Muons')
416 )
417 
418 tpToL3TkTrackTrackAssociationFS = cms.EDProducer("TrackAssociatorEDProducer",
419  ignoremissingtrackcollection=cms.untracked.bool(True),
420  associator = cms.string('OnlineTrackAssociatorByHits'),
421  label_tp = cms.InputTag('mix','MergedTrackTruth'),
422  label_tr = cms.InputTag('hltL3TkTracksFromL2','')
423 )
424 
425 tpToL3L2TrackTrackAssociationFS = cms.EDProducer("TrackAssociatorEDProducer",
426  ignoremissingtrackcollection=cms.untracked.bool(True),
427  associator = cms.string('OnlineTrackAssociatorByHits'),
428  label_tp = cms.InputTag('mix','MergedTrackTruth'),
429  label_tr = cms.InputTag('hltL3Muons:L2Seeded')
430 )
431 
432 
433 #MuonAssociation
434 import SimMuon.MCTruth.MuonAssociatorByHits_cfi
435 
436 baseMuonAssociatorFS = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
437 baseMuonAssociatorFS.tpTag = 'mix:MergedTrackTruth'
438 baseMuonAssociatorFS.UseTracker = True
439 baseMuonAssociatorFS.UseMuon = True
440 baseMuonAssociatorFS.simtracksTag = "famosSimHits"
441 baseMuonAssociatorFS.DTsimhitsTag = "MuonSimHits:MuonDTHits"
442 baseMuonAssociatorFS.CSCsimHitsTag = "MuonSimHits:MuonCSCHits"
443 baseMuonAssociatorFS.RPCsimhitsTag = "MuonSimHits:MuonRPCHits"
444 baseMuonAssociatorFS.simtracksXFTag = "mix:famosSimHits"
445 baseMuonAssociatorFS.DTsimhitsXFTag = "mix:MuonSimHitsMuonDTHits"
446 baseMuonAssociatorFS.CSCsimHitsXFTag = "mix:MuonSimHitsMuonCSCHits"
447 baseMuonAssociatorFS.RPCsimhitsXFTag = "mix:MuonSimHitsMuonRPCHits"
448 baseMuonAssociatorFS.ROUList = ['famosSimHitsTrackerHits']
449 
450 
451 tpToTkMuonAssociationFS = baseMuonAssociatorFS.clone()
452 tpToStaSeedAssociationFS = baseMuonAssociatorFS.clone()
453 tpToStaMuonAssociationFS = baseMuonAssociatorFS.clone()
454 tpToStaUpdMuonAssociationFS = baseMuonAssociatorFS.clone()
455 tpToStaRefitMuonAssociationFS = baseMuonAssociatorFS.clone()
456 tpToStaRefitUpdMuonAssociationFS = baseMuonAssociatorFS.clone()
457 tpToGlbMuonAssociationFS = baseMuonAssociatorFS.clone()
458 tpToTevFirstMuonAssociationFS = baseMuonAssociatorFS.clone()
459 tpToTevPickyMuonAssociationFS = baseMuonAssociatorFS.clone()
460 tpToTevDytMuonAssociationFS = baseMuonAssociatorFS.clone()
461 tpToL3TkMuonAssociationFS = baseMuonAssociatorFS.clone()
462 tpToL2MuonAssociationFS = baseMuonAssociatorFS.clone()
463 tpToL2UpdMuonAssociationFS = baseMuonAssociatorFS.clone()
464 tpToL3MuonAssociationFS = baseMuonAssociatorFS.clone()
465 
466 #tpToTkMuonAssociationFS.tracksTag = 'generalTracks'
467 tpToTkMuonAssociationFS.tracksTag = 'probeTracks'
468 tpToTkMuonAssociationFS.tpTag = 'mix:MergedTrackTruth'
469 tpToTkMuonAssociationFS.UseTracker = True
470 tpToTkMuonAssociationFS.UseMuon = False
471 
472 tpToStaSeedAssociationFS.tpTag = 'mix:MergedTrackTruth'
473 tpToStaSeedAssociationFS.tracksTag = 'seedsOfSTAmuons'
474 tpToStaSeedAssociationFS.UseTracker = False
475 tpToStaSeedAssociationFS.UseMuon = True
476 
477 tpToStaMuonAssociationFS.tpTag = 'mix:MergedTrackTruth'
478 tpToStaMuonAssociationFS.tracksTag = 'standAloneMuons'
479 tpToStaMuonAssociationFS.UseTracker = False
480 tpToStaMuonAssociationFS.UseMuon = True
481 
482 tpToStaUpdMuonAssociationFS.tracksTag = 'standAloneMuons:UpdatedAtVtx'
483 tpToStaUpdMuonAssociationFS.UseTracker = False
484 tpToStaUpdMuonAssociationFS.UseMuon = True
485 
486 tpToStaRefitMuonAssociationFS.tracksTag = 'refittedStandAloneMuons'
487 tpToStaRefitMuonAssociationFS.UseTracker = False
488 tpToStaRefitMuonAssociationFS.UseMuon = True
489 
490 tpToStaRefitUpdMuonAssociationFS.tracksTag = 'refittedStandAloneMuons:UpdatedAtVtx'
491 tpToStaRefitUpdMuonAssociationFS.UseTracker = False
492 tpToStaRefitUpdMuonAssociationFS.UseMuon = True
493 
494 tpToGlbMuonAssociationFS.tracksTag = 'extractedGlobalMuons'
495 tpToGlbMuonAssociationFS.tpTag = 'mix:MergedTrackTruth'
496 tpToGlbMuonAssociationFS.UseTracker = True
497 tpToGlbMuonAssociationFS.UseMuon = True
498 
499 tpToTevFirstMuonAssociationFS.tracksTag = 'tevMuons:firstHit'
500 tpToTevFirstMuonAssociationFS.tpTag = 'mix:MergedTrackTruth'
501 tpToTevFirstMuonAssociationFS.UseTracker = True
502 tpToTevFirstMuonAssociationFS.UseMuon = True
503 
504 tpToTevPickyMuonAssociationFS.tracksTag = 'tevMuons:picky'
505 tpToTevPickyMuonAssociationFS.tpTag = 'mix:MergedTrackTruth'
506 tpToTevPickyMuonAssociationFS.UseTracker = True
507 tpToTevPickyMuonAssociationFS.UseMuon = True
508 
509 tpToTevDytMuonAssociationFS.tracksTag = 'tevMuons:dyt'
510 tpToTevDytMuonAssociationFS.tpTag = 'mix:MergedTrackTruth'
511 tpToTevDytMuonAssociationFS.UseTracker = True
512 tpToTevDytMuonAssociationFS.UseMuon = True
513 
514 tpToL3TkMuonAssociationFS.tracksTag = 'hltL3TkTracksFromL2'
515 tpToL3TkMuonAssociationFS.tpTag = 'mix:MergedTrackTruth'
516 tpToL3TkMuonAssociationFS.UseTracker = True
517 tpToL3TkMuonAssociationFS.UseMuon = False
518 tpToL3TkMuonAssociationFS.ignoreMissingTrackCollection = True
519 tpToL3TkMuonAssociationFS.UseSplitting = False
520 tpToL3TkMuonAssociationFS.UseGrouped = False
521 
522 tpToL2MuonAssociationFS.tracksTag = 'hltL2Muons'
523 tpToL2MuonAssociationFS.UseTracker = False
524 tpToL2MuonAssociationFS.UseMuon = True
525 tpToL2MuonAssociationFS.ignoreMissingTrackCollection = True
526 
527 tpToL2UpdMuonAssociationFS.tracksTag = 'hltL2Muons:UpdatedAtVtx'
528 tpToL2UpdMuonAssociationFS.UseTracker = False
529 tpToL2UpdMuonAssociationFS.UseMuon = True
530 tpToL2UpdMuonAssociationFS.ignoreMissingTrackCollection = True
531 
532 tpToL3MuonAssociationFS.tracksTag = 'hltL3Muons'
533 tpToL3MuonAssociationFS.tpTag = 'mix:MergedTrackTruth'
534 tpToL3MuonAssociationFS.UseTracker = True
535 tpToL3MuonAssociationFS.UseMuon = True
536 tpToL3MuonAssociationFS.ignoreMissingTrackCollection = True
537 tpToL3MuonAssociationFS.UseSplitting = False
538 tpToL3MuonAssociationFS.UseGrouped = False
539 
540 
541 
542 muonAssociationFastSim_seq = cms.Sequence(
543  extractedMuonTracks_seq
544  +seedsOfSTAmuons_seq
545  +probeTracks+(tpToTkMuonAssociationFS+tpToTkmuTrackAssociationFS)
546  +(tpToStaSeedAssociationFS+tpToStaMuonAssociationFS+tpToStaUpdMuonAssociationFS+tpToGlbMuonAssociationFS)
547  +(tpToStaRefitMuonAssociationFS+tpToStaRefitUpdMuonAssociationFS)
548  +(tpToTevFirstMuonAssociationFS+tpToTevPickyMuonAssociationFS+tpToTevDytMuonAssociationFS)
549 # +tpToStaTrackAssociationFS+tpToStaUpdTrackAssociationFS+tpToGlbTrackAssociationFS
550 # +tpToTevFirstTrackAssociationFS+tpToTevPickyTrackAssociationFS
551  )
552 muonAssociationHLTFastSim_seq = cms.Sequence(
553  tpToL2MuonAssociationFS+tpToL2UpdMuonAssociationFS+tpToL3MuonAssociationFS+tpToL3TkMuonAssociationFS
554 # +tpToL2TrackAssociationFS+tpToL2UpdTrackAssociationFS+tpToL3TrackAssociationFS+tpToL3TkTrackTrackAssociationFS
555  )
556