CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
histoParameters_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 defaultMuonHistoParameters = cms.PSet(
4 
5  minNTracks = cms.int32(0),
6  maxNTracks = cms.int32(100),
7  nintNTracks = cms.int32(100),
8  #
9  minFTracks = cms.int32(0),
10  maxFTracks = cms.int32(20),
11  nintFTracks = cms.int32(20),
12  #
13  useFabsEta = cms.bool(False),
14  minEta = cms.double(-2.5),
15  maxEta = cms.double(2.5),
16  nintEta = cms.int32(50),
17  #
18  minPt = cms.double(0.9),
19  maxPt = cms.double(2000.),
20  nintPt = cms.int32(50),
21  useLogPt=cms.untracked.bool(True),
22  useInvPt = cms.bool(False),
23  #
24  minPhi = cms.double(-3.1416),
25  maxPhi = cms.double(3.1416),
26  nintPhi = cms.int32(36),
27  #
28  minDxy = cms.double(-2.),
29  maxDxy = cms.double(2.),
30  nintDxy = cms.int32(40),
31  #
32  minDz = cms.double(-30.),
33  maxDz = cms.double(30.),
34  nintDz = cms.int32(60),
35  #
36  minRpos = cms.double(0.),
37  maxRpos = cms.double(4.),
38  nintRpos = cms.int32(40),
39  #
40  minZpos = cms.double(-30.),
41  maxZpos = cms.double(30.),
42  nintZpos = cms.int32(60),
43  #
44  minPU = cms.double(-0.5),
45  maxPU = cms.double(199.5),
46  nintPU = cms.int32(100),
47  #
48  # switches to be set according to the input Track collection to properly count the number of hits in Eff vs N(SimHits)
49  usetracker = cms.bool(True),
50  usemuon = cms.bool(True),
51  #
52  # here set for GLB tracks, redefined for TRK and STA tracks
53  minNHit = cms.double(-0.5),
54  maxNHit = cms.double(80.5),
55  nintNHit = cms.int32(81),
56  #
57  # select doing TRK/MUO hits plots
58  do_TRKhitsPlots = cms.bool(True),
59  do_MUOhitsPlots = cms.bool(True),
60  #
61  minDTHit = cms.double(-0.5),
62  maxDTHit = cms.double(50.5),
63  nintDTHit = cms.int32(51),
64  #
65  minCSCHit = cms.double(-0.5),
66  maxCSCHit = cms.double(50.5),
67  nintCSCHit = cms.int32(51),
68  #
69  minRPCHit = cms.double(-0.5),
70  maxRPCHit = cms.double(10.5),
71  nintRPCHit = cms.int32(11),
72  #
73  minLayers = cms.double(-0.5),
74  maxLayers = cms.double(20.5),
75  nintLayers = cms.int32(21),
76  #
77  minPixels = cms.double(-0.5),
78  maxPixels = cms.double(5.5),
79  nintPixels = cms.int32(6),
80  #
81  ptRes_nbin = cms.int32(200),
82  ptRes_rangeMin = cms.double(-0.5),
83  ptRes_rangeMax = cms.double(0.5),
84  #
85  phiRes_nbin = cms.int32(200),
86  phiRes_rangeMin = cms.double(-0.01),
87  phiRes_rangeMax = cms.double(0.01),
88  #
89  etaRes_nbin = cms.int32(100),
90  etaRes_rangeMin = cms.double(-0.02),
91  etaRes_rangeMax = cms.double(0.02),
92  #
93  cotThetaRes_nbin = cms.int32(100),
94  cotThetaRes_rangeMin = cms.double(-0.01),
95  cotThetaRes_rangeMax = cms.double(0.01),
96  #
97  dxyRes_nbin = cms.int32(100),
98  dxyRes_rangeMin = cms.double(-0.02),
99  dxyRes_rangeMax = cms.double(0.02),
100  #
101  dzRes_nbin = cms.int32(100),
102  dzRes_rangeMin = cms.double(-0.05),
103  dzRes_rangeMax = cms.double(0.05)
104 )
105 
106 #####################################################################################
107 # TRK tracks
108 trkMuonHistoParameters = defaultMuonHistoParameters.clone()
109 trkMuonHistoParameters.usetracker = True
110 trkMuonHistoParameters.usemuon = False
111 trkMuonHistoParameters.nintNHit = 41
112 trkMuonHistoParameters.maxNHit = 40.5
113 trkMuonHistoParameters.do_TRKhitsPlots = True
114 trkMuonHistoParameters.do_MUOhitsPlots = False
115 #####################################################################################
116 # GEMmuon tracks
117 gemMuonHistoParameters = trkMuonHistoParameters.clone()
118 gemMuonHistoParameters.usetracker = True
119 gemMuonHistoParameters.usemuon = False
120 gemMuonHistoParameters.minEta = -2.8
121 gemMuonHistoParameters.maxEta = +2.8
122 gemMuonHistoParameters.nintEta = 48
123 #gemMuonHistoParameters.nintNHit = 41 # this is the tracker default
124 #gemMuonHistoParameters.maxNHit = 40.5
125 gemMuonHistoParameters.do_TRKhitsPlots = True
126 gemMuonHistoParameters.do_MUOhitsPlots = True # is this used in the current code ?
127 #####################################################################################
128 # ME0muon tracks
129 me0MuonHistoParameters = trkMuonHistoParameters.clone()
130 me0MuonHistoParameters.usetracker = True
131 me0MuonHistoParameters.usemuon = False
132 me0MuonHistoParameters.minEta = -2.8
133 me0MuonHistoParameters.maxEta = +2.8
134 me0MuonHistoParameters.nintEta = 56
135 #me0MuonHistoParameters.nintNHit = 41 # this is the tracker default
136 #me0MuonHistoParameters.maxNHit = 40.5
137 me0MuonHistoParameters.do_TRKhitsPlots = True
138 me0MuonHistoParameters.do_MUOhitsPlots = True # is this used in the current code ?
139 #####################################################################################
140 # STA tracks
141 staMuonHistoParameters = defaultMuonHistoParameters.clone()
142 staMuonHistoParameters.usetracker = False
143 staMuonHistoParameters.usemuon = True
144 staMuonHistoParameters.nintNHit = 61
145 staMuonHistoParameters.maxNHit = 60.5
146 staMuonHistoParameters.do_TRKhitsPlots = False
147 staMuonHistoParameters.do_MUOhitsPlots = True
148 ##
149 staMuonHistoParameters.nintDxy = 40
150 staMuonHistoParameters.minDxy = -10.
151 staMuonHistoParameters.maxDxy = 10.
152 ##
153 staMuonHistoParameters.ptRes_nbin = 200
154 staMuonHistoParameters.ptRes_rangeMin = -1.
155 staMuonHistoParameters.ptRes_rangeMax = 5.
156 ##
157 staMuonHistoParameters.phiRes_nbin = 200
158 staMuonHistoParameters.phiRes_rangeMin = -0.1
159 staMuonHistoParameters.phiRes_rangeMax = 0.1
160 ##
161 staMuonHistoParameters.etaRes_nbin = 100
162 staMuonHistoParameters.etaRes_rangeMin = -0.1
163 staMuonHistoParameters.etaRes_rangeMax = 0.1
164 ##
165 staMuonHistoParameters.cotThetaRes_nbin = 100
166 staMuonHistoParameters.cotThetaRes_rangeMin = -0.1
167 staMuonHistoParameters.cotThetaRes_rangeMax = 0.1
168 ##
169 staMuonHistoParameters.dxyRes_nbin = 100
170 staMuonHistoParameters.dxyRes_rangeMin = -10.
171 staMuonHistoParameters.dxyRes_rangeMax = 10.
172 ##
173 staMuonHistoParameters.dzRes_nbin = 100
174 staMuonHistoParameters.dzRes_rangeMin = -25.
175 staMuonHistoParameters.dzRes_rangeMax = 25.
176 #####################################################################################
177 # STA seeds (here hits are counting DT,CSC segments rather than individual hit layers)
178 staSeedMuonHistoParameters = staMuonHistoParameters.clone()
179 staSeedMuonHistoParameters.nintNHit = 7
180 staSeedMuonHistoParameters.maxNHit = 6.5
181 staSeedMuonHistoParameters.nintDTHit = 7
182 staSeedMuonHistoParameters.maxDTHit = 6.5
183 staSeedMuonHistoParameters.nintCSCHit = 7
184 staSeedMuonHistoParameters.maxCSCHit = 6.5
185 staSeedMuonHistoParameters.nintRPCHit = 7
186 staSeedMuonHistoParameters.maxRPCHit = 6.5
187 #####################################################################################
188 # STA Upd tracks
189 staUpdMuonHistoParameters = staMuonHistoParameters.clone()
190 staUpdMuonHistoParameters.dxyRes_nbin = 100
191 staUpdMuonHistoParameters.dxyRes_rangeMin = -1.
192 staUpdMuonHistoParameters.dxyRes_rangeMax = 1.
193 #####################################################################################
194 # GLB tracks
195 glbMuonHistoParameters = defaultMuonHistoParameters.clone()
196 glbMuonHistoParameters.usetracker = True
197 glbMuonHistoParameters.usemuon = True
198 glbMuonHistoParameters.nintNHit = 81
199 glbMuonHistoParameters.maxNHit = 80.5
200 glbMuonHistoParameters.do_TRKhitsPlots = True
201 glbMuonHistoParameters.do_MUOhitsPlots = True
202 
203 #####################################################################################
204 # Reco Muon tracks
205 recoMuonHistoParameters = defaultMuonHistoParameters.clone()
206 recoMuonHistoParameters.usetracker = True
207 recoMuonHistoParameters.usemuon = True
208 recoMuonHistoParameters.nintNHit = 81
209 recoMuonHistoParameters.maxNHit = 80.5
210 recoMuonHistoParameters.do_TRKhitsPlots = True
211 recoMuonHistoParameters.do_MUOhitsPlots = True
212 
213 #####################################################################################
214 # Displaced TRK tracks
215 displacedTrkMuonHistoParameters = trkMuonHistoParameters.clone()
216 displacedTrkMuonHistoParameters.nintDxy = 85
217 displacedTrkMuonHistoParameters.minDxy = -85.
218 displacedTrkMuonHistoParameters.maxDxy = 85.
219 #
220 displacedTrkMuonHistoParameters.nintDz = 84
221 displacedTrkMuonHistoParameters.minDz = -210.
222 displacedTrkMuonHistoParameters.maxDz = 210.
223 #
224 displacedTrkMuonHistoParameters.nintRpos = 85
225 displacedTrkMuonHistoParameters.minRpos = 0.
226 displacedTrkMuonHistoParameters.maxRpos = 85.
227 #
228 displacedTrkMuonHistoParameters.nintZpos = 84
229 displacedTrkMuonHistoParameters.minZpos = -210.
230 displacedTrkMuonHistoParameters.maxZpos = 210.
231 #####################################################################################
232 # Displaced muons: STA tracks
233 displacedStaMuonHistoParameters = staMuonHistoParameters.clone()
234 displacedStaMuonHistoParameters.nintDxy = 85
235 displacedStaMuonHistoParameters.minDxy = -85.
236 displacedStaMuonHistoParameters.maxDxy = 85.
237 #
238 displacedStaMuonHistoParameters.nintDz = 84
239 displacedStaMuonHistoParameters.minDz = -210.
240 displacedStaMuonHistoParameters.maxDz = 210.
241 #
242 displacedStaMuonHistoParameters.nintRpos = 85
243 displacedStaMuonHistoParameters.minRpos = 0.
244 displacedStaMuonHistoParameters.maxRpos = 85.
245 #
246 displacedStaMuonHistoParameters.nintZpos = 84
247 displacedStaMuonHistoParameters.minZpos = -210.
248 displacedStaMuonHistoParameters.maxZpos = 210.
249 #####################################################################################
250 # Displaced muons: STA seeds (here hits are counting DT,CSC segments rather than individual hit layers)
251 displacedStaSeedMuonHistoParameters = displacedStaMuonHistoParameters.clone()
252 displacedStaSeedMuonHistoParameters.nintNHit = 7
253 displacedStaSeedMuonHistoParameters.maxNHit = 6.5
254 displacedStaSeedMuonHistoParameters.nintDTHit = 7
255 displacedStaSeedMuonHistoParameters.maxDTHit = 6.5
256 displacedStaSeedMuonHistoParameters.nintCSCHit = 7
257 displacedStaSeedMuonHistoParameters.maxCSCHit = 6.5
258 displacedStaSeedMuonHistoParameters.nintRPCHit = 7
259 displacedStaSeedMuonHistoParameters.maxRPCHit = 6.5
260 #####################################################################################
261 # Displaced muons: GLB tracks
262 displacedGlbMuonHistoParameters = glbMuonHistoParameters.clone()
263 displacedGlbMuonHistoParameters.nintDxy = 85
264 displacedGlbMuonHistoParameters.minDxy = -85.
265 displacedGlbMuonHistoParameters.maxDxy = 85.
266 #
267 displacedGlbMuonHistoParameters.nintDz = 84
268 displacedGlbMuonHistoParameters.minDz = -210.
269 displacedGlbMuonHistoParameters.maxDz = 210.
270 #
271 displacedGlbMuonHistoParameters.nintRpos = 85
272 displacedGlbMuonHistoParameters.minRpos = 0.
273 displacedGlbMuonHistoParameters.maxRpos = 85.
274 #
275 displacedGlbMuonHistoParameters.nintZpos = 84
276 displacedGlbMuonHistoParameters.minZpos = -210.
277 displacedGlbMuonHistoParameters.maxZpos = 210.
278 #####################################################################################
279 # COSMIC muons
280 #####################################################################################
281 # cosmics: TRK tracks (2-legs)
282 trkCosmicMuonHistoParameters = trkMuonHistoParameters.clone()
283 trkCosmicMuonHistoParameters.nintDxy = 40
284 trkCosmicMuonHistoParameters.minDxy = -10.
285 trkCosmicMuonHistoParameters.maxDxy = 10.
286 #
287 trkCosmicMuonHistoParameters.nintDz = 50
288 trkCosmicMuonHistoParameters.minDz = -50.
289 trkCosmicMuonHistoParameters.maxDz = 50.
290 #
291 trkCosmicMuonHistoParameters.nintRpos = 40
292 trkCosmicMuonHistoParameters.minRpos = 0.
293 trkCosmicMuonHistoParameters.maxRpos = 10.
294 #
295 trkCosmicMuonHistoParameters.nintZpos = 50
296 trkCosmicMuonHistoParameters.minZpos = -50.
297 trkCosmicMuonHistoParameters.maxZpos = 50.
298 #####################################################################################
299 # cosmics: STA tracks (2-legs)
300 staCosmicMuonHistoParameters = staMuonHistoParameters.clone()
301 staCosmicMuonHistoParameters.nintDxy = 40
302 staCosmicMuonHistoParameters.minDxy = -10.
303 staCosmicMuonHistoParameters.maxDxy = 10.
304 #
305 staCosmicMuonHistoParameters.nintDz = 50
306 staCosmicMuonHistoParameters.minDz = -50.
307 staCosmicMuonHistoParameters.maxDz = 50.
308 #
309 staCosmicMuonHistoParameters.nintRpos = 40
310 staCosmicMuonHistoParameters.minRpos = 0.
311 staCosmicMuonHistoParameters.maxRpos = 10.
312 #
313 staCosmicMuonHistoParameters.nintZpos = 50
314 staCosmicMuonHistoParameters.minZpos = -50.
315 staCosmicMuonHistoParameters.maxZpos = 50.
316 #####################################################################################
317 # cosmics: GLB tracks (2-legs)
318 glbCosmicMuonHistoParameters = glbMuonHistoParameters.clone()
319 glbCosmicMuonHistoParameters.nintDxy = 40
320 glbCosmicMuonHistoParameters.minDxy = -10.
321 glbCosmicMuonHistoParameters.maxDxy = 10.
322 #
323 glbCosmicMuonHistoParameters.nintDz = 50
324 glbCosmicMuonHistoParameters.minDz = -50.
325 glbCosmicMuonHistoParameters.maxDz = 50.
326 #
327 glbCosmicMuonHistoParameters.nintRpos = 40
328 glbCosmicMuonHistoParameters.minRpos = 0.
329 glbCosmicMuonHistoParameters.maxRpos = 10.
330 #
331 glbCosmicMuonHistoParameters.nintZpos = 50
332 glbCosmicMuonHistoParameters.minZpos = -50.
333 glbCosmicMuonHistoParameters.maxZpos = 50.
334 #####################################################################################
335 # cosmics: TRK tracks (1-leg)
336 trkCosmic1LegMuonHistoParameters = trkCosmicMuonHistoParameters.clone()
337 trkCosmic1LegMuonHistoParameters.nintNHit = 81
338 trkCosmic1LegMuonHistoParameters.maxNHit = 80.5
339 #
340 trkCosmic1LegMuonHistoParameters.nintLayers = 31
341 trkCosmic1LegMuonHistoParameters.maxLayers = 30.5
342 #
343 trkCosmic1LegMuonHistoParameters.nintPixels = 11
344 trkCosmic1LegMuonHistoParameters.maxPixels = 10.5
345 #####################################################################################
346 # cosmics: STA tracks (1-leg)
347 staCosmic1LegMuonHistoParameters = staCosmicMuonHistoParameters.clone()
348 staCosmic1LegMuonHistoParameters.nintNHit = 121
349 staCosmic1LegMuonHistoParameters.maxNHit = 120.5
350 #
351 staCosmic1LegMuonHistoParameters.nintDTHit = 101
352 staCosmic1LegMuonHistoParameters.maxDTHit = 100.5
353 #
354 staCosmic1LegMuonHistoParameters.nintCSCHit = 101
355 staCosmic1LegMuonHistoParameters.maxCSCHit = 100.5
356 #
357 staCosmic1LegMuonHistoParameters.nintRPCHit = 21
358 staCosmic1LegMuonHistoParameters.maxRPCHit = 20.5
359 #####################################################################################
360 # cosmics: GLB tracks (1-leg)
361 glbCosmic1LegMuonHistoParameters = glbCosmicMuonHistoParameters.clone()
362 glbCosmic1LegMuonHistoParameters.nintNHit = 161
363 glbCosmic1LegMuonHistoParameters.maxNHit = 160.5
364 #
365 glbCosmic1LegMuonHistoParameters.nintDTHit = 101
366 glbCosmic1LegMuonHistoParameters.maxDTHit = 100.5
367 #
368 glbCosmic1LegMuonHistoParameters.nintCSCHit = 101
369 glbCosmic1LegMuonHistoParameters.maxCSCHit = 100.5
370 #
371 glbCosmic1LegMuonHistoParameters.nintRPCHit = 21
372 glbCosmic1LegMuonHistoParameters.maxRPCHit = 20.5
373 #
374 glbCosmic1LegMuonHistoParameters.nintLayers = 31
375 glbCosmic1LegMuonHistoParameters.maxLayers = 30.5
376 #
377 glbCosmic1LegMuonHistoParameters.nintPixels = 11
378 glbCosmic1LegMuonHistoParameters.maxPixels = 10.5
379 
380 
381 ## Customize ranges for phase 2 samples
382 # TRK tracks
383 trkMuonHistoParameters_phase2 = trkMuonHistoParameters.clone()
384 trkMuonHistoParameters_phase2.minPU = 150
385 trkMuonHistoParameters_phase2.maxPU = 250
386 
387 # GEMmuon tracks
388 gemMuonHistoParameters_phase2 = gemMuonHistoParameters.clone()
389 gemMuonHistoParameters_phase2.minPU = 150
390 gemMuonHistoParameters_phase2.maxPU = 250
391 gemMuonHistoParameters_phase2.maxNTracks = 150
392 gemMuonHistoParameters_phase2.nintNTracks = 100
393 gemMuonHistoParameters_phase2.maxFTracks = 50
394 gemMuonHistoParameters_phase2.nintFTracks = 50
395 
396 # STA tracks
397 staMuonHistoParameters_phase2 = staMuonHistoParameters.clone()
398 staMuonHistoParameters_phase2.minPU = 150
399 staMuonHistoParameters_phase2.maxPU = 250
400 
401 # STA seeds (here hits are counting DT,CSC segments rather than individual hit layers)
402 staSeedMuonHistoParameters_phase2 = staSeedMuonHistoParameters.clone()
403 staSeedMuonHistoParameters_phase2.minPU = 150
404 staSeedMuonHistoParameters_phase2.maxPU = 250
405 
406 # STA Upd tracks
407 staUpdMuonHistoParameters_phase2 = staUpdMuonHistoParameters.clone()
408 staUpdMuonHistoParameters_phase2.minPU = 150
409 staUpdMuonHistoParameters_phase2.maxPU = 250
410 
411 # GLB tracks
412 glbMuonHistoParameters_phase2 = glbMuonHistoParameters.clone()
413 glbMuonHistoParameters_phase2.minPU = 150
414 glbMuonHistoParameters_phase2.maxPU = 250
415 
416 #RecoMuon tracks
417 recoMuonHistoParameters_phase2 = recoMuonHistoParameters.clone()
418 recoMuonHistoParameters_phase2.minPU = 150
419 recoMuonHistoParameters_phase2.maxPU = 250
420 recoMuonHistoParameters_phase2.maxNTracks = 150
421 recoMuonHistoParameters_phase2.nintNTracks = 100
422 recoMuonHistoParameters_phase2.maxFTracks = 50
423 recoMuonHistoParameters_phase2.nintFTracks = 50
424 
425 # Displaced TRK tracks
426 displacedTrkMuonHistoParameters_phase2 = displacedTrkMuonHistoParameters.clone()
427 displacedTrkMuonHistoParameters_phase2.minPU = 150
428 displacedTrkMuonHistoParameters_phase2.maxPU = 250
429 
430 # Displaced muons: STA tracks
431 displacedStaMuonHistoParameters_phase2 = displacedStaMuonHistoParameters.clone()
432 displacedStaMuonHistoParameters_phase2.minPU = 150
433 displacedStaMuonHistoParameters_phase2.maxPU = 250
434 
435 # Displaced muons: GLB tracks
436 displacedGlbMuonHistoParameters_phase2 = displacedGlbMuonHistoParameters.clone()
437 displacedGlbMuonHistoParameters_phase2.minPU = 150
438 displacedGlbMuonHistoParameters_phase2.maxPU = 250