4 import FWCore.ParameterSet.Config
as cms
10 import Validation.RecoMuon.MuonTrackValidator_cfi
19 trkMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
20 trkMuonTrackVTrackAssoc.associatormap =
'tpToTkmuTrackAssociation'
21 trkMuonTrackVTrackAssoc.associators = (
'trackAssociatorByHits',)
23 trkMuonTrackVTrackAssoc.label = (
'probeTracks',)
24 trkMuonTrackVTrackAssoc.muonHistoParameters = trkMuonHistoParameters
28 trkProbeTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
29 trkProbeTrackVMuonAssoc.associatormap =
'tpToTkMuonAssociation'
31 trkProbeTrackVMuonAssoc.label = (
'probeTracks',)
32 trkProbeTrackVMuonAssoc.muonHistoParameters = trkMuonHistoParameters
34 staSeedTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
35 staSeedTrackVMuonAssoc.associatormap =
'tpToStaSeedAssociation'
36 staSeedTrackVMuonAssoc.label = (
'seedsOfSTAmuons',)
37 staSeedTrackVMuonAssoc.muonHistoParameters = staSeedMuonHistoParameters
39 staMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
40 staMuonTrackVMuonAssoc.associatormap =
'tpToStaMuonAssociation'
41 staMuonTrackVMuonAssoc.label = (
'standAloneMuons',)
42 staMuonTrackVMuonAssoc.muonHistoParameters = staMuonHistoParameters
44 staUpdMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
45 staUpdMuonTrackVMuonAssoc.associatormap =
'tpToStaUpdMuonAssociation'
46 staUpdMuonTrackVMuonAssoc.label = (
'standAloneMuons:UpdatedAtVtx',)
47 staUpdMuonTrackVMuonAssoc.muonHistoParameters = staUpdMuonHistoParameters
49 glbMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
50 glbMuonTrackVMuonAssoc.associatormap =
'tpToGlbMuonAssociation'
51 glbMuonTrackVMuonAssoc.label = (
'globalMuons',)
52 glbMuonTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
54 staRefitMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
55 staRefitMuonTrackVMuonAssoc.associatormap =
'tpToStaRefitMuonAssociation'
56 staRefitMuonTrackVMuonAssoc.label = (
'refittedStandAloneMuons',)
57 staRefitMuonTrackVMuonAssoc.muonHistoParameters = staMuonHistoParameters
59 staRefitUpdMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
60 staRefitUpdMuonTrackVMuonAssoc.associatormap =
'tpToStaRefitUpdMuonAssociation'
61 staRefitUpdMuonTrackVMuonAssoc.label = (
'refittedStandAloneMuons:UpdatedAtVtx',)
62 staRefitUpdMuonTrackVMuonAssoc.muonHistoParameters = staUpdMuonHistoParameters
64 displacedTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
65 displacedTrackVMuonAssoc.associatormap =
'tpToDisplacedTrkMuonAssociation'
66 displacedTrackVMuonAssoc.label = (
'displacedTracks',)
67 displacedTrackVMuonAssoc.muonTPSelector = displacedMuonTPSet
68 displacedTrackVMuonAssoc.muonHistoParameters = displacedTrkMuonHistoParameters
70 displacedStaSeedTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
71 displacedStaSeedTrackVMuonAssoc.associatormap =
'tpToDisplacedStaSeedAssociation'
72 displacedStaSeedTrackVMuonAssoc.label = (
'seedsOfDisplacedSTAmuons',)
73 displacedStaSeedTrackVMuonAssoc.muonTPSelector = displacedMuonTPSet
74 displacedStaSeedTrackVMuonAssoc.muonHistoParameters = displacedStaSeedMuonHistoParameters
76 displacedStaMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
77 displacedStaMuonTrackVMuonAssoc.associatormap =
'tpToDisplacedStaMuonAssociation'
78 displacedStaMuonTrackVMuonAssoc.label = (
'displacedStandAloneMuons',)
79 displacedStaMuonTrackVMuonAssoc.muonTPSelector = displacedMuonTPSet
80 displacedStaMuonTrackVMuonAssoc.muonHistoParameters = displacedStaMuonHistoParameters
82 displacedGlbMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
83 displacedGlbMuonTrackVMuonAssoc.associatormap =
'tpToDisplacedGlbMuonAssociation'
84 displacedGlbMuonTrackVMuonAssoc.label = (
'displacedGlobalMuons',)
85 displacedGlbMuonTrackVMuonAssoc.muonTPSelector = displacedMuonTPSet
86 displacedGlbMuonTrackVMuonAssoc.muonHistoParameters = displacedGlbMuonHistoParameters
88 tevMuonFirstTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
89 tevMuonFirstTrackVMuonAssoc.associatormap =
'tpToTevFirstMuonAssociation'
90 tevMuonFirstTrackVMuonAssoc.label = (
'tevMuons:firstHit',)
91 tevMuonFirstTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
93 tevMuonPickyTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
94 tevMuonPickyTrackVMuonAssoc.associatormap =
'tpToTevPickyMuonAssociation'
95 tevMuonPickyTrackVMuonAssoc.label = (
'tevMuons:picky',)
96 tevMuonPickyTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
98 tevMuonDytTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
99 tevMuonDytTrackVMuonAssoc.associatormap =
'tpToTevDytMuonAssociation'
100 tevMuonDytTrackVMuonAssoc.label = (
'tevMuons:dyt',)
101 tevMuonDytTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
103 tunepMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
104 tunepMuonTrackVMuonAssoc.associatormap =
'tpToTunePMuonAssociation'
105 tunepMuonTrackVMuonAssoc.label = (
'tunepMuonTracks',)
106 tunepMuonTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
108 pfMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
109 pfMuonTrackVMuonAssoc.associatormap =
'tpToPFMuonAssociation'
110 pfMuonTrackVMuonAssoc.label = (
'pfMuonTracks',)
111 pfMuonTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
113 recomuMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
114 recomuMuonTrackVMuonAssoc.associatormap =
'tpTorecoMuonMuonAssociation'
115 recomuMuonTrackVMuonAssoc.label = (
'recoMuonTracks',)
116 recomuMuonTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
118 gemMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
119 gemMuonTrackVMuonAssoc.associatormap =
'tpToGEMMuonMuonAssociation'
120 gemMuonTrackVMuonAssoc.label = (
'extractGemMuons',)
121 gemMuonTrackVMuonAssoc.muonHistoParameters = gemMuonHistoParameters
123 me0MuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
124 me0MuonTrackVMuonAssoc.associatormap =
'tpToME0MuonMuonAssociation'
125 me0MuonTrackVMuonAssoc.label = (
'extractMe0Muons',)
126 me0MuonTrackVMuonAssoc.muonTPSelector = me0MuonTPSet
127 me0MuonTrackVMuonAssoc.muonHistoParameters = me0MuonHistoParameters
130 trkCosmicMuonTrackVSelMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
131 trkCosmicMuonTrackVSelMuonAssoc.associatormap =
'tpToTkCosmicSelMuonAssociation'
132 trkCosmicMuonTrackVSelMuonAssoc.label = (
'ctfWithMaterialTracksP5LHCNavigation',)
133 trkCosmicMuonTrackVSelMuonAssoc.parametersDefiner = cms.string(
'CosmicParametersDefinerForTP')
134 trkCosmicMuonTrackVSelMuonAssoc.muonTPSelector = cosmicMuonTPSet
135 trkCosmicMuonTrackVSelMuonAssoc.BiDirectional_RecoToSim_association =
False
136 trkCosmicMuonTrackVSelMuonAssoc.muonHistoParameters = trkCosmicMuonHistoParameters
138 staCosmicMuonTrackVSelMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
139 staCosmicMuonTrackVSelMuonAssoc.associatormap =
'tpToStaCosmicSelMuonAssociation'
140 staCosmicMuonTrackVSelMuonAssoc.label = (
'cosmicMuons',)
141 staCosmicMuonTrackVSelMuonAssoc.parametersDefiner = cms.string(
'CosmicParametersDefinerForTP')
142 staCosmicMuonTrackVSelMuonAssoc.muonTPSelector = cosmicMuonTPSet
143 staCosmicMuonTrackVSelMuonAssoc.BiDirectional_RecoToSim_association =
False
144 staCosmicMuonTrackVSelMuonAssoc.muonHistoParameters = staCosmicMuonHistoParameters
146 glbCosmicMuonTrackVSelMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
147 glbCosmicMuonTrackVSelMuonAssoc.associatormap =
'tpToGlbCosmicSelMuonAssociation'
148 glbCosmicMuonTrackVSelMuonAssoc.label = (
'globalCosmicMuons',)
149 glbCosmicMuonTrackVSelMuonAssoc.parametersDefiner = cms.string(
'CosmicParametersDefinerForTP')
150 glbCosmicMuonTrackVSelMuonAssoc.muonTPSelector = cosmicMuonTPSet
151 glbCosmicMuonTrackVSelMuonAssoc.BiDirectional_RecoToSim_association =
False
152 glbCosmicMuonTrackVSelMuonAssoc.muonHistoParameters = glbCosmicMuonHistoParameters
155 trkCosmic1LegMuonTrackVSelMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
156 trkCosmic1LegMuonTrackVSelMuonAssoc.associatormap =
'tpToTkCosmic1LegSelMuonAssociation'
157 trkCosmic1LegMuonTrackVSelMuonAssoc.label = (
'ctfWithMaterialTracksP5',)
158 trkCosmic1LegMuonTrackVSelMuonAssoc.parametersDefiner = cms.string(
'CosmicParametersDefinerForTP')
159 trkCosmic1LegMuonTrackVSelMuonAssoc.muonTPSelector = cosmicMuonTPSet
160 trkCosmic1LegMuonTrackVSelMuonAssoc.muonHistoParameters = trkCosmic1LegMuonHistoParameters
162 staCosmic1LegMuonTrackVSelMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
163 staCosmic1LegMuonTrackVSelMuonAssoc.associatormap =
'tpToStaCosmic1LegSelMuonAssociation'
164 staCosmic1LegMuonTrackVSelMuonAssoc.label = (
'cosmicMuons1Leg',)
165 staCosmic1LegMuonTrackVSelMuonAssoc.parametersDefiner = cms.string(
'CosmicParametersDefinerForTP')
166 staCosmic1LegMuonTrackVSelMuonAssoc.muonTPSelector = cosmicMuonTPSet
167 staCosmic1LegMuonTrackVSelMuonAssoc.muonHistoParameters = staCosmic1LegMuonHistoParameters
169 glbCosmic1LegMuonTrackVSelMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
170 glbCosmic1LegMuonTrackVSelMuonAssoc.associatormap =
'tpToGlbCosmic1LegSelMuonAssociation'
171 glbCosmic1LegMuonTrackVSelMuonAssoc.label = (
'globalCosmicMuons1Leg',)
172 glbCosmic1LegMuonTrackVSelMuonAssoc.parametersDefiner = cms.string(
'CosmicParametersDefinerForTP')
173 glbCosmic1LegMuonTrackVSelMuonAssoc.muonTPSelector = cosmicMuonTPSet
174 glbCosmic1LegMuonTrackVSelMuonAssoc.muonHistoParameters = glbCosmic1LegMuonHistoParameters
182 trkMuonTrackVTrackAssoc_phase2 = trkMuonTrackVTrackAssoc.clone()
183 trkMuonTrackVTrackAssoc_phase2.muonHistoParameters = trkMuonHistoParameters_phase2
185 trkProbeTrackVMuonAssoc_phase2 = trkProbeTrackVMuonAssoc.clone()
186 trkProbeTrackVMuonAssoc_phase2.muonHistoParameters = trkMuonHistoParameters_phase2
188 staSeedTrackVMuonAssoc_phase2 = staSeedTrackVMuonAssoc.clone()
189 staSeedTrackVMuonAssoc_phase2.muonHistoParameters = staSeedMuonHistoParameters
191 staMuonTrackVMuonAssoc_phase2 = staMuonTrackVMuonAssoc.clone()
192 staMuonTrackVMuonAssoc_phase2.muonHistoParameters = staMuonHistoParameters_phase2
194 staUpdMuonTrackVMuonAssoc_phase2 = staUpdMuonTrackVMuonAssoc.clone()
195 staUpdMuonTrackVMuonAssoc_phase2.muonHistoParameters = staUpdMuonHistoParameters_phase2
197 glbMuonTrackVMuonAssoc_phase2 = glbMuonTrackVMuonAssoc.clone()
198 glbMuonTrackVMuonAssoc_phase2.muonHistoParameters = glbMuonHistoParameters_phase2
200 pfMuonTrackVMuonAssoc_phase2 = pfMuonTrackVMuonAssoc.clone()
201 pfMuonTrackVMuonAssoc_phase2.muonHistoParameters = glbMuonHistoParameters_phase2
203 recomuMuonTrackVMuonAssoc_phase2 = recomuMuonTrackVMuonAssoc.clone()
204 recomuMuonTrackVMuonAssoc_phase2.muonHistoParameters = recoMuonHistoParameters_phase2
206 tunepMuonTrackVMuonAssoc_phase2 = tunepMuonTrackVMuonAssoc.clone()
207 tunepMuonTrackVMuonAssoc_phase2.muonHistoParameters = glbMuonHistoParameters_phase2
209 displacedStaMuonTrackVMuonAssoc_phase2 = displacedStaMuonTrackVMuonAssoc.clone()
210 displacedStaMuonTrackVMuonAssoc_phase2.muonHistoParameters = displacedStaMuonHistoParameters_phase2
212 displacedGlbMuonTrackVMuonAssoc_phase2 = displacedGlbMuonTrackVMuonAssoc.clone()
213 displacedGlbMuonTrackVMuonAssoc_phase2.muonHistoParameters = displacedGlbMuonHistoParameters_phase2
215 displacedTrackVMuonAssoc_phase2 = displacedTrackVMuonAssoc.clone()
216 displacedTrackVMuonAssoc_phase2.muonHistoParameters = displacedTrkMuonHistoParameters_phase2
218 gemMuonTrackVMuonAssoc_phase2 = gemMuonTrackVMuonAssoc.clone()
219 gemMuonTrackVMuonAssoc_phase2.muonHistoParameters = gemMuonHistoParameters_phase2
225 muonValidation_seq = cms.Sequence(
226 probeTracks_seq + tpToTkMuonAssociation + trkProbeTrackVMuonAssoc
227 +trackAssociatorByHits + tpToTkmuTrackAssociation + trkMuonTrackVTrackAssoc
228 +seedsOfSTAmuons_seq + tpToStaSeedAssociation + staSeedTrackVMuonAssoc
229 +tpToStaMuonAssociation + staMuonTrackVMuonAssoc
230 +tpToStaUpdMuonAssociation + staUpdMuonTrackVMuonAssoc
231 +tpToGlbMuonAssociation + glbMuonTrackVMuonAssoc
232 +pfMuonTracks_seq + tpToPFMuonAssociation + pfMuonTrackVMuonAssoc
233 +recoMuonTracks_seq + tpTorecoMuonMuonAssociation + recomuMuonTrackVMuonAssoc
236 muonValidationTEV_seq = cms.Sequence(
237 tpToTevFirstMuonAssociation + tevMuonFirstTrackVMuonAssoc
238 +tpToTevPickyMuonAssociation + tevMuonPickyTrackVMuonAssoc
239 +tpToTevDytMuonAssociation + tevMuonDytTrackVMuonAssoc
240 +tunepMuonTracks_seq + tpToTunePMuonAssociation + tunepMuonTrackVMuonAssoc
243 muonValidationRefit_seq = cms.Sequence(
244 tpToStaRefitMuonAssociation + staRefitMuonTrackVMuonAssoc
245 +tpToStaRefitUpdMuonAssociation + staRefitUpdMuonTrackVMuonAssoc
248 muonValidationDisplaced_seq = cms.Sequence(
249 seedsOfDisplacedSTAmuons_seq + tpToDisplacedStaSeedAssociation + displacedStaSeedTrackVMuonAssoc
250 +tpToDisplacedStaMuonAssociation + displacedStaMuonTrackVMuonAssoc
251 +tpToDisplacedTrkMuonAssociation + displacedTrackVMuonAssoc
252 +tpToDisplacedGlbMuonAssociation + displacedGlbMuonTrackVMuonAssoc
255 muonValidationCosmic_seq = cms.Sequence(
256 tpToTkCosmicSelMuonAssociation + trkCosmicMuonTrackVSelMuonAssoc
257 +tpToTkCosmic1LegSelMuonAssociation + trkCosmic1LegMuonTrackVSelMuonAssoc
258 +tpToStaCosmicSelMuonAssociation + staCosmicMuonTrackVSelMuonAssoc
259 +tpToStaCosmic1LegSelMuonAssociation + staCosmic1LegMuonTrackVSelMuonAssoc
260 +tpToGlbCosmicSelMuonAssociation + glbCosmicMuonTrackVSelMuonAssoc
261 +tpToGlbCosmic1LegSelMuonAssociation + glbCosmic1LegMuonTrackVSelMuonAssoc
264 recoMuonValidation_reduced_seq = cms.Sequence(
265 probeTracks_seq + tpToTkMuonAssociation + trkProbeTrackVMuonAssoc_phase2
266 +tpToStaUpdMuonAssociation + staUpdMuonTrackVMuonAssoc_phase2
267 +tpToGlbMuonAssociation + glbMuonTrackVMuonAssoc_phase2
268 +tunepMuonTracks_seq + tpToTunePMuonAssociation + tunepMuonTrackVMuonAssoc_phase2
269 +pfMuonTracks_seq + tpToPFMuonAssociation + pfMuonTrackVMuonAssoc_phase2
270 +recoMuonTracks_seq + tpTorecoMuonMuonAssociation + recomuMuonTrackVMuonAssoc_phase2
271 +tpToDisplacedStaMuonAssociation + displacedStaMuonTrackVMuonAssoc_phase2
272 +tpToDisplacedTrkMuonAssociation + displacedTrackVMuonAssoc_phase2
273 +tpToDisplacedGlbMuonAssociation + displacedGlbMuonTrackVMuonAssoc_phase2
276 gemMuonValidation = cms.Sequence(extractGemMuonsTracks_seq + tpToGEMMuonMuonAssociation + gemMuonTrackVMuonAssoc)
277 me0MuonValidation = cms.Sequence(extractMe0MuonsTracks_seq + tpToME0MuonMuonAssociation + me0MuonTrackVMuonAssoc)
279 gemMuonValidation_phase2 = cms.Sequence(extractGemMuonsTracks_seq + tpToGEMMuonMuonAssociation + gemMuonTrackVMuonAssoc_phase2)
284 recoMuonValidation = cms.Sequence(
285 muonValidation_seq + muonValidationTEV_seq + muonValidationRefit_seq + muonValidationDisplaced_seq + muonValidationRMV_seq
289 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
290 fastSim.toReplaceWith(recoMuonValidation, cms.Sequence(muonValidation_seq + muonValidationTEV_seq + muonValidationRefit_seq + muonValidationRMV_seq))
293 recoCosmicMuonValidation = cms.Sequence(
294 muonValidationCosmic_seq
299 _run3_muonValidation = recoMuonValidation.copy()
301 _run3_muonValidation += gemMuonValidation
304 _phase2_muonValidation = recoMuonValidation_reduced_seq.copy()
305 _phase2_muonValidation += gemMuonValidation_phase2
306 _phase2_muonValidation += me0MuonValidation
309 _phase2_ge0_muonValidation = recoMuonValidation_reduced_seq.copy()
310 _phase2_ge0_muonValidation += gemMuonValidation_phase2
312 from Configuration.Eras.Modifier_run3_GEM_cff
import run3_GEM
313 run3_GEM.toReplaceWith( recoMuonValidation, _run3_muonValidation )
314 from Configuration.Eras.Modifier_phase2_muon_cff
import phase2_muon
315 phase2_muon.toReplaceWith( recoMuonValidation, _phase2_muonValidation )
316 from Configuration.Eras.Modifier_phase2_GE0_cff
import phase2_GE0
317 phase2_GE0.toReplaceWith( recoMuonValidation, _phase2_ge0_muonValidation )