4 import FWCore.ParameterSet.Config
as cms
13 import Validation.RecoMuon.MuonTrackValidator_cfi
14 MTV = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
20 MTV.label_tp = (
"TPmu")
21 MTV.label_tp_refvector =
True
22 MTV.muonTPSelector.src = (
"TPmu")
25 trkMuonTrackVTrackAssoc = MTV.clone()
26 trkMuonTrackVTrackAssoc.associatormap =
'tpToTkmuTrackAssociation'
27 trkMuonTrackVTrackAssoc.associators = (
'trackAssociatorByHits',)
29 trkMuonTrackVTrackAssoc.label = (
'probeTracks',)
30 trkMuonTrackVTrackAssoc.label_tp = (
"TPtrack")
31 trkMuonTrackVTrackAssoc.muonTPSelector.src = (
"TPtrack")
32 trkMuonTrackVTrackAssoc.muonHistoParameters = trkMuonHistoParameters
36 trkProbeTrackVMuonAssoc = MTV.clone()
37 trkProbeTrackVMuonAssoc.associatormap =
'tpToTkMuonAssociation'
39 trkProbeTrackVMuonAssoc.label = (
'probeTracks',)
40 trkProbeTrackVMuonAssoc.label_tp = (
"TPtrack")
41 trkProbeTrackVMuonAssoc.muonTPSelector.src = (
"TPtrack")
42 trkProbeTrackVMuonAssoc.muonHistoParameters = trkMuonHistoParameters
44 staSeedTrackVMuonAssoc = MTV.clone()
45 staSeedTrackVMuonAssoc.associatormap =
'tpToStaSeedAssociation'
46 staSeedTrackVMuonAssoc.label = (
'seedsOfSTAmuons',)
47 staSeedTrackVMuonAssoc.muonHistoParameters = staSeedMuonHistoParameters
49 staMuonTrackVMuonAssoc = MTV.clone()
50 staMuonTrackVMuonAssoc.associatormap =
'tpToStaMuonAssociation'
51 staMuonTrackVMuonAssoc.label = (
'standAloneMuons',)
52 staMuonTrackVMuonAssoc.muonHistoParameters = staMuonHistoParameters
54 staUpdMuonTrackVMuonAssoc = MTV.clone()
55 staUpdMuonTrackVMuonAssoc.associatormap =
'tpToStaUpdMuonAssociation'
56 staUpdMuonTrackVMuonAssoc.label = (
'standAloneMuons:UpdatedAtVtx',)
57 staUpdMuonTrackVMuonAssoc.muonHistoParameters = staUpdMuonHistoParameters
59 glbMuonTrackVMuonAssoc = MTV.clone()
60 glbMuonTrackVMuonAssoc.associatormap =
'tpToGlbMuonAssociation'
61 glbMuonTrackVMuonAssoc.label = (
'globalMuons',)
62 glbMuonTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
64 staRefitMuonTrackVMuonAssoc = MTV.clone()
65 staRefitMuonTrackVMuonAssoc.associatormap =
'tpToStaRefitMuonAssociation'
66 staRefitMuonTrackVMuonAssoc.label = (
'refittedStandAloneMuons',)
67 staRefitMuonTrackVMuonAssoc.muonHistoParameters = staMuonHistoParameters
69 staRefitUpdMuonTrackVMuonAssoc = MTV.clone()
70 staRefitUpdMuonTrackVMuonAssoc.associatormap =
'tpToStaRefitUpdMuonAssociation'
71 staRefitUpdMuonTrackVMuonAssoc.label = (
'refittedStandAloneMuons:UpdatedAtVtx',)
72 staRefitUpdMuonTrackVMuonAssoc.muonHistoParameters = staUpdMuonHistoParameters
74 displacedTrackVMuonAssoc = MTV.clone()
75 displacedTrackVMuonAssoc.associatormap =
'tpToDisplacedTrkMuonAssociation'
76 displacedTrackVMuonAssoc.label = (
'displacedTracks',)
77 displacedTrackVMuonAssoc.label_tp = (
"TPtrack")
78 displacedTrackVMuonAssoc.muonTPSelector = displacedMuonTPSet
79 displacedTrackVMuonAssoc.muonTPSelector.src = (
"TPtrack")
80 displacedTrackVMuonAssoc.muonHistoParameters = displacedTrkMuonHistoParameters
82 displacedStaSeedTrackVMuonAssoc = MTV.clone()
83 displacedStaSeedTrackVMuonAssoc.associatormap =
'tpToDisplacedStaSeedAssociation'
84 displacedStaSeedTrackVMuonAssoc.label = (
'seedsOfDisplacedSTAmuons',)
85 displacedStaSeedTrackVMuonAssoc.muonTPSelector = displacedMuonTPSet
86 displacedStaSeedTrackVMuonAssoc.muonTPSelector.src = (
"TPmu")
87 displacedStaSeedTrackVMuonAssoc.muonHistoParameters = displacedStaSeedMuonHistoParameters
89 displacedStaMuonTrackVMuonAssoc = MTV.clone()
90 displacedStaMuonTrackVMuonAssoc.associatormap =
'tpToDisplacedStaMuonAssociation'
91 displacedStaMuonTrackVMuonAssoc.label = (
'displacedStandAloneMuons',)
92 displacedStaMuonTrackVMuonAssoc.muonTPSelector = displacedMuonTPSet
93 displacedStaMuonTrackVMuonAssoc.muonTPSelector.src = (
"TPmu")
94 displacedStaMuonTrackVMuonAssoc.muonHistoParameters = displacedStaMuonHistoParameters
96 displacedGlbMuonTrackVMuonAssoc = MTV.clone()
97 displacedGlbMuonTrackVMuonAssoc.associatormap =
'tpToDisplacedGlbMuonAssociation'
98 displacedGlbMuonTrackVMuonAssoc.label = (
'displacedGlobalMuons',)
99 displacedGlbMuonTrackVMuonAssoc.muonTPSelector = displacedMuonTPSet
100 displacedGlbMuonTrackVMuonAssoc.muonTPSelector.src = (
"TPmu")
101 displacedGlbMuonTrackVMuonAssoc.muonHistoParameters = displacedGlbMuonHistoParameters
103 tevMuonFirstTrackVMuonAssoc = MTV.clone()
104 tevMuonFirstTrackVMuonAssoc.associatormap =
'tpToTevFirstMuonAssociation'
105 tevMuonFirstTrackVMuonAssoc.label = (
'tevMuons:firstHit',)
106 tevMuonFirstTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
108 tevMuonPickyTrackVMuonAssoc = MTV.clone()
109 tevMuonPickyTrackVMuonAssoc.associatormap =
'tpToTevPickyMuonAssociation'
110 tevMuonPickyTrackVMuonAssoc.label = (
'tevMuons:picky',)
111 tevMuonPickyTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
113 tevMuonDytTrackVMuonAssoc = MTV.clone()
114 tevMuonDytTrackVMuonAssoc.associatormap =
'tpToTevDytMuonAssociation'
115 tevMuonDytTrackVMuonAssoc.label = (
'tevMuons:dyt',)
116 tevMuonDytTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
118 tunepMuonTrackVMuonAssoc = MTV.clone()
119 tunepMuonTrackVMuonAssoc.associatormap =
'tpToTunePMuonAssociation'
120 tunepMuonTrackVMuonAssoc.label = (
'tunepMuonTracks',)
121 tunepMuonTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
123 pfMuonTrackVMuonAssoc = MTV.clone()
124 pfMuonTrackVMuonAssoc.associatormap =
'tpToPFMuonAssociation'
125 pfMuonTrackVMuonAssoc.label = (
'pfMuonTracks',)
126 pfMuonTrackVMuonAssoc.label_tp = (
"TPpfmu")
127 pfMuonTrackVMuonAssoc.muonTPSelector.src = (
"TPpfmu")
128 pfMuonTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
130 recomuMuonTrackVMuonAssoc = MTV.clone()
131 recomuMuonTrackVMuonAssoc.associatormap =
'tpTorecoMuonMuonAssociation'
132 recomuMuonTrackVMuonAssoc.label = (
'recoMuonTracks',)
133 recomuMuonTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
135 gemMuonTrackVMuonAssoc = MTV.clone()
136 gemMuonTrackVMuonAssoc.associatormap =
'tpToGEMMuonMuonAssociation'
137 gemMuonTrackVMuonAssoc.label = (
'extractGemMuons',)
138 gemMuonTrackVMuonAssoc.muonHistoParameters = gemMuonHistoParameters
140 me0MuonTrackVMuonAssoc = MTV.clone()
141 me0MuonTrackVMuonAssoc.associatormap =
'tpToME0MuonMuonAssociation'
142 me0MuonTrackVMuonAssoc.label = (
'extractMe0Muons',)
143 me0MuonTrackVMuonAssoc.muonTPSelector = me0MuonTPSet
144 me0MuonTrackVMuonAssoc.muonTPSelector.src = (
"TPmu")
145 me0MuonTrackVMuonAssoc.muonHistoParameters = me0MuonHistoParameters
148 MTVcosmic = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
153 MTVcosmic.parametersDefiner = cms.string(
'CosmicParametersDefinerForTP')
154 MTVcosmic.muonTPSelector = cosmicMuonTPSet
158 trkCosmicMuonTrackVSelMuonAssoc = MTVcosmic.clone()
159 trkCosmicMuonTrackVSelMuonAssoc.associatormap =
'tpToTkCosmicSelMuonAssociation'
160 trkCosmicMuonTrackVSelMuonAssoc.label = (
'ctfWithMaterialTracksP5LHCNavigation',)
161 trkCosmicMuonTrackVSelMuonAssoc.BiDirectional_RecoToSim_association =
False
162 trkCosmicMuonTrackVSelMuonAssoc.muonHistoParameters = trkCosmicMuonHistoParameters
164 staCosmicMuonTrackVSelMuonAssoc = MTVcosmic.clone()
165 staCosmicMuonTrackVSelMuonAssoc.associatormap =
'tpToStaCosmicSelMuonAssociation'
166 staCosmicMuonTrackVSelMuonAssoc.label = (
'cosmicMuons',)
167 staCosmicMuonTrackVSelMuonAssoc.BiDirectional_RecoToSim_association =
False
168 staCosmicMuonTrackVSelMuonAssoc.muonHistoParameters = staCosmicMuonHistoParameters
170 glbCosmicMuonTrackVSelMuonAssoc = MTVcosmic.clone()
171 glbCosmicMuonTrackVSelMuonAssoc.associatormap =
'tpToGlbCosmicSelMuonAssociation'
172 glbCosmicMuonTrackVSelMuonAssoc.label = (
'globalCosmicMuons',)
173 glbCosmicMuonTrackVSelMuonAssoc.BiDirectional_RecoToSim_association =
False
174 glbCosmicMuonTrackVSelMuonAssoc.muonHistoParameters = glbCosmicMuonHistoParameters
177 trkCosmic1LegMuonTrackVSelMuonAssoc = MTVcosmic.clone()
178 trkCosmic1LegMuonTrackVSelMuonAssoc.associatormap =
'tpToTkCosmic1LegSelMuonAssociation'
179 trkCosmic1LegMuonTrackVSelMuonAssoc.label = (
'ctfWithMaterialTracksP5',)
180 trkCosmic1LegMuonTrackVSelMuonAssoc.muonHistoParameters = trkCosmic1LegMuonHistoParameters
182 staCosmic1LegMuonTrackVSelMuonAssoc = MTVcosmic.clone()
183 staCosmic1LegMuonTrackVSelMuonAssoc.associatormap =
'tpToStaCosmic1LegSelMuonAssociation'
184 staCosmic1LegMuonTrackVSelMuonAssoc.label = (
'cosmicMuons1Leg',)
185 staCosmic1LegMuonTrackVSelMuonAssoc.muonHistoParameters = staCosmic1LegMuonHistoParameters
187 glbCosmic1LegMuonTrackVSelMuonAssoc = MTVcosmic.clone()
188 glbCosmic1LegMuonTrackVSelMuonAssoc.associatormap =
'tpToGlbCosmic1LegSelMuonAssociation'
189 glbCosmic1LegMuonTrackVSelMuonAssoc.label = (
'globalCosmicMuons1Leg',)
190 glbCosmic1LegMuonTrackVSelMuonAssoc.muonHistoParameters = glbCosmic1LegMuonHistoParameters
197 trkMuonTrackVTrackAssoc_phase2 = trkMuonTrackVTrackAssoc.clone()
198 trkMuonTrackVTrackAssoc_phase2.muonHistoParameters = trkMuonHistoParameters_phase2
200 trkProbeTrackVMuonAssoc_phase2 = trkProbeTrackVMuonAssoc.clone()
201 trkProbeTrackVMuonAssoc_phase2.muonHistoParameters = trkMuonHistoParameters_phase2
203 staSeedTrackVMuonAssoc_phase2 = staSeedTrackVMuonAssoc.clone()
204 staSeedTrackVMuonAssoc_phase2.muonHistoParameters = staSeedMuonHistoParameters
206 staMuonTrackVMuonAssoc_phase2 = staMuonTrackVMuonAssoc.clone()
207 staMuonTrackVMuonAssoc_phase2.muonHistoParameters = staMuonHistoParameters_phase2
209 staUpdMuonTrackVMuonAssoc_phase2 = staUpdMuonTrackVMuonAssoc.clone()
210 staUpdMuonTrackVMuonAssoc_phase2.muonHistoParameters = staUpdMuonHistoParameters_phase2
212 glbMuonTrackVMuonAssoc_phase2 = glbMuonTrackVMuonAssoc.clone()
213 glbMuonTrackVMuonAssoc_phase2.muonHistoParameters = glbMuonHistoParameters_phase2
215 pfMuonTrackVMuonAssoc_phase2 = pfMuonTrackVMuonAssoc.clone()
216 pfMuonTrackVMuonAssoc_phase2.muonHistoParameters = glbMuonHistoParameters_phase2
218 recomuMuonTrackVMuonAssoc_phase2 = recomuMuonTrackVMuonAssoc.clone()
219 recomuMuonTrackVMuonAssoc_phase2.muonHistoParameters = recoMuonHistoParameters_phase2
221 tunepMuonTrackVMuonAssoc_phase2 = tunepMuonTrackVMuonAssoc.clone()
222 tunepMuonTrackVMuonAssoc_phase2.muonHistoParameters = glbMuonHistoParameters_phase2
224 displacedStaMuonTrackVMuonAssoc_phase2 = displacedStaMuonTrackVMuonAssoc.clone()
225 displacedStaMuonTrackVMuonAssoc_phase2.muonHistoParameters = displacedStaMuonHistoParameters_phase2
227 displacedGlbMuonTrackVMuonAssoc_phase2 = displacedGlbMuonTrackVMuonAssoc.clone()
228 displacedGlbMuonTrackVMuonAssoc_phase2.muonHistoParameters = displacedGlbMuonHistoParameters_phase2
230 displacedTrackVMuonAssoc_phase2 = displacedTrackVMuonAssoc.clone()
231 displacedTrackVMuonAssoc_phase2.muonHistoParameters = displacedTrkMuonHistoParameters_phase2
233 gemMuonTrackVMuonAssoc_phase2 = gemMuonTrackVMuonAssoc.clone()
234 gemMuonTrackVMuonAssoc_phase2.muonHistoParameters = gemMuonHistoParameters_phase2
240 muonValidation_seq = cms.Sequence(
241 probeTracks_seq + tpToTkMuonAssociation + trkProbeTrackVMuonAssoc
242 +trackAssociatorByHits + tpToTkmuTrackAssociation + trkMuonTrackVTrackAssoc
243 +seedsOfSTAmuons_seq + tpToStaSeedAssociation + staSeedTrackVMuonAssoc
244 +tpToStaMuonAssociation + staMuonTrackVMuonAssoc
245 +tpToStaUpdMuonAssociation + staUpdMuonTrackVMuonAssoc
246 +tpToGlbMuonAssociation + glbMuonTrackVMuonAssoc
247 +pfMuonTracks_seq + tpToPFMuonAssociation + pfMuonTrackVMuonAssoc
248 +recoMuonTracks_seq + tpTorecoMuonMuonAssociation + recomuMuonTrackVMuonAssoc
251 muonValidation_noTABH_seq = cms.Sequence(
252 probeTracks_seq + tpToTkMuonAssociation + trkProbeTrackVMuonAssoc
253 +seedsOfSTAmuons_seq + tpToStaSeedAssociation + staSeedTrackVMuonAssoc
254 +tpToStaMuonAssociation + staMuonTrackVMuonAssoc
255 +tpToStaUpdMuonAssociation + staUpdMuonTrackVMuonAssoc
256 +tpToGlbMuonAssociation + glbMuonTrackVMuonAssoc
257 +pfMuonTracks_seq + tpToPFMuonAssociation + pfMuonTrackVMuonAssoc
258 +recoMuonTracks_seq + tpTorecoMuonMuonAssociation + recomuMuonTrackVMuonAssoc
261 muonValidationTEV_seq = cms.Sequence(
262 tpToTevFirstMuonAssociation + tevMuonFirstTrackVMuonAssoc
263 +tpToTevPickyMuonAssociation + tevMuonPickyTrackVMuonAssoc
264 +tpToTevDytMuonAssociation + tevMuonDytTrackVMuonAssoc
265 +tunepMuonTracks_seq + tpToTunePMuonAssociation + tunepMuonTrackVMuonAssoc
268 muonValidationRefit_seq = cms.Sequence(
269 tpToStaRefitMuonAssociation + staRefitMuonTrackVMuonAssoc
270 +tpToStaRefitUpdMuonAssociation + staRefitUpdMuonTrackVMuonAssoc
273 muonValidationDisplaced_seq = cms.Sequence(
274 seedsOfDisplacedSTAmuons_seq + tpToDisplacedStaSeedAssociation + displacedStaSeedTrackVMuonAssoc
275 +tpToDisplacedStaMuonAssociation + displacedStaMuonTrackVMuonAssoc
276 +tpToDisplacedTrkMuonAssociation + displacedTrackVMuonAssoc
277 +tpToDisplacedGlbMuonAssociation + displacedGlbMuonTrackVMuonAssoc
280 recoMuonValidation_reduced_seq = cms.Sequence(
281 probeTracks_seq + tpToTkMuonAssociation + trkProbeTrackVMuonAssoc_phase2
282 +tpToStaUpdMuonAssociation + staUpdMuonTrackVMuonAssoc_phase2
283 +tpToGlbMuonAssociation + glbMuonTrackVMuonAssoc_phase2
284 +tunepMuonTracks_seq + tpToTunePMuonAssociation + tunepMuonTrackVMuonAssoc_phase2
285 +pfMuonTracks_seq + tpToPFMuonAssociation + pfMuonTrackVMuonAssoc_phase2
286 +recoMuonTracks_seq + tpTorecoMuonMuonAssociation + recomuMuonTrackVMuonAssoc_phase2
287 +tpToDisplacedStaMuonAssociation + displacedStaMuonTrackVMuonAssoc_phase2
288 +tpToDisplacedTrkMuonAssociation + displacedTrackVMuonAssoc_phase2
289 +tpToDisplacedGlbMuonAssociation + displacedGlbMuonTrackVMuonAssoc_phase2
292 muonValidationCosmic_seq = cms.Sequence(
293 tpToTkCosmicSelMuonAssociation + trkCosmicMuonTrackVSelMuonAssoc
294 +tpToTkCosmic1LegSelMuonAssociation + trkCosmic1LegMuonTrackVSelMuonAssoc
295 +tpToStaCosmicSelMuonAssociation + staCosmicMuonTrackVSelMuonAssoc
296 +tpToStaCosmic1LegSelMuonAssociation + staCosmic1LegMuonTrackVSelMuonAssoc
297 +tpToGlbCosmicSelMuonAssociation + glbCosmicMuonTrackVSelMuonAssoc
298 +tpToGlbCosmic1LegSelMuonAssociation + glbCosmic1LegMuonTrackVSelMuonAssoc
301 gemMuonValidation = cms.Sequence(extractGemMuonsTracks_seq + tpToGEMMuonMuonAssociation + gemMuonTrackVMuonAssoc)
302 me0MuonValidation = cms.Sequence(extractMe0MuonsTracks_seq + tpToME0MuonMuonAssociation + me0MuonTrackVMuonAssoc)
304 gemMuonValidation_phase2 = cms.Sequence(extractGemMuonsTracks_seq + tpToGEMMuonMuonAssociation + gemMuonTrackVMuonAssoc_phase2)
309 recoMuonValidation = cms.Sequence( TPtrack_seq + TPmu_seq + TPpfmu_seq +
310 muonValidation_seq + muonValidationTEV_seq + muonValidationRefit_seq + muonValidationDisplaced_seq + muonValidationRMV_seq
314 recoMuonValidation_noTABH = cms.Sequence( TPtrack_seq + TPmu_seq + TPpfmu_seq +
315 muonValidation_noTABH_seq + muonValidationTEV_seq + muonValidationRefit_seq + muonValidationDisplaced_seq + muonValidationRMV_seq
319 recoMuonValidation_noTABH_noDisplaced = cms.Sequence( TPtrack_seq + TPmu_seq + TPpfmu_seq +
320 muonValidation_noTABH_seq + muonValidationTEV_seq + muonValidationRefit_seq + muonValidationRMV_seq
324 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
325 fastSim.toReplaceWith(recoMuonValidation, cms.Sequence(cms.SequencePlaceholder(
"TPtrack") + cms.SequencePlaceholder(
"TPmu") + cms.SequencePlaceholder(
"TPpfmu") + muonValidation_seq + muonValidationTEV_seq + muonValidationRefit_seq + muonValidationRMV_seq))
328 recoCosmicMuonValidation = cms.Sequence(
329 muonValidationCosmic_seq
334 _run3_muonValidation = recoMuonValidation.copy()
335 _run3_muonValidation += gemMuonValidation
337 _phase2_muonValidation = cms.Sequence(TPtrack_seq + TPmu_seq + TPpfmu_seq + recoMuonValidation_reduced_seq)
338 _phase2_muonValidation += gemMuonValidation_phase2
339 _phase2_muonValidation += me0MuonValidation
341 _phase2_ge0_muonValidation = cms.Sequence(TPtrack_seq + TPmu_seq + TPpfmu_seq + recoMuonValidation_reduced_seq)
342 _phase2_ge0_muonValidation += gemMuonValidation_phase2
344 from Configuration.Eras.Modifier_run3_GEM_cff
import run3_GEM
345 run3_GEM.toReplaceWith( recoMuonValidation, _run3_muonValidation )
346 from Configuration.Eras.Modifier_phase2_muon_cff
import phase2_muon
347 phase2_muon.toReplaceWith( recoMuonValidation, _phase2_muonValidation )
348 from Configuration.Eras.Modifier_phase2_GE0_cff
import phase2_GE0
349 phase2_GE0.toReplaceWith( recoMuonValidation, _phase2_ge0_muonValidation )