CMS 3D CMS Logo

NewMuonValidation_cff.py
Go to the documentation of this file.
1 #
2 # Production configuration for FullSim: muon track validation using MuonAssociatorByHits
3 #
4 import FWCore.ParameterSet.Config as cms
5 
9 import Validation.RecoMuon.NewMuonTrackValidator_cfi
10 
13 
15 
16 # quickTrackAssociatorByHits on probeTracks used as monitor wrt MuonAssociatorByHits
17 
18 NEWtrkMuonTrackVTrackAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
19 NEWtrkMuonTrackVTrackAssoc.associatormap = 'NEWtpToTkmuTrackAssociation'
20 NEWtrkMuonTrackVTrackAssoc.associators = ('NEWtrackAssociatorByHits',)
21 #NEWtrkMuonTrackVTrackAssoc.label = ('generalTracks',)
22 NEWtrkMuonTrackVTrackAssoc.label = ('NEWprobeTracks',)
23 NEWtrkMuonTrackVTrackAssoc.muonHistoParameters = trkMuonHistoParameters
24 
25 # MuonAssociatorByHits used for all track collections
26 
27 NEWtrkProbeTrackVMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
28 NEWtrkProbeTrackVMuonAssoc.associatormap = 'NEWtpToTkMuonAssociation'
29 #trkProbeTrackVMuonAssoc.label = ('generalTracks',)
30 NEWtrkProbeTrackVMuonAssoc.label = ('NEWprobeTracks',)
31 NEWtrkProbeTrackVMuonAssoc.muonHistoParameters = trkMuonHistoParameters
32 
33 NEWstaSeedTrackVMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
34 NEWstaSeedTrackVMuonAssoc.associatormap = 'NEWtpToStaSeedAssociation'
35 NEWstaSeedTrackVMuonAssoc.label = ('NEWseedsOfSTAmuons',)
36 NEWstaSeedTrackVMuonAssoc.muonHistoParameters = staSeedMuonHistoParameters
37 
38 NEWstaMuonTrackVMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
39 NEWstaMuonTrackVMuonAssoc.associatormap = 'NEWtpToStaMuonAssociation'
40 NEWstaMuonTrackVMuonAssoc.label = ('standAloneMuons',)
41 NEWstaMuonTrackVMuonAssoc.muonHistoParameters = staMuonHistoParameters
42 
43 NEWstaUpdMuonTrackVMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
44 NEWstaUpdMuonTrackVMuonAssoc.associatormap = 'NEWtpToStaUpdMuonAssociation'
45 NEWstaUpdMuonTrackVMuonAssoc.label = ('standAloneMuons:UpdatedAtVtx',)
46 NEWstaUpdMuonTrackVMuonAssoc.muonHistoParameters = staUpdMuonHistoParameters
47 
48 NEWglbMuonTrackVMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
49 NEWglbMuonTrackVMuonAssoc.associatormap = 'NEWtpToGlbMuonAssociation'
50 NEWglbMuonTrackVMuonAssoc.label = ('globalMuons',)
51 NEWglbMuonTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
52 
53 NEWstaRefitMuonTrackVMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
54 NEWstaRefitMuonTrackVMuonAssoc.associatormap = 'NEWtpToStaRefitMuonAssociation'
55 NEWstaRefitMuonTrackVMuonAssoc.label = ('refittedStandAloneMuons',)
56 NEWstaRefitMuonTrackVMuonAssoc.muonHistoParameters = staMuonHistoParameters
57 
58 NEWstaRefitUpdMuonTrackVMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
59 NEWstaRefitUpdMuonTrackVMuonAssoc.associatormap = 'NEWtpToStaRefitUpdMuonAssociation'
60 NEWstaRefitUpdMuonTrackVMuonAssoc.label = ('refittedStandAloneMuons:UpdatedAtVtx',)
61 NEWstaRefitUpdMuonTrackVMuonAssoc.muonHistoParameters = staUpdMuonHistoParameters
62 
63 NEWdisplacedTrackVMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
64 NEWdisplacedTrackVMuonAssoc.associatormap = 'NEWtpToDisplacedTrkMuonAssociation'
65 NEWdisplacedTrackVMuonAssoc.label = ('displacedTracks',)
66 NEWdisplacedTrackVMuonAssoc.muonTPSelector = NewDisplacedMuonTPSet
67 NEWdisplacedTrackVMuonAssoc.muonHistoParameters = displacedTrkMuonHistoParameters
68 
69 NEWdisplacedStaSeedTrackVMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
70 NEWdisplacedStaSeedTrackVMuonAssoc.associatormap = 'NEWtpToDisplacedStaSeedAssociation'
71 NEWdisplacedStaSeedTrackVMuonAssoc.label = ('NEWseedsOfDisplacedSTAmuons',)
72 NEWdisplacedStaSeedTrackVMuonAssoc.muonTPSelector = NewDisplacedMuonTPSet
73 NEWdisplacedStaSeedTrackVMuonAssoc.muonHistoParameters = displacedStaSeedMuonHistoParameters
74 
75 NEWdisplacedStaMuonTrackVMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
76 NEWdisplacedStaMuonTrackVMuonAssoc.associatormap = 'NEWtpToDisplacedStaMuonAssociation'
77 NEWdisplacedStaMuonTrackVMuonAssoc.label = ('displacedStandAloneMuons',)
78 NEWdisplacedStaMuonTrackVMuonAssoc.muonTPSelector = NewDisplacedMuonTPSet
79 NEWdisplacedStaMuonTrackVMuonAssoc.muonHistoParameters = displacedStaMuonHistoParameters
80 
81 NEWdisplacedGlbMuonTrackVMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
82 NEWdisplacedGlbMuonTrackVMuonAssoc.associatormap = 'NEWtpToDisplacedGlbMuonAssociation'
83 NEWdisplacedGlbMuonTrackVMuonAssoc.label = ('displacedGlobalMuons',)
84 NEWdisplacedGlbMuonTrackVMuonAssoc.muonTPSelector = NewDisplacedMuonTPSet
85 NEWdisplacedGlbMuonTrackVMuonAssoc.muonHistoParameters = displacedGlbMuonHistoParameters
86 
87 NEWtevMuonFirstTrackVMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
88 NEWtevMuonFirstTrackVMuonAssoc.associatormap = 'NEWtpToTevFirstMuonAssociation'
89 NEWtevMuonFirstTrackVMuonAssoc.label = ('tevMuons:firstHit',)
90 NEWtevMuonFirstTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
91 
92 NEWtevMuonPickyTrackVMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
93 NEWtevMuonPickyTrackVMuonAssoc.associatormap = 'NEWtpToTevPickyMuonAssociation'
94 NEWtevMuonPickyTrackVMuonAssoc.label = ('tevMuons:picky',)
95 NEWtevMuonPickyTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
96 
97 NEWtevMuonDytTrackVMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
98 NEWtevMuonDytTrackVMuonAssoc.associatormap = 'NEWtpToTevDytMuonAssociation'
99 NEWtevMuonDytTrackVMuonAssoc.label = ('tevMuons:dyt',)
100 NEWtevMuonDytTrackVMuonAssoc.muonHistoParameters = glbMuonHistoParameters
101 
102 NEWgemMuonTrackVMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
103 NEWgemMuonTrackVMuonAssoc.associatormap = 'NEWtpToGEMMuonMuonAssociation'
104 NEWgemMuonTrackVMuonAssoc.label = ('NEWextractGemMuons',)
105 NEWgemMuonTrackVMuonAssoc.muonHistoParameters = gemMuonHistoParameters
106 
107 NEWme0MuonTrackVMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
108 NEWme0MuonTrackVMuonAssoc.associatormap = 'NEWtpToME0MuonMuonAssociation'
109 NEWme0MuonTrackVMuonAssoc.label = ('NEWextractMe0Muons',)
110 NEWme0MuonTrackVMuonAssoc.muonTPSelector = NewMe0MuonTPSet
111 NEWme0MuonTrackVMuonAssoc.muonHistoParameters = me0MuonHistoParameters
112 
113 # cosmics 2-leg reco
114 NEWtrkCosmicMuonTrackVSelMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
115 NEWtrkCosmicMuonTrackVSelMuonAssoc.associatormap = 'NEWtpToTkCosmicSelMuonAssociation'
116 NEWtrkCosmicMuonTrackVSelMuonAssoc.label = ('ctfWithMaterialTracksP5LHCNavigation',)
117 NEWtrkCosmicMuonTrackVSelMuonAssoc.parametersDefiner = cms.string('CosmicParametersDefinerForTP')
118 NEWtrkCosmicMuonTrackVSelMuonAssoc.muonTPSelector = cosmicMuonTPSet
119 NEWtrkCosmicMuonTrackVSelMuonAssoc.BiDirectional_RecoToSim_association = False
120 NEWtrkCosmicMuonTrackVSelMuonAssoc.muonHistoParameters = trkCosmicMuonHistoParameters
121 
122 NEWstaCosmicMuonTrackVSelMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
123 NEWstaCosmicMuonTrackVSelMuonAssoc.associatormap = 'NEWtpToStaCosmicSelMuonAssociation'
124 NEWstaCosmicMuonTrackVSelMuonAssoc.label = ('cosmicMuons',)
125 NEWstaCosmicMuonTrackVSelMuonAssoc.parametersDefiner = cms.string('CosmicParametersDefinerForTP')
126 NEWstaCosmicMuonTrackVSelMuonAssoc.muonTPSelector = cosmicMuonTPSet
127 NEWstaCosmicMuonTrackVSelMuonAssoc.BiDirectional_RecoToSim_association = False
128 NEWstaCosmicMuonTrackVSelMuonAssoc.muonHistoParameters = staCosmicMuonHistoParameters
129 
130 NEWglbCosmicMuonTrackVSelMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
131 NEWglbCosmicMuonTrackVSelMuonAssoc.associatormap = 'NEWtpToGlbCosmicSelMuonAssociation'
132 NEWglbCosmicMuonTrackVSelMuonAssoc.label = ('globalCosmicMuons',)
133 NEWglbCosmicMuonTrackVSelMuonAssoc.parametersDefiner = cms.string('CosmicParametersDefinerForTP')
134 NEWglbCosmicMuonTrackVSelMuonAssoc.muonTPSelector = cosmicMuonTPSet
135 NEWglbCosmicMuonTrackVSelMuonAssoc.BiDirectional_RecoToSim_association = False
136 NEWglbCosmicMuonTrackVSelMuonAssoc.muonHistoParameters = glbCosmicMuonHistoParameters
137 
138 # cosmics 1-leg reco
139 NEWtrkCosmic1LegMuonTrackVSelMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
140 NEWtrkCosmic1LegMuonTrackVSelMuonAssoc.associatormap = 'NEWtpToTkCosmic1LegSelMuonAssociation'
141 NEWtrkCosmic1LegMuonTrackVSelMuonAssoc.label = ('ctfWithMaterialTracksP5',)
142 NEWtrkCosmic1LegMuonTrackVSelMuonAssoc.parametersDefiner = cms.string('CosmicParametersDefinerForTP')
143 NEWtrkCosmic1LegMuonTrackVSelMuonAssoc.muonTPSelector = cosmicMuonTPSet
144 NEWtrkCosmic1LegMuonTrackVSelMuonAssoc.muonHistoParameters = trkCosmic1LegMuonHistoParameters
145 
146 NEWstaCosmic1LegMuonTrackVSelMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
147 NEWstaCosmic1LegMuonTrackVSelMuonAssoc.associatormap = 'NEWtpToStaCosmic1LegSelMuonAssociation'
148 NEWstaCosmic1LegMuonTrackVSelMuonAssoc.label = ('cosmicMuons1Leg',)
149 NEWstaCosmic1LegMuonTrackVSelMuonAssoc.parametersDefiner = cms.string('CosmicParametersDefinerForTP')
150 NEWstaCosmic1LegMuonTrackVSelMuonAssoc.muonTPSelector = cosmicMuonTPSet
151 NEWstaCosmic1LegMuonTrackVSelMuonAssoc.muonHistoParameters = staCosmic1LegMuonHistoParameters
152 
153 NEWglbCosmic1LegMuonTrackVSelMuonAssoc = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
154 NEWglbCosmic1LegMuonTrackVSelMuonAssoc.associatormap = 'NEWtpToGlbCosmic1LegSelMuonAssociation'
155 NEWglbCosmic1LegMuonTrackVSelMuonAssoc.label = ('globalCosmicMuons1Leg',)
156 NEWglbCosmic1LegMuonTrackVSelMuonAssoc.parametersDefiner = cms.string('CosmicParametersDefinerForTP')
157 NEWglbCosmic1LegMuonTrackVSelMuonAssoc.muonTPSelector = cosmicMuonTPSet
158 NEWglbCosmic1LegMuonTrackVSelMuonAssoc.muonHistoParameters = glbCosmic1LegMuonHistoParameters
159 
160 ##################################################################################
161 # Muon validation sequences using MuonTrackValidator
162 #
163 NEWmuonValidation_seq = cms.Sequence(
164  NEWprobeTracks_seq + NEWtpToTkMuonAssociation + NEWtrkProbeTrackVMuonAssoc
165  +NEWtrackAssociatorByHits + NEWtpToTkmuTrackAssociation + NEWtrkMuonTrackVTrackAssoc
166  +NEWseedsOfSTAmuons_seq + NEWtpToStaSeedAssociation + NEWstaSeedTrackVMuonAssoc
167  +NEWtpToStaMuonAssociation + NEWstaMuonTrackVMuonAssoc
168  +NEWtpToStaUpdMuonAssociation + NEWstaUpdMuonTrackVMuonAssoc
169  +NEWtpToGlbMuonAssociation + NEWglbMuonTrackVMuonAssoc
170 )
171 
172 NEWmuonValidation_reduced_seq = cms.Sequence(
173  NEWprobeTracks_seq + NEWtpToTkMuonAssociation + NEWtrkProbeTrackVMuonAssoc
174  +NEWtpToStaUpdMuonAssociation + NEWstaUpdMuonTrackVMuonAssoc
175  +NEWtpToGlbMuonAssociation + NEWglbMuonTrackVMuonAssoc
176  +NEWtpToDisplacedStaMuonAssociation + NEWdisplacedStaMuonTrackVMuonAssoc
177  +NEWtpToDisplacedTrkMuonAssociation + NEWdisplacedTrackVMuonAssoc
178  +NEWtpToDisplacedGlbMuonAssociation + NEWdisplacedGlbMuonTrackVMuonAssoc
179 )
180 
181 NEWmuonValidationTEV_seq = cms.Sequence(
182  NEWtpToTevFirstMuonAssociation + NEWtevMuonFirstTrackVMuonAssoc
183  +NEWtpToTevPickyMuonAssociation + NEWtevMuonPickyTrackVMuonAssoc
184  +NEWtpToTevDytMuonAssociation + NEWtevMuonDytTrackVMuonAssoc
185 )
186 
187 NEWmuonValidationRefit_seq = cms.Sequence(
188  NEWtpToStaRefitMuonAssociation + NEWstaRefitMuonTrackVMuonAssoc
189  +NEWtpToStaRefitUpdMuonAssociation + NEWstaRefitUpdMuonTrackVMuonAssoc
190 )
191 
192 NEWmuonValidationDisplaced_seq = cms.Sequence(
193  NEWseedsOfDisplacedSTAmuons_seq + NEWtpToDisplacedStaSeedAssociation + NEWdisplacedStaSeedTrackVMuonAssoc
194  +NEWtpToDisplacedStaMuonAssociation + NEWdisplacedStaMuonTrackVMuonAssoc
195  +NEWtpToDisplacedTrkMuonAssociation + NEWdisplacedTrackVMuonAssoc
196  +NEWtpToDisplacedGlbMuonAssociation + NEWdisplacedGlbMuonTrackVMuonAssoc
197 )
198 
199 NEWmuonValidationCosmic_seq = cms.Sequence(
200  NEWtpToTkCosmicSelMuonAssociation + NEWtrkCosmicMuonTrackVSelMuonAssoc
201  +NEWtpToTkCosmic1LegSelMuonAssociation + NEWtrkCosmic1LegMuonTrackVSelMuonAssoc
202  +NEWtpToStaCosmicSelMuonAssociation + NEWstaCosmicMuonTrackVSelMuonAssoc
203  +NEWtpToStaCosmic1LegSelMuonAssociation + NEWstaCosmic1LegMuonTrackVSelMuonAssoc
204  +NEWtpToGlbCosmicSelMuonAssociation + NEWglbCosmicMuonTrackVSelMuonAssoc
205  +NEWtpToGlbCosmic1LegSelMuonAssociation + NEWglbCosmic1LegMuonTrackVSelMuonAssoc
206 )
207 
208 NEWgemMuonValidation = cms.Sequence(NEWextractGemMuonsTracks_seq + NEWtpToGEMMuonMuonAssociation + NEWgemMuonTrackVMuonAssoc)
209 NEWme0MuonValidation = cms.Sequence(NEWextractMe0MuonsTracks_seq + NEWtpToME0MuonMuonAssociation + NEWme0MuonTrackVMuonAssoc)
210 
211 ##########################################################################
212 # The full offline muon validation sequence
213 #
214 NEWrecoMuonValidation = cms.Sequence(
215  NEWmuonValidation_seq + NEWmuonValidationTEV_seq + NEWmuonValidationRefit_seq + NEWmuonValidationDisplaced_seq + NEWmuonValidationRMV_seq
216  )
217 
218 # no displaced muons in fastsim
219 from Configuration.Eras.Modifier_fastSim_cff import fastSim
220 if fastSim.isChosen():
221  NEWrecoMuonValidation = cms.Sequence(NEWmuonValidation_seq + NEWmuonValidationTEV_seq + NEWmuonValidationRefit_seq)
222 
223 # sequence for cosmic muons
224 NEWrecoCosmicMuonValidation = cms.Sequence(
225  NEWmuonValidationCosmic_seq
226  )
227 
228 # sequences for muon upgrades
229 #
230 NEW_run3_muonValidation = NEWmuonValidation_seq.copy() #For full validation
231 NEW_run3_muonValidation = NEWmuonValidation_reduced_seq.copy()
232 NEW_run3_muonValidation += NEWgemMuonValidation
233 
234 NEW_phase2_muonValidation = NEW_run3_muonValidation.copy()
235 NEW_phase2_muonValidation += NEWme0MuonValidation
236 
237 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
238 run3_GEM.toReplaceWith( NEWmuonValidation_seq, NEW_run3_muonValidation ) #For full validation
239 run3_GEM.toReplaceWith( NEWrecoMuonValidation, NEW_run3_muonValidation )
240 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
241 phase2_muon.toReplaceWith( NEWmuonValidation_seq, NEW_phase2_muonValidation ) #For full validation
242 phase2_muon.toReplaceWith( NEWrecoMuonValidation, NEW_phase2_muonValidation )