4 import FWCore.ParameterSet.Config
as cms
16 import Validation.RecoMuon.MuonTrackValidator_cfi
17 MTV = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
23 MTV.label_tp = (
"TPmu")
24 MTV.label_tp_refvector =
True
25 MTV.muonTPSelector.src = (
"TPmu")
28 trkMuonTrackVTrackAssoc = MTV.clone()
29 trkMuonTrackVTrackAssoc.associatormap =
'tpToTkmuTrackAssociation'
30 trkMuonTrackVTrackAssoc.associators = (
'trackAssociatorByHits',)
32 trkMuonTrackVTrackAssoc.label = (
'probeTracks',)
33 trkMuonTrackVTrackAssoc.label_tp = (
"TPtrack")
34 trkMuonTrackVTrackAssoc.muonTPSelector.src = (
"TPtrack")
35 trkMuonTrackVTrackAssoc.muonHistoParameters = trkMuonHistoParameters
39 trkProbeTrackVMuonAssoc = MTV.clone()
40 trkProbeTrackVMuonAssoc.associatormap =
'tpToTkMuonAssociation'
42 trkProbeTrackVMuonAssoc.label = (
'probeTracks',)
43 trkProbeTrackVMuonAssoc.label_tp = (
"TPtrack")
44 trkProbeTrackVMuonAssoc.muonTPSelector.src = (
"TPtrack")
45 trkProbeTrackVMuonAssoc.muonHistoParameters = trkMuonHistoParameters
47 staSeedTrackVMuonAssoc = MTV.clone()
48 staSeedTrackVMuonAssoc.associatormap =
'tpToStaSeedAssociation'
49 staSeedTrackVMuonAssoc.label = (
'seedsOfSTAmuons',)
50 staSeedTrackVMuonAssoc.muonHistoParameters = staSeedMuonHistoParameters
52 staMuonTrackVMuonAssoc = MTV.clone()
53 staMuonTrackVMuonAssoc.associatormap =
'tpToStaMuonAssociation'
54 staMuonTrackVMuonAssoc.label = (
'standAloneMuons',)
55 staMuonTrackVMuonAssoc.muonHistoParameters = staMuonHistoParameters
57 staUpdMuonTrackVMuonAssoc = MTV.clone()
58 staUpdMuonTrackVMuonAssoc.associatormap =
'tpToStaUpdMuonAssociation'
59 staUpdMuonTrackVMuonAssoc.label = (
'standAloneMuons:UpdatedAtVtx',)
60 staUpdMuonTrackVMuonAssoc.muonHistoParameters = staUpdMuonHistoParameters
62 glbMuonTrackVMuonAssoc = MTV.clone()
63 glbMuonTrackVMuonAssoc.associatormap =
'tpToGlbMuonAssociation'
64 glbMuonTrackVMuonAssoc.label = (
'globalMuons',)
65 glbMuonTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
67 staRefitMuonTrackVMuonAssoc = MTV.clone()
68 staRefitMuonTrackVMuonAssoc.associatormap =
'tpToStaRefitMuonAssociation'
69 staRefitMuonTrackVMuonAssoc.label = (
'refittedStandAloneMuons',)
70 staRefitMuonTrackVMuonAssoc.muonHistoParameters = staMuonHistoParameters
72 staRefitUpdMuonTrackVMuonAssoc = MTV.clone()
73 staRefitUpdMuonTrackVMuonAssoc.associatormap =
'tpToStaRefitUpdMuonAssociation'
74 staRefitUpdMuonTrackVMuonAssoc.label = (
'refittedStandAloneMuons:UpdatedAtVtx',)
75 staRefitUpdMuonTrackVMuonAssoc.muonHistoParameters = staUpdMuonHistoParameters
77 displacedTrackVMuonAssoc = MTV.clone()
78 displacedTrackVMuonAssoc.associatormap =
'tpToDisplacedTrkMuonAssociation'
79 displacedTrackVMuonAssoc.label = (
'displacedTracks',)
80 displacedTrackVMuonAssoc.label_tp = (
"TPtrack")
81 displacedTrackVMuonAssoc.muonTPSelector = displacedMuonTPSet
82 displacedTrackVMuonAssoc.muonTPSelector.src = (
"TPtrack")
83 displacedTrackVMuonAssoc.muonHistoParameters = displacedTrkMuonHistoParameters
85 displacedStaSeedTrackVMuonAssoc = MTV.clone()
86 displacedStaSeedTrackVMuonAssoc.associatormap =
'tpToDisplacedStaSeedAssociation'
87 displacedStaSeedTrackVMuonAssoc.label = (
'seedsOfDisplacedSTAmuons',)
88 displacedStaSeedTrackVMuonAssoc.muonTPSelector = displacedMuonTPSet
89 displacedStaSeedTrackVMuonAssoc.muonTPSelector.src = (
"TPmu")
90 displacedStaSeedTrackVMuonAssoc.muonHistoParameters = displacedStaSeedMuonHistoParameters
92 displacedStaMuonTrackVMuonAssoc = MTV.clone()
93 displacedStaMuonTrackVMuonAssoc.associatormap =
'tpToDisplacedStaMuonAssociation'
94 displacedStaMuonTrackVMuonAssoc.label = (
'displacedStandAloneMuons',)
95 displacedStaMuonTrackVMuonAssoc.muonTPSelector = displacedMuonTPSet
96 displacedStaMuonTrackVMuonAssoc.muonTPSelector.src = (
"TPmu")
97 displacedStaMuonTrackVMuonAssoc.muonHistoParameters = displacedStaMuonHistoParameters
99 displacedGlbMuonTrackVMuonAssoc = MTV.clone()
100 displacedGlbMuonTrackVMuonAssoc.associatormap =
'tpToDisplacedGlbMuonAssociation'
101 displacedGlbMuonTrackVMuonAssoc.label = (
'displacedGlobalMuons',)
102 displacedGlbMuonTrackVMuonAssoc.muonTPSelector = displacedMuonTPSet
103 displacedGlbMuonTrackVMuonAssoc.muonTPSelector.src = (
"TPmu")
104 displacedGlbMuonTrackVMuonAssoc.muonHistoParameters = displacedGlbMuonHistoParameters
106 tevMuonFirstTrackVMuonAssoc = MTV.clone()
107 tevMuonFirstTrackVMuonAssoc.associatormap =
'tpToTevFirstMuonAssociation'
108 tevMuonFirstTrackVMuonAssoc.label = (
'tevMuons:firstHit',)
109 tevMuonFirstTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
111 tevMuonPickyTrackVMuonAssoc = MTV.clone()
112 tevMuonPickyTrackVMuonAssoc.associatormap =
'tpToTevPickyMuonAssociation'
113 tevMuonPickyTrackVMuonAssoc.label = (
'tevMuons:picky',)
114 tevMuonPickyTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
116 tevMuonDytTrackVMuonAssoc = MTV.clone()
117 tevMuonDytTrackVMuonAssoc.associatormap =
'tpToTevDytMuonAssociation'
118 tevMuonDytTrackVMuonAssoc.label = (
'tevMuons:dyt',)
119 tevMuonDytTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
121 tunepMuonTrackVMuonAssoc = MTV.clone()
122 tunepMuonTrackVMuonAssoc.associatormap =
'tpToTunePMuonAssociation'
123 tunepMuonTrackVMuonAssoc.label = (
'tunepMuonTracks',)
124 tunepMuonTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
126 pfMuonTrackVMuonAssoc = MTV.clone()
127 pfMuonTrackVMuonAssoc.associatormap =
'tpToPFMuonAssociation'
128 pfMuonTrackVMuonAssoc.label = (
'pfMuonTracks',)
129 pfMuonTrackVMuonAssoc.label_tp = (
"TPpfmu")
130 pfMuonTrackVMuonAssoc.muonTPSelector.src = (
"TPpfmu")
131 pfMuonTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
133 recomuMuonTrackVMuonAssoc = MTV.clone()
134 recomuMuonTrackVMuonAssoc.associatormap =
'tpTorecoMuonMuonAssociation'
135 recomuMuonTrackVMuonAssoc.label = (
'recoMuonTracks',)
136 recomuMuonTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
138 gemMuonTrackVMuonAssoc = MTV.clone()
139 gemMuonTrackVMuonAssoc.associatormap =
'tpToGEMMuonMuonAssociation'
140 gemMuonTrackVMuonAssoc.label = (
'extractGemMuons',)
141 gemMuonTrackVMuonAssoc.muonHistoParameters = gemMuonHistoParameters
143 me0MuonTrackVMuonAssoc = MTV.clone()
144 me0MuonTrackVMuonAssoc.associatormap =
'tpToME0MuonMuonAssociation'
145 me0MuonTrackVMuonAssoc.label = (
'extractMe0Muons',)
146 me0MuonTrackVMuonAssoc.muonTPSelector = me0MuonTPSet
147 me0MuonTrackVMuonAssoc.muonTPSelector.src = (
"TPmu")
148 me0MuonTrackVMuonAssoc.muonHistoParameters = me0MuonHistoParameters
151 MTVcosmic = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
156 MTVcosmic.parametersDefiner = cms.string(
'CosmicParametersDefinerForTP')
157 MTVcosmic.muonTPSelector = cosmicMuonTPSet
161 trkCosmicMuonTrackVSelMuonAssoc = MTVcosmic.clone()
162 trkCosmicMuonTrackVSelMuonAssoc.associatormap =
'tpToTkCosmicSelMuonAssociation'
163 trkCosmicMuonTrackVSelMuonAssoc.label = (
'ctfWithMaterialTracksP5LHCNavigation',)
164 trkCosmicMuonTrackVSelMuonAssoc.BiDirectional_RecoToSim_association =
False
165 trkCosmicMuonTrackVSelMuonAssoc.muonHistoParameters = trkCosmicMuonHistoParameters
167 staCosmicMuonTrackVSelMuonAssoc = MTVcosmic.clone()
168 staCosmicMuonTrackVSelMuonAssoc.associatormap =
'tpToStaCosmicSelMuonAssociation'
169 staCosmicMuonTrackVSelMuonAssoc.label = (
'cosmicMuons',)
170 staCosmicMuonTrackVSelMuonAssoc.BiDirectional_RecoToSim_association =
False
171 staCosmicMuonTrackVSelMuonAssoc.muonHistoParameters = staCosmicMuonHistoParameters
173 glbCosmicMuonTrackVSelMuonAssoc = MTVcosmic.clone()
174 glbCosmicMuonTrackVSelMuonAssoc.associatormap =
'tpToGlbCosmicSelMuonAssociation'
175 glbCosmicMuonTrackVSelMuonAssoc.label = (
'globalCosmicMuons',)
176 glbCosmicMuonTrackVSelMuonAssoc.BiDirectional_RecoToSim_association =
False
177 glbCosmicMuonTrackVSelMuonAssoc.muonHistoParameters = glbCosmicMuonHistoParameters
180 trkCosmic1LegMuonTrackVSelMuonAssoc = MTVcosmic.clone()
181 trkCosmic1LegMuonTrackVSelMuonAssoc.associatormap =
'tpToTkCosmic1LegSelMuonAssociation'
182 trkCosmic1LegMuonTrackVSelMuonAssoc.label = (
'ctfWithMaterialTracksP5',)
183 trkCosmic1LegMuonTrackVSelMuonAssoc.muonHistoParameters = trkCosmic1LegMuonHistoParameters
185 staCosmic1LegMuonTrackVSelMuonAssoc = MTVcosmic.clone()
186 staCosmic1LegMuonTrackVSelMuonAssoc.associatormap =
'tpToStaCosmic1LegSelMuonAssociation'
187 staCosmic1LegMuonTrackVSelMuonAssoc.label = (
'cosmicMuons1Leg',)
188 staCosmic1LegMuonTrackVSelMuonAssoc.muonHistoParameters = staCosmic1LegMuonHistoParameters
190 glbCosmic1LegMuonTrackVSelMuonAssoc = MTVcosmic.clone()
191 glbCosmic1LegMuonTrackVSelMuonAssoc.associatormap =
'tpToGlbCosmic1LegSelMuonAssociation'
192 glbCosmic1LegMuonTrackVSelMuonAssoc.label = (
'globalCosmicMuons1Leg',)
193 glbCosmic1LegMuonTrackVSelMuonAssoc.muonHistoParameters = glbCosmic1LegMuonHistoParameters
200 trkMuonTrackVTrackAssoc_phase2 = trkMuonTrackVTrackAssoc.clone()
201 trkMuonTrackVTrackAssoc_phase2.muonHistoParameters = trkMuonHistoParameters_phase2
203 trkProbeTrackVMuonAssoc_phase2 = trkProbeTrackVMuonAssoc.clone()
204 trkProbeTrackVMuonAssoc_phase2.muonHistoParameters = trkMuonHistoParameters_phase2
206 staSeedTrackVMuonAssoc_phase2 = staSeedTrackVMuonAssoc.clone()
207 staSeedTrackVMuonAssoc_phase2.muonHistoParameters = staSeedMuonHistoParameters
209 staMuonTrackVMuonAssoc_phase2 = staMuonTrackVMuonAssoc.clone()
210 staMuonTrackVMuonAssoc_phase2.muonHistoParameters = staMuonHistoParameters_phase2
212 staUpdMuonTrackVMuonAssoc_phase2 = staUpdMuonTrackVMuonAssoc.clone()
213 staUpdMuonTrackVMuonAssoc_phase2.muonHistoParameters = staUpdMuonHistoParameters_phase2
215 glbMuonTrackVMuonAssoc_phase2 = glbMuonTrackVMuonAssoc.clone()
216 glbMuonTrackVMuonAssoc_phase2.muonHistoParameters = glbMuonHistoParameters_phase2
218 pfMuonTrackVMuonAssoc_phase2 = pfMuonTrackVMuonAssoc.clone()
219 pfMuonTrackVMuonAssoc_phase2.muonHistoParameters = glbMuonHistoParameters_phase2
221 recomuMuonTrackVMuonAssoc_phase2 = recomuMuonTrackVMuonAssoc.clone()
222 recomuMuonTrackVMuonAssoc_phase2.muonHistoParameters = recoMuonHistoParameters_phase2
224 tunepMuonTrackVMuonAssoc_phase2 = tunepMuonTrackVMuonAssoc.clone()
225 tunepMuonTrackVMuonAssoc_phase2.muonHistoParameters = glbMuonHistoParameters_phase2
227 displacedStaMuonTrackVMuonAssoc_phase2 = displacedStaMuonTrackVMuonAssoc.clone()
228 displacedStaMuonTrackVMuonAssoc_phase2.muonHistoParameters = displacedStaMuonHistoParameters_phase2
230 displacedGlbMuonTrackVMuonAssoc_phase2 = displacedGlbMuonTrackVMuonAssoc.clone()
231 displacedGlbMuonTrackVMuonAssoc_phase2.muonHistoParameters = displacedGlbMuonHistoParameters_phase2
233 displacedTrackVMuonAssoc_phase2 = displacedTrackVMuonAssoc.clone()
234 displacedTrackVMuonAssoc_phase2.muonHistoParameters = displacedTrkMuonHistoParameters_phase2
236 gemMuonTrackVMuonAssoc_phase2 = gemMuonTrackVMuonAssoc.clone()
237 gemMuonTrackVMuonAssoc_phase2.muonHistoParameters = gemMuonHistoParameters_phase2
243 muonValidation_seq = cms.Sequence(
244 probeTracks_seq + tpToTkMuonAssociation + trkProbeTrackVMuonAssoc
245 +trackAssociatorByHits + tpToTkmuTrackAssociation + trkMuonTrackVTrackAssoc
246 +seedsOfSTAmuons_seq + tpToStaSeedAssociation + staSeedTrackVMuonAssoc
247 +tpToStaMuonAssociation + staMuonTrackVMuonAssoc
248 +tpToStaUpdMuonAssociation + staUpdMuonTrackVMuonAssoc
249 +tpToGlbMuonAssociation + glbMuonTrackVMuonAssoc
250 +pfMuonTracks_seq + tpToPFMuonAssociation + pfMuonTrackVMuonAssoc
251 +recoMuonTracks_seq + tpTorecoMuonMuonAssociation + recomuMuonTrackVMuonAssoc
254 muonValidation_noTABH_seq = cms.Sequence(
255 probeTracks_seq + tpToTkMuonAssociation + trkProbeTrackVMuonAssoc
256 +seedsOfSTAmuons_seq + tpToStaSeedAssociation + staSeedTrackVMuonAssoc
257 +tpToStaMuonAssociation + staMuonTrackVMuonAssoc
258 +tpToStaUpdMuonAssociation + staUpdMuonTrackVMuonAssoc
259 +tpToGlbMuonAssociation + glbMuonTrackVMuonAssoc
260 +pfMuonTracks_seq + tpToPFMuonAssociation + pfMuonTrackVMuonAssoc
261 +recoMuonTracks_seq + tpTorecoMuonMuonAssociation + recomuMuonTrackVMuonAssoc
264 muonValidationTEV_seq = cms.Sequence(
265 tpToTevFirstMuonAssociation + tevMuonFirstTrackVMuonAssoc
266 +tpToTevPickyMuonAssociation + tevMuonPickyTrackVMuonAssoc
267 +tpToTevDytMuonAssociation + tevMuonDytTrackVMuonAssoc
268 +tunepMuonTracks_seq + tpToTunePMuonAssociation + tunepMuonTrackVMuonAssoc
271 muonValidationRefit_seq = cms.Sequence(
272 tpToStaRefitMuonAssociation + staRefitMuonTrackVMuonAssoc
273 +tpToStaRefitUpdMuonAssociation + staRefitUpdMuonTrackVMuonAssoc
276 muonValidationDisplaced_seq = cms.Sequence(
277 seedsOfDisplacedSTAmuons_seq + tpToDisplacedStaSeedAssociation + displacedStaSeedTrackVMuonAssoc
278 +tpToDisplacedStaMuonAssociation + displacedStaMuonTrackVMuonAssoc
279 +tpToDisplacedTrkMuonAssociation + displacedTrackVMuonAssoc
280 +tpToDisplacedGlbMuonAssociation + displacedGlbMuonTrackVMuonAssoc
283 recoMuonValidation_reduced_seq = cms.Sequence(
284 probeTracks_seq + tpToTkMuonAssociation + trkProbeTrackVMuonAssoc_phase2
285 +tpToStaUpdMuonAssociation + staUpdMuonTrackVMuonAssoc_phase2
286 +tpToGlbMuonAssociation + glbMuonTrackVMuonAssoc_phase2
287 +tunepMuonTracks_seq + tpToTunePMuonAssociation + tunepMuonTrackVMuonAssoc_phase2
288 +pfMuonTracks_seq + tpToPFMuonAssociation + pfMuonTrackVMuonAssoc_phase2
289 +recoMuonTracks_seq + tpTorecoMuonMuonAssociation + recomuMuonTrackVMuonAssoc_phase2
290 +tpToDisplacedStaMuonAssociation + displacedStaMuonTrackVMuonAssoc_phase2
291 +tpToDisplacedTrkMuonAssociation + displacedTrackVMuonAssoc_phase2
292 +tpToDisplacedGlbMuonAssociation + displacedGlbMuonTrackVMuonAssoc_phase2
295 muonValidationCosmic_seq = cms.Sequence(
296 tpToTkCosmicSelMuonAssociation + trkCosmicMuonTrackVSelMuonAssoc
297 +tpToTkCosmic1LegSelMuonAssociation + trkCosmic1LegMuonTrackVSelMuonAssoc
298 +tpToStaCosmicSelMuonAssociation + staCosmicMuonTrackVSelMuonAssoc
299 +tpToStaCosmic1LegSelMuonAssociation + staCosmic1LegMuonTrackVSelMuonAssoc
300 +tpToGlbCosmicSelMuonAssociation + glbCosmicMuonTrackVSelMuonAssoc
301 +tpToGlbCosmic1LegSelMuonAssociation + glbCosmic1LegMuonTrackVSelMuonAssoc
304 gemMuonValidation = cms.Sequence(extractGemMuonsTracks_seq + tpToGEMMuonMuonAssociation + gemMuonTrackVMuonAssoc)
305 me0MuonValidation = cms.Sequence(extractMe0MuonsTracks_seq + tpToME0MuonMuonAssociation + me0MuonTrackVMuonAssoc)
307 gemMuonValidation_phase2 = cms.Sequence(extractGemMuonsTracks_seq + tpToGEMMuonMuonAssociation + gemMuonTrackVMuonAssoc_phase2)
312 recoMuonValidation = cms.Sequence( TPtrack_seq + TPmu_seq + TPpfmu_seq +
313 muonValidation_seq + muonValidationTEV_seq + muonValidationRefit_seq + muonValidationDisplaced_seq + muonValidationRMV_seq
317 recoMuonValidation_noTABH = cms.Sequence( TPtrack_seq + TPmu_seq + TPpfmu_seq +
318 muonValidation_noTABH_seq + muonValidationTEV_seq + muonValidationRefit_seq + muonValidationDisplaced_seq + muonValidationRMV_seq
322 recoMuonValidation_noTABH_noDisplaced = cms.Sequence( TPtrack_seq + TPmu_seq + TPpfmu_seq +
323 muonValidation_noTABH_seq + muonValidationTEV_seq + muonValidationRefit_seq + muonValidationRMV_seq
327 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
328 fastSim.toReplaceWith(recoMuonValidation, cms.Sequence(cms.SequencePlaceholder(
"TPtrack") + cms.SequencePlaceholder(
"TPmu") + cms.SequencePlaceholder(
"TPpfmu") + muonValidation_seq + muonValidationTEV_seq + muonValidationRefit_seq + muonValidationRMV_seq))
331 recoCosmicMuonValidation = cms.Sequence(
332 muonValidationCosmic_seq
337 _run3_muonValidation = recoMuonValidation.copy()
338 _run3_muonValidation += gemMuonValidation
340 _phase2_muonValidation = cms.Sequence(TPtrack_seq + TPmu_seq + TPpfmu_seq + recoMuonValidation_reduced_seq)
341 _phase2_muonValidation += gemMuonValidation_phase2
342 _phase2_muonValidation += me0MuonValidation
344 _phase2_ge0_muonValidation = cms.Sequence(TPtrack_seq + TPmu_seq + TPpfmu_seq + recoMuonValidation_reduced_seq)
345 _phase2_ge0_muonValidation += gemMuonValidation_phase2
347 from Configuration.Eras.Modifier_run3_GEM_cff
import run3_GEM
348 run3_GEM.toReplaceWith( recoMuonValidation, _run3_muonValidation )
349 from Configuration.Eras.Modifier_phase2_muon_cff
import phase2_muon
350 phase2_muon.toReplaceWith( recoMuonValidation, _phase2_muonValidation )
351 from Configuration.Eras.Modifier_phase2_GE0_cff
import phase2_GE0
352 phase2_GE0.toReplaceWith( recoMuonValidation, _phase2_ge0_muonValidation )