test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
muonValidation_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
5 # Configurations for MuonTrackValidators
9 
10 trkMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
11 trkMuonTrackVTrackAssoc.associatormap = 'tpToTkmuTrackAssociation'
12 trkMuonTrackVTrackAssoc.associators = ('trackAssociatorByHits',)
13 #trkMuonTrackVTrackAssoc.label = ('generalTracks',)
14 trkMuonTrackVTrackAssoc.label = ('probeTracks',)
15 trkMuonTrackVTrackAssoc.usetracker = True
16 trkMuonTrackVTrackAssoc.usemuon = False
17 
18 trkCosmicMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
19 trkCosmicMuonTrackVTrackAssoc.associatormap = 'tpToTkCosmicTrackAssociation'
20 trkCosmicMuonTrackVTrackAssoc.associators = ('trackAssociatorByHits',)
21 trkCosmicMuonTrackVTrackAssoc.label = ('ctfWithMaterialTracksP5LHCNavigation',)
22 trkCosmicMuonTrackVTrackAssoc.usetracker = True
23 trkCosmicMuonTrackVTrackAssoc.usemuon = False
24 
25 staMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
26 staMuonTrackVTrackAssoc.associatormap = 'tpToStaTrackAssociation'
27 staMuonTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
28 staMuonTrackVTrackAssoc.label = ('standAloneMuons',)
29 staMuonTrackVTrackAssoc.usetracker = False
30 staMuonTrackVTrackAssoc.usemuon = True
31 
32 staUpdMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
33 staUpdMuonTrackVTrackAssoc.associatormap = 'tpToStaUpdTrackAssociation'
34 staUpdMuonTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
35 staUpdMuonTrackVTrackAssoc.label = ('standAloneMuons:UpdatedAtVtx',)
36 staUpdMuonTrackVTrackAssoc.usetracker = False
37 staUpdMuonTrackVTrackAssoc.usemuon = True
38 
39 glbMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
40 glbMuonTrackVTrackAssoc.associatormap = 'tpToGlbTrackAssociation'
41 glbMuonTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
42 glbMuonTrackVTrackAssoc.label = ('globalMuons',)
43 glbMuonTrackVTrackAssoc.usetracker = True
44 glbMuonTrackVTrackAssoc.usemuon = True
45 
46 staSETMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
47 staSETMuonTrackVTrackAssoc.associatormap = 'tpToStaSETTrackAssociation'
48 staSETMuonTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
49 staSETMuonTrackVTrackAssoc.label = ('standAloneSETMuons',)
50 staSETMuonTrackVTrackAssoc.usetracker = False
51 staSETMuonTrackVTrackAssoc.usemuon = True
52 
53 staSETUpdMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
54 staSETUpdMuonTrackVTrackAssoc.associatormap = 'tpToStaSETUpdTrackAssociation'
55 staSETUpdMuonTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
56 staSETUpdMuonTrackVTrackAssoc.label = ('standAloneSETMuons:UpdatedAtVtx',)
57 staSETUpdMuonTrackVTrackAssoc.usetracker = False
58 staSETUpdMuonTrackVTrackAssoc.usemuon = True
59 
60 glbSETMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
61 glbSETMuonTrackVTrackAssoc.associatormap = 'tpToGlbSETTrackAssociation'
62 glbSETMuonTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
63 glbSETMuonTrackVTrackAssoc.label = ('globalSETMuons',)
64 glbSETMuonTrackVTrackAssoc.usetracker = True
65 glbSETMuonTrackVTrackAssoc.usemuon = True
66 
67 tevMuonFirstTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
68 tevMuonFirstTrackVTrackAssoc.associatormap = 'tpToTevFirstTrackAssociation'
69 tevMuonFirstTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
70 tevMuonFirstTrackVTrackAssoc.label = ('tevMuons:firstHit',)
71 tevMuonFirstTrackVTrackAssoc.usetracker = True
72 tevMuonFirstTrackVTrackAssoc.usemuon = True
73 
74 tevMuonPickyTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
75 tevMuonPickyTrackVTrackAssoc.associatormap = 'tpToTevPickyTrackAssociation'
76 tevMuonPickyTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
77 tevMuonPickyTrackVTrackAssoc.label = ('tevMuons:picky',)
78 tevMuonPickyTrackVTrackAssoc.usetracker = True
79 tevMuonPickyTrackVTrackAssoc.usemuon = True
80 
81 tevMuonDytTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
82 tevMuonDytTrackVTrackAssoc.associatormap = 'tpToTevDytTrackAssociation'
83 tevMuonDytTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
84 tevMuonDytTrackVTrackAssoc.label = ('tevMuons:dyt',)
85 tevMuonDytTrackVTrackAssoc.usetracker = True
86 tevMuonDytTrackVTrackAssoc.usemuon = True
87 
88 staCosmicMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
89 staCosmicMuonTrackVTrackAssoc.associatormap = 'tpToStaCosmicTrackAssociation'
90 staCosmicMuonTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
91 staCosmicMuonTrackVTrackAssoc.label = ('cosmicMuons',)
92 staCosmicMuonTrackVTrackAssoc.usetracker = False
93 staCosmicMuonTrackVTrackAssoc.usemuon = True
94 
95 glbCosmicMuonTrackVTrackAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
96 glbCosmicMuonTrackVTrackAssoc.associatormap = 'tpToGlbCosmicTrackAssociation'
97 glbCosmicMuonTrackVTrackAssoc.associators = ('trackAssociatorByDeltaR',)
98 glbCosmicMuonTrackVTrackAssoc.label = ('globalCosmicMuons',)
99 glbCosmicMuonTrackVTrackAssoc.usetracker = True
100 glbCosmicMuonTrackVTrackAssoc.usemuon = True
101 
102 trkProbeTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
103 #trkMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
104 trkProbeTrackVMuonAssoc.associatormap = 'tpToTkMuonAssociation'
105 trkProbeTrackVMuonAssoc.associators = ('MuonAssociationByHits',)
106 ##trkMuonTrackVMuonAssoc.label = ('generalTracks',)
107 trkProbeTrackVMuonAssoc.label = ('probeTracks',)
108 trkProbeTrackVMuonAssoc.usetracker = True
109 trkProbeTrackVMuonAssoc.usemuon = False
110 
111 staSeedTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
112 staSeedTrackVMuonAssoc.associatormap = 'tpToStaSeedAssociation'
113 staSeedTrackVMuonAssoc.associators = ('MuonAssociationByHits',)
114 staSeedTrackVMuonAssoc.label = ('seedsOfSTAmuons',)
115 staSeedTrackVMuonAssoc.usetracker = False
116 staSeedTrackVMuonAssoc.usemuon = True
117 
118 staMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
119 staMuonTrackVMuonAssoc.associatormap = 'tpToStaMuonAssociation'
120 staMuonTrackVMuonAssoc.associators = ('MuonAssociationByHits',)
121 staMuonTrackVMuonAssoc.label = ('standAloneMuons',)
122 staMuonTrackVMuonAssoc.usetracker = False
123 staMuonTrackVMuonAssoc.usemuon = True
124 
125 staUpdMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
126 staUpdMuonTrackVMuonAssoc.associatormap = 'tpToStaUpdMuonAssociation'
127 staUpdMuonTrackVMuonAssoc.associators = ('MuonAssociationByHits',)
128 staUpdMuonTrackVMuonAssoc.label = ('standAloneMuons:UpdatedAtVtx',)
129 staUpdMuonTrackVMuonAssoc.usetracker = False
130 staUpdMuonTrackVMuonAssoc.usemuon = True
131 
132 glbMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
133 glbMuonTrackVMuonAssoc.associatormap = 'tpToGlbMuonAssociation'
134 glbMuonTrackVMuonAssoc.associators = ('MuonAssociationByHits',)
135 glbMuonTrackVMuonAssoc.label = ('extractedGlobalMuons',)
136 glbMuonTrackVMuonAssoc.usetracker = True
137 glbMuonTrackVMuonAssoc.usemuon = True
138 
139 staRefitMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
140 staRefitMuonTrackVMuonAssoc.associatormap = 'tpToStaRefitMuonAssociation'
141 staRefitMuonTrackVMuonAssoc.associators = ('MuonAssociationByHits',)
142 staRefitMuonTrackVMuonAssoc.label = ('refittedStandAloneMuons',)
143 staRefitMuonTrackVMuonAssoc.usetracker = False
144 staRefitMuonTrackVMuonAssoc.usemuon = True
145 
146 staRefitUpdMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
147 staRefitUpdMuonTrackVMuonAssoc.associatormap = 'tpToStaRefitUpdMuonAssociation'
148 staRefitUpdMuonTrackVMuonAssoc.associators = ('MuonAssociationByHits',)
149 staRefitUpdMuonTrackVMuonAssoc.label = ('refittedStandAloneMuons:UpdatedAtVtx',)
150 staRefitUpdMuonTrackVMuonAssoc.usetracker = False
151 staRefitUpdMuonTrackVMuonAssoc.usemuon = True
152 
153 displacedTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
154 displacedTrackVMuonAssoc.associatormap = 'tpToDisplacedTrkMuonAssociation'
155 displacedTrackVMuonAssoc.associators = ('MuonAssociationByHits',)
156 displacedTrackVMuonAssoc.label = ('displacedTracks',)
157 displacedTrackVMuonAssoc.usetracker = True
158 displacedTrackVMuonAssoc.usemuon = False
159 displacedTrackVMuonAssoc.tipTP = cms.double(85.)
160 displacedTrackVMuonAssoc.lipTP = cms.double(210.)
161 
162 displacedStaSeedTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
163 displacedStaSeedTrackVMuonAssoc.associatormap = 'tpToDisplacedStaSeedAssociation'
164 displacedStaSeedTrackVMuonAssoc.associators = ('MuonAssociationByHits',)
165 displacedStaSeedTrackVMuonAssoc.label = ('seedsOfDisplacedSTAmuons',)
166 displacedStaSeedTrackVMuonAssoc.usetracker = False
167 displacedStaSeedTrackVMuonAssoc.usemuon = True
168 displacedStaSeedTrackVMuonAssoc.tipTP = cms.double(85.)
169 displacedStaSeedTrackVMuonAssoc.lipTP = cms.double(210.)
170 
171 displacedStaMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
172 displacedStaMuonTrackVMuonAssoc.associatormap = 'tpToDisplacedStaMuonAssociation'
173 displacedStaMuonTrackVMuonAssoc.associators = ('MuonAssociationByHits',)
174 displacedStaMuonTrackVMuonAssoc.label = ('displacedStandAloneMuons',)
175 displacedStaMuonTrackVMuonAssoc.usetracker = False
176 displacedStaMuonTrackVMuonAssoc.usemuon = True
177 displacedStaMuonTrackVMuonAssoc.tipTP = cms.double(85.)
178 displacedStaMuonTrackVMuonAssoc.lipTP = cms.double(210.)
179 
180 displacedGlbMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
181 displacedGlbMuonTrackVMuonAssoc.associatormap = 'tpToDisplacedGlbMuonAssociation'
182 displacedGlbMuonTrackVMuonAssoc.associators = ('MuonAssociationByHits',)
183 displacedGlbMuonTrackVMuonAssoc.label = ('displacedGlobalMuons',)
184 displacedGlbMuonTrackVMuonAssoc.usetracker = True
185 displacedGlbMuonTrackVMuonAssoc.usemuon = True
186 displacedGlbMuonTrackVMuonAssoc.tipTP = cms.double(85.)
187 displacedGlbMuonTrackVMuonAssoc.lipTP = cms.double(210.)
188 
189 staSETMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
190 staSETMuonTrackVMuonAssoc.associatormap = 'tpToStaSETMuonAssociation'
191 staSETMuonTrackVMuonAssoc.associators = ('MuonAssociationByHits',)
192 staSETMuonTrackVMuonAssoc.label = ('standAloneSETMuons',)
193 staSETMuonTrackVMuonAssoc.usetracker = False
194 staSETMuonTrackVMuonAssoc.usemuon = True
195 
196 staSETUpdMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
197 staSETUpdMuonTrackVMuonAssoc.associatormap = 'tpToStaSETUpdMuonAssociation'
198 staSETUpdMuonTrackVMuonAssoc.associators = ('MuonAssociationByHits',)
199 staSETUpdMuonTrackVMuonAssoc.label = ('standAloneSETMuons:UpdatedAtVtx',)
200 staSETUpdMuonTrackVMuonAssoc.usetracker = False
201 staSETUpdMuonTrackVMuonAssoc.usemuon = True
202 
203 glbSETMuonTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
204 glbSETMuonTrackVMuonAssoc.associatormap = 'tpToGlbSETMuonAssociation'
205 glbSETMuonTrackVMuonAssoc.associators = ('MuonAssociationByHits',)
206 glbSETMuonTrackVMuonAssoc.label = ('globalSETMuons',)
207 glbSETMuonTrackVMuonAssoc.usetracker = True
208 glbSETMuonTrackVMuonAssoc.usemuon = True
209 
210 tevMuonFirstTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
211 tevMuonFirstTrackVMuonAssoc.associatormap = 'tpToTevFirstMuonAssociation'
212 tevMuonFirstTrackVMuonAssoc.associators = ('MuonAssociationByHits',)
213 tevMuonFirstTrackVMuonAssoc.label = ('tevMuons:firstHit',)
214 tevMuonFirstTrackVMuonAssoc.usetracker = True
215 tevMuonFirstTrackVMuonAssoc.usemuon = True
216 
217 tevMuonPickyTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
218 tevMuonPickyTrackVMuonAssoc.associatormap = 'tpToTevPickyMuonAssociation'
219 tevMuonPickyTrackVMuonAssoc.associators = ('MuonAssociationByHits',)
220 tevMuonPickyTrackVMuonAssoc.label = ('tevMuons:picky',)
221 tevMuonPickyTrackVMuonAssoc.usetracker = True
222 tevMuonPickyTrackVMuonAssoc.usemuon = True
223 
224 tevMuonDytTrackVMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
225 tevMuonDytTrackVMuonAssoc.associatormap = 'tpToTevDytMuonAssociation'
226 tevMuonDytTrackVMuonAssoc.associators = ('MuonAssociationByHits',)
227 tevMuonDytTrackVMuonAssoc.label = ('tevMuons:dyt',)
228 tevMuonDytTrackVMuonAssoc.usetracker = True
229 tevMuonDytTrackVMuonAssoc.usemuon = True
230 
231 # cosmics 2-leg reco
232 trkCosmicMuonTrackVSelMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
233 trkCosmicMuonTrackVSelMuonAssoc.associatormap = 'tpToTkCosmicSelMuonAssociation'
234 trkCosmicMuonTrackVSelMuonAssoc.associators = ('MuonAssociationByHits',)
235 trkCosmicMuonTrackVSelMuonAssoc.label = ('ctfWithMaterialTracksP5LHCNavigation',)
236 trkCosmicMuonTrackVSelMuonAssoc.usetracker = True
237 trkCosmicMuonTrackVSelMuonAssoc.usemuon = False
238 trkCosmicMuonTrackVSelMuonAssoc.parametersDefiner = cms.string('CosmicParametersDefinerForTP')
239 trkCosmicMuonTrackVSelMuonAssoc.ptMinTP = cms.double(1.)
240 trkCosmicMuonTrackVSelMuonAssoc.tipTP = cms.double(80.)
241 trkCosmicMuonTrackVSelMuonAssoc.lipTP = cms.double(212.)
242 trkCosmicMuonTrackVSelMuonAssoc.BiDirectional_RecoToSim_association = False
243 
244 staCosmicMuonTrackVSelMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
245 staCosmicMuonTrackVSelMuonAssoc.associatormap = 'tpToStaCosmicSelMuonAssociation'
246 staCosmicMuonTrackVSelMuonAssoc.associators = ('MuonAssociationByHits',)
247 staCosmicMuonTrackVSelMuonAssoc.label = ('cosmicMuons',)
248 staCosmicMuonTrackVSelMuonAssoc.usetracker = False
249 staCosmicMuonTrackVSelMuonAssoc.usemuon = True
250 staCosmicMuonTrackVSelMuonAssoc.parametersDefiner = cms.string('CosmicParametersDefinerForTP')
251 staCosmicMuonTrackVSelMuonAssoc.ptMinTP = cms.double(1.)
252 staCosmicMuonTrackVSelMuonAssoc.tipTP = cms.double(80.)
253 staCosmicMuonTrackVSelMuonAssoc.lipTP = cms.double(212.)
254 staCosmicMuonTrackVSelMuonAssoc.BiDirectional_RecoToSim_association = False
255 
256 glbCosmicMuonTrackVSelMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
257 glbCosmicMuonTrackVSelMuonAssoc.associatormap = 'tpToGlbCosmicSelMuonAssociation'
258 glbCosmicMuonTrackVSelMuonAssoc.associators = ('MuonAssociationByHits',)
259 glbCosmicMuonTrackVSelMuonAssoc.label = ('globalCosmicMuons',)
260 glbCosmicMuonTrackVSelMuonAssoc.usetracker = True
261 glbCosmicMuonTrackVSelMuonAssoc.usemuon = True
262 glbCosmicMuonTrackVSelMuonAssoc.parametersDefiner = cms.string('CosmicParametersDefinerForTP')
263 glbCosmicMuonTrackVSelMuonAssoc.ptMinTP = cms.double(1.)
264 glbCosmicMuonTrackVSelMuonAssoc.tipTP = cms.double(80.)
265 glbCosmicMuonTrackVSelMuonAssoc.lipTP = cms.double(212.)
266 glbCosmicMuonTrackVSelMuonAssoc.BiDirectional_RecoToSim_association = False
267 
268 # cosmics 1-leg reco
269 trkCosmic1LegMuonTrackVSelMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
270 trkCosmic1LegMuonTrackVSelMuonAssoc.associatormap = 'tpToTkCosmic1LegSelMuonAssociation'
271 trkCosmic1LegMuonTrackVSelMuonAssoc.associators = ('MuonAssociationByHits',)
272 trkCosmic1LegMuonTrackVSelMuonAssoc.label = ('ctfWithMaterialTracksP5',)
273 trkCosmic1LegMuonTrackVSelMuonAssoc.usetracker = True
274 trkCosmic1LegMuonTrackVSelMuonAssoc.usemuon = False
275 trkCosmic1LegMuonTrackVSelMuonAssoc.parametersDefiner = cms.string('CosmicParametersDefinerForTP')
276 trkCosmic1LegMuonTrackVSelMuonAssoc.ptMinTP = cms.double(1.)
277 trkCosmic1LegMuonTrackVSelMuonAssoc.tipTP = cms.double(80.)
278 trkCosmic1LegMuonTrackVSelMuonAssoc.lipTP = cms.double(212.)
279 trkCosmic1LegMuonTrackVSelMuonAssoc.BiDirectional_RecoToSim_association = False
280 
281 staCosmic1LegMuonTrackVSelMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
282 staCosmic1LegMuonTrackVSelMuonAssoc.associatormap = 'tpToStaCosmic1LegSelMuonAssociation'
283 staCosmic1LegMuonTrackVSelMuonAssoc.associators = ('MuonAssociationByHits',)
284 staCosmic1LegMuonTrackVSelMuonAssoc.label = ('cosmicMuons1Leg',)
285 staCosmic1LegMuonTrackVSelMuonAssoc.usetracker = False
286 staCosmic1LegMuonTrackVSelMuonAssoc.usemuon = True
287 staCosmic1LegMuonTrackVSelMuonAssoc.parametersDefiner = cms.string('CosmicParametersDefinerForTP')
288 staCosmic1LegMuonTrackVSelMuonAssoc.ptMinTP = cms.double(1.)
289 staCosmic1LegMuonTrackVSelMuonAssoc.tipTP = cms.double(80.)
290 staCosmic1LegMuonTrackVSelMuonAssoc.lipTP = cms.double(212.)
291 staCosmic1LegMuonTrackVSelMuonAssoc.BiDirectional_RecoToSim_association = False
292 
293 glbCosmic1LegMuonTrackVSelMuonAssoc = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
294 glbCosmic1LegMuonTrackVSelMuonAssoc.associatormap = 'tpToGlbCosmic1LegSelMuonAssociation'
295 glbCosmic1LegMuonTrackVSelMuonAssoc.associators = ('MuonAssociationByHits',)
296 glbCosmic1LegMuonTrackVSelMuonAssoc.label = ('globalCosmicMuons1Leg',)
297 glbCosmic1LegMuonTrackVSelMuonAssoc.usetracker = True
298 glbCosmic1LegMuonTrackVSelMuonAssoc.usemuon = True
299 glbCosmic1LegMuonTrackVSelMuonAssoc.parametersDefiner = cms.string('CosmicParametersDefinerForTP')
300 glbCosmic1LegMuonTrackVSelMuonAssoc.ptMinTP = cms.double(1.)
301 glbCosmic1LegMuonTrackVSelMuonAssoc.tipTP = cms.double(80.)
302 glbCosmic1LegMuonTrackVSelMuonAssoc.lipTP = cms.double(212.)
303 glbCosmic1LegMuonTrackVSelMuonAssoc.BiDirectional_RecoToSim_association = False
304 
305 # Configurations for RecoMuonValidators
308 
309 #import SimGeneral.MixingModule.mixNoPU_cfi
311 from SimMuon.MCTruth.MuonAssociatorByHits_cfi import muonAssociatorByHitsCommonParameters
312 
313 #tracker
314 muonAssociatorByHitsNoSimHitsHelperTrk = SimMuon.MCTruth.muonAssociatorByHitsNoSimHitsHelper_cfi.muonAssociatorByHitsNoSimHitsHelper.clone()
315 muonAssociatorByHitsNoSimHitsHelperTrk.UseTracker = True
316 muonAssociatorByHitsNoSimHitsHelperTrk.UseMuon = False
317 recoMuonVMuAssoc_trk = Validation.RecoMuon.RecoMuonValidator_cfi.recoMuonValidator.clone()
318 recoMuonVMuAssoc_trk.subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_Trk'
319 recoMuonVMuAssoc_trk.simLabel = 'mix:MergedTrackTruth'
320 recoMuonVMuAssoc_trk.muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperTrk'
321 recoMuonVMuAssoc_trk.trackType = 'inner'
322 recoMuonVMuAssoc_trk.selection = "isTrackerMuon"
323 
324 #tracker and PF
325 muonAssociatorByHitsNoSimHitsHelperTrkPF = SimMuon.MCTruth.muonAssociatorByHitsNoSimHitsHelper_cfi.muonAssociatorByHitsNoSimHitsHelper.clone()
326 muonAssociatorByHitsNoSimHitsHelperTrkPF.UseTracker = True
327 muonAssociatorByHitsNoSimHitsHelperTrkPF.UseMuon = False
328 recoMuonVMuAssoc_trkPF = Validation.RecoMuon.RecoMuonValidator_cfi.recoMuonValidator.clone()
329 recoMuonVMuAssoc_trkPF.subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_TrkPF'
330 recoMuonVMuAssoc_trkPF.usePFMuon = True
331 recoMuonVMuAssoc_trkPF.simLabel = 'mix:MergedTrackTruth'
332 recoMuonVMuAssoc_trkPF.muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperTrkPF'
333 recoMuonVMuAssoc_trkPF.trackType = 'inner'
334 recoMuonVMuAssoc_trkPF.selection = "isTrackerMuon & isPFMuon"
335 
336 #standalone
337 muonAssociatorByHitsNoSimHitsHelperStandalone = SimMuon.MCTruth.muonAssociatorByHitsNoSimHitsHelper_cfi.muonAssociatorByHitsNoSimHitsHelper.clone()
338 muonAssociatorByHitsNoSimHitsHelperStandalone.UseTracker = False
339 muonAssociatorByHitsNoSimHitsHelperStandalone.UseMuon = True
340 recoMuonVMuAssoc_sta = Validation.RecoMuon.RecoMuonValidator_cfi.recoMuonValidator.clone()
341 recoMuonVMuAssoc_sta.subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_Sta'
342 recoMuonVMuAssoc_sta.simLabel = 'mix:MergedTrackTruth'
343 recoMuonVMuAssoc_sta.muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperStandalone'
344 recoMuonVMuAssoc_sta.trackType = 'outer'
345 recoMuonVMuAssoc_sta.selection = "isStandAloneMuon"
346 
347 #seed of StandAlone
348 muonAssociatorByHitsNoSimHitsHelperSeedStandalone = SimMuon.MCTruth.muonAssociatorByHitsNoSimHitsHelper_cfi.muonAssociatorByHitsNoSimHitsHelper.clone()
349 muonAssociatorByHitsNoSimHitsHelperSeedStandalone.UseTracker = False
350 muonAssociatorByHitsNoSimHitsHelperSeedStandalone.UseMuon = True
351 recoMuonVMuAssoc_seedSta = Validation.RecoMuon.RecoMuonValidator_cfi.recoMuonValidator.clone()
352 recoMuonVMuAssoc_seedSta.subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_SeedSta'
353 recoMuonVMuAssoc_seedSta.simLabel = 'mix:MergedTrackTruth'
354 recoMuonVMuAssoc_seedSta.muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperStandalone'
355 recoMuonVMuAssoc_seedSta.trackType = 'outer'
356 recoMuonVMuAssoc_seedSta.selection = ""
357 
358 #standalone and PF
359 muonAssociatorByHitsNoSimHitsHelperStandalonePF = SimMuon.MCTruth.muonAssociatorByHitsNoSimHitsHelper_cfi.muonAssociatorByHitsNoSimHitsHelper.clone()
360 muonAssociatorByHitsNoSimHitsHelperStandalonePF.UseTracker = False
361 muonAssociatorByHitsNoSimHitsHelperStandalonePF.UseMuon = True
362 recoMuonVMuAssoc_staPF = Validation.RecoMuon.RecoMuonValidator_cfi.recoMuonValidator.clone()
363 recoMuonVMuAssoc_staPF.subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_StaPF'
364 recoMuonVMuAssoc_staPF.usePFMuon = True
365 recoMuonVMuAssoc_staPF.simLabel = 'mix:MergedTrackTruth'
366 recoMuonVMuAssoc_staPF.muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperStandalonePF'
367 recoMuonVMuAssoc_staPF.trackType = 'outer'
368 recoMuonVMuAssoc_staPF.selection = "isStandAloneMuon & isPFMuon"
369 
370 #global
371 muonAssociatorByHitsNoSimHitsHelperGlobal = SimMuon.MCTruth.muonAssociatorByHitsNoSimHitsHelper_cfi.muonAssociatorByHitsNoSimHitsHelper.clone()
372 muonAssociatorByHitsNoSimHitsHelperGlobal.UseTracker = True
373 muonAssociatorByHitsNoSimHitsHelperGlobal.UseMuon = True
374 recoMuonVMuAssoc_glb = Validation.RecoMuon.RecoMuonValidator_cfi.recoMuonValidator.clone()
375 recoMuonVMuAssoc_glb.subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_Glb'
376 recoMuonVMuAssoc_glb.simLabel = 'mix:MergedTrackTruth'
377 recoMuonVMuAssoc_glb.muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperGlobal'
378 recoMuonVMuAssoc_glb.trackType = 'global'
379 recoMuonVMuAssoc_glb.selection = "isGlobalMuon"
380 
381 #global and PF
382 muonAssociatorByHitsNoSimHitsHelperGlobalPF = SimMuon.MCTruth.muonAssociatorByHitsNoSimHitsHelper_cfi.muonAssociatorByHitsNoSimHitsHelper.clone()
383 muonAssociatorByHitsNoSimHitsHelperGlobalPF.UseTracker = True
384 muonAssociatorByHitsNoSimHitsHelperGlobalPF.UseMuon = True
385 recoMuonVMuAssoc_glbPF = Validation.RecoMuon.RecoMuonValidator_cfi.recoMuonValidator.clone()
386 recoMuonVMuAssoc_glbPF.subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_GlbPF'
387 recoMuonVMuAssoc_glbPF.usePFMuon = True
388 recoMuonVMuAssoc_glbPF.simLabel = 'mix:MergedTrackTruth'
389 recoMuonVMuAssoc_glbPF.muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperGlobalPF'
390 recoMuonVMuAssoc_glbPF.trackType = 'global'
391 recoMuonVMuAssoc_glbPF.selection = "isGlobalMuon & isPFMuon"
392 
393 #tight
394 muonAssociatorByHitsNoSimHitsHelperTight = SimMuon.MCTruth.muonAssociatorByHitsNoSimHitsHelper_cfi.muonAssociatorByHitsNoSimHitsHelper.clone()
395 muonAssociatorByHitsNoSimHitsHelperTight.UseTracker = True
396 muonAssociatorByHitsNoSimHitsHelperTight.UseMuon = True
397 recoMuonVMuAssoc_tgt = Validation.RecoMuon.RecoMuonValidator_cfi.recoMuonValidator.clone()
398 recoMuonVMuAssoc_tgt.subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_Tgt'
399 recoMuonVMuAssoc_tgt.simLabel = 'mix:MergedTrackTruth'
400 recoMuonVMuAssoc_tgt.muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperTight'
401 recoMuonVMuAssoc_tgt.trackType = 'global'
402 recoMuonVMuAssoc_tgt.selection = 'isGlobalMuon'
403 recoMuonVMuAssoc_tgt.wantTightMuon = True
404 recoMuonVMuAssoc_tgt.beamSpot = 'offlineBeamSpot'
405 recoMuonVMuAssoc_tgt.primaryVertex = 'offlinePrimaryVertices'
406 
407 # Muon validation sequences
408 muonValidation_seq = cms.Sequence(
409  probeTracks_seq + tpToTkMuonAssociation + trkProbeTrackVMuonAssoc
410  +trackAssociatorByHits + tpToTkmuTrackAssociation + trkMuonTrackVTrackAssoc
411  +seedsOfSTAmuons_seq + tpToStaSeedAssociation + staSeedTrackVMuonAssoc
412  +tpToStaMuonAssociation + staMuonTrackVMuonAssoc
413  +tpToStaUpdMuonAssociation + staUpdMuonTrackVMuonAssoc
414  +extractedMuonTracks_seq + tpToGlbMuonAssociation + glbMuonTrackVMuonAssoc
415  +muonAssociatorByHitsNoSimHitsHelperTrk +recoMuonVMuAssoc_trk
416  +muonAssociatorByHitsNoSimHitsHelperStandalone +recoMuonVMuAssoc_sta
417  +muonAssociatorByHitsNoSimHitsHelperGlobal +recoMuonVMuAssoc_glb
418  +muonAssociatorByHitsNoSimHitsHelperTight +recoMuonVMuAssoc_tgt
419 )
420 
421 muonValidationTEV_seq = cms.Sequence(
422  tpToTevFirstMuonAssociation + tevMuonFirstTrackVMuonAssoc
423  +tpToTevPickyMuonAssociation + tevMuonPickyTrackVMuonAssoc
424  +tpToTevDytMuonAssociation + tevMuonDytTrackVMuonAssoc
425 )
426 
427 muonValidationRefit_seq = cms.Sequence(
428  tpToStaRefitMuonAssociation + staRefitMuonTrackVMuonAssoc
429  +tpToStaRefitUpdMuonAssociation + staRefitUpdMuonTrackVMuonAssoc
430 )
431 
432 muonValidationDisplaced_seq = cms.Sequence(
433  seedsOfDisplacedSTAmuons_seq + tpToDisplacedStaSeedAssociation + displacedStaSeedTrackVMuonAssoc
434  +tpToDisplacedStaMuonAssociation + displacedStaMuonTrackVMuonAssoc
435  +tpToDisplacedTrkMuonAssociation + displacedTrackVMuonAssoc
436  +tpToDisplacedGlbMuonAssociation + displacedGlbMuonTrackVMuonAssoc
437 )
438 
439 muonValidationSET_seq = cms.Sequence(
440  tpToStaSETMuonAssociation + staSETMuonTrackVMuonAssoc
441  +tpToStaSETUpdMuonAssociation + staSETUpdMuonTrackVMuonAssoc
442  +tpToGlbSETMuonAssociation + glbSETMuonTrackVMuonAssoc
443 )
444 
445 muonValidationCosmic_seq = cms.Sequence(
446  tpToTkCosmicSelMuonAssociation + trkCosmicMuonTrackVSelMuonAssoc
447  +tpToTkCosmic1LegSelMuonAssociation + trkCosmic1LegMuonTrackVSelMuonAssoc
448  +tpToStaCosmicSelMuonAssociation + staCosmicMuonTrackVSelMuonAssoc
449  +tpToStaCosmic1LegSelMuonAssociation + staCosmic1LegMuonTrackVSelMuonAssoc
450  +tpToGlbCosmicSelMuonAssociation + glbCosmicMuonTrackVSelMuonAssoc
451  +tpToGlbCosmic1LegSelMuonAssociation + glbCosmic1LegMuonTrackVSelMuonAssoc
452 )
453 
454 # The full offline muon validation sequence
455 recoMuonValidation = cms.Sequence(
456  muonValidation_seq + muonValidationTEV_seq + muonValidationRefit_seq + muonValidationDisplaced_seq + muonValidationSET_seq
457 )
458 
459 from Configuration.StandardSequences.Eras import eras
460 # no displaces or SET muons in fastsim
461 if eras.fastSim.isChosen():
462  recoMuonValidation = cms.Sequence(muonValidation_seq + muonValidationTEV_seq + muonValidationRefit_seq)
463 
464 # sequence for cosmic muons
465 recoCosmicMuonValidation = cms.Sequence(
466  muonValidationCosmic_seq
467 )