CMS 3D CMS Logo

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 
108 trkMuonHistoParameters = defaultMuonHistoParameters.clone(
109  usetracker = True,
110  usemuon = False,
111  nintNHit = 41,
112  maxNHit = 40.5,
113  do_TRKhitsPlots = True,
114  do_MUOhitsPlots = False
115 )
116 
118 gemMuonHistoParameters = trkMuonHistoParameters.clone(
119  usetracker = True,
120  usemuon = False,
121  minEta = -2.8,
122  maxEta = +2.8,
123  nintEta = 48,
124  #nintNHit = 41, # this is the tracker default
125  #maxNHit = 40.5,
126  do_TRKhitsPlots = True,
127  do_MUOhitsPlots = True # is this used in the current code ?
128 )
129 
131 me0MuonHistoParameters = trkMuonHistoParameters.clone(
132  usetracker = True,
133  usemuon = False,
134  minEta = -2.8,
135  maxEta = +2.8,
136  nintEta = 56,
137  #nintNHit = 41, # this is the tracker default
138  #maxNHit = 40.5,
139  do_TRKhitsPlots = True,
140  do_MUOhitsPlots = True # is this used in the current code ?
141 )
142 
144 staMuonHistoParameters = defaultMuonHistoParameters.clone(
145  usetracker = False,
146  usemuon = True,
147  nintNHit = 61,
148  maxNHit = 60.5,
149  do_TRKhitsPlots = False,
150  do_MUOhitsPlots = True,
151 
152  nintDxy = 40,
153  minDxy = -10.,
154  maxDxy = 10.,
155 
156  ptRes_nbin = 200,
157  ptRes_rangeMin = -1.,
158  ptRes_rangeMax = 5.,
159 
160  phiRes_nbin = 200,
161  phiRes_rangeMin = -0.1,
162  phiRes_rangeMax = 0.1,
163 
164  etaRes_nbin = 100,
165  etaRes_rangeMin = -0.1,
166  etaRes_rangeMax = 0.1,
167 
168  cotThetaRes_nbin = 100,
169  cotThetaRes_rangeMin = -0.1,
170  cotThetaRes_rangeMax = 0.1,
171 
172  dxyRes_nbin = 100,
173  dxyRes_rangeMin = -10.,
174  dxyRes_rangeMax = 10.,
175 
176  dzRes_nbin = 100,
177  dzRes_rangeMin = -25.,
178  dzRes_rangeMax = 25.
179 )
180 
182 staSeedMuonHistoParameters = staMuonHistoParameters.clone(
183  nintNHit = 7,
184  maxNHit = 6.5,
185  nintDTHit = 7,
186  maxDTHit = 6.5,
187  nintCSCHit = 7,
188  maxCSCHit = 6.5,
189  nintRPCHit = 7,
190  maxRPCHit = 6.5
191 )
192 
194 staUpdMuonHistoParameters = staMuonHistoParameters.clone(
195  dxyRes_nbin = 100,
196  dxyRes_rangeMin = -1.,
197  dxyRes_rangeMax = 1.
198 )
199 
201 glbMuonHistoParameters = defaultMuonHistoParameters.clone(
202  usetracker = True,
203  usemuon = True,
204  nintNHit = 81,
205  maxNHit = 80.5,
206  do_TRKhitsPlots = True,
207  do_MUOhitsPlots = True
208 )
209 
211 recoMuonHistoParameters = defaultMuonHistoParameters.clone(
212  usetracker = True,
213  usemuon = True,
214  nintNHit = 81,
215  maxNHit = 80.5,
216  do_TRKhitsPlots = True,
217  do_MUOhitsPlots = True
218 )
219 
221 displacedTrkMuonHistoParameters = trkMuonHistoParameters.clone(
222  nintDxy = 85,
223  minDxy = -85.,
224  maxDxy = 85.,
225  #
226  nintDz = 84,
227  minDz = -210.,
228  maxDz = 210.,
229  #
230  nintRpos = 85,
231  minRpos = 0.,
232  maxRpos = 85.,
233  #
234  nintZpos = 84,
235  minZpos = -210.,
236  maxZpos = 210.
237 )
238 
240 displacedStaMuonHistoParameters = staMuonHistoParameters.clone(
241  nintDxy = 85,
242  minDxy = -85.,
243  maxDxy = 85.,
244  #
245  nintDz = 84,
246  minDz = -210.,
247  maxDz = 210.,
248  #
249  nintRpos = 85,
250  minRpos = 0.,
251  maxRpos = 85.,
252  #
253  nintZpos = 84,
254  minZpos = -210.,
255  maxZpos = 210.
256 )
257 
259 displacedStaSeedMuonHistoParameters = displacedStaMuonHistoParameters.clone(
260  nintNHit = 7,
261  maxNHit = 6.5,
262  nintDTHit = 7,
263  maxDTHit = 6.5,
264  nintCSCHit = 7,
265  maxCSCHit = 6.5,
266  nintRPCHit = 7,
267  maxRPCHit = 6.5
268 )
269 
271 displacedGlbMuonHistoParameters = glbMuonHistoParameters.clone(
272  nintDxy = 85,
273  minDxy = -85.,
274  maxDxy = 85.,
275  #
276  nintDz = 84,
277  minDz = -210.,
278  maxDz = 210.,
279  #
280  nintRpos = 85,
281  minRpos = 0.,
282  maxRpos = 85.,
283  #
284  nintZpos = 84,
285  minZpos = -210.,
286  maxZpos = 210.
287 )
288 
292 trkCosmicMuonHistoParameters = trkMuonHistoParameters.clone(
293  nintDxy = 40,
294  minDxy = -10.,
295  maxDxy = 10.,
296  #
297  nintDz = 50,
298  minDz = -50.,
299  maxDz = 50.,
300  #
301  nintRpos = 40,
302  minRpos = 0.,
303  maxRpos = 10.,
304  #
305  nintZpos = 50,
306  minZpos = -50.,
307  maxZpos = 50.
308 )
309 
311 staCosmicMuonHistoParameters = staMuonHistoParameters.clone(
312  nintDxy = 40,
313  minDxy = -10.,
314  maxDxy = 10.,
315  #,
316  nintDz = 50,
317  minDz = -50.,
318  maxDz = 50.,
319  #
320  nintRpos = 40,
321  minRpos = 0.,
322  maxRpos = 10.,
323  #
324  nintZpos = 50,
325  minZpos = -50.,
326  maxZpos = 50.
327 )
328 
330 glbCosmicMuonHistoParameters = glbMuonHistoParameters.clone(
331  nintDxy = 40,
332  minDxy = -10.,
333  maxDxy = 10.,
334  #
335  nintDz = 50,
336  minDz = -50.,
337  maxDz = 50.,
338  #
339  nintRpos = 40,
340  minRpos = 0.,
341  maxRpos = 10.,
342  #
343  nintZpos = 50,
344  minZpos = -50.,
345  maxZpos = 50.
346 )
347 
349 trkCosmic1LegMuonHistoParameters = trkCosmicMuonHistoParameters.clone(
350  nintNHit = 81,
351  maxNHit = 80.5,
352  #
353  nintLayers = 31,
354  maxLayers = 30.5,
355  #
356  nintPixels = 11,
357  maxPixels = 10.5
358 )
359 
361 staCosmic1LegMuonHistoParameters = staCosmicMuonHistoParameters.clone(
362  nintNHit = 121,
363  maxNHit = 120.5,
364  #
365  nintDTHit = 101,
366  maxDTHit = 100.5,
367  #
368  nintCSCHit = 101,
369  maxCSCHit = 100.5,
370  #
371  nintRPCHit = 21,
372  maxRPCHit = 20.5
373 )
374 
376 glbCosmic1LegMuonHistoParameters = glbCosmicMuonHistoParameters.clone(
377  nintNHit = 161,
378  maxNHit = 160.5,
379  #
380  nintDTHit = 101,
381  maxDTHit = 100.5,
382  #
383  nintCSCHit = 101,
384  maxCSCHit = 100.5,
385  #
386  nintRPCHit = 21,
387  maxRPCHit = 20.5,
388  #
389  nintLayers = 31,
390  maxLayers = 30.5,
391  #
392  nintPixels = 11,
393  maxPixels = 10.5
394 )
395 
396 
398 trkMuonHistoParameters_phase2 = trkMuonHistoParameters.clone(
399  minPU = 150,
400  maxPU = 250
401 )
402 # GEMmuon tracks
403 gemMuonHistoParameters_phase2 = gemMuonHistoParameters.clone(
404  minPU = 150,
405  maxPU = 250,
406  maxNTracks = 150,
407  nintNTracks = 100,
408  maxFTracks = 50,
409  nintFTracks = 50
410 )
411 # STA tracks
412 staMuonHistoParameters_phase2 = staMuonHistoParameters.clone(
413  minPU = 150,
414  maxPU = 250
415 )
416 # STA seeds (here hits are counting DT,CSC segments rather than individual hit layers)
417 staSeedMuonHistoParameters_phase2 = staSeedMuonHistoParameters.clone(
418  minPU = 150,
419  maxPU = 250
420 )
421 # STA Upd tracks
422 staUpdMuonHistoParameters_phase2 = staUpdMuonHistoParameters.clone(
423  minPU = 150,
424  maxPU = 250
425 )
426 # GLB tracks
427 glbMuonHistoParameters_phase2 = glbMuonHistoParameters.clone(
428  minPU = 150,
429  maxPU = 250
430 )
431 #RecoMuon tracks
432 recoMuonHistoParameters_phase2 = recoMuonHistoParameters.clone(
433  minPU = 150,
434  maxPU = 250,
435  maxNTracks = 150,
436  nintNTracks = 100,
437  maxFTracks = 50,
438  nintFTracks = 50
439 )
440 # Displaced TRK tracks
441 displacedTrkMuonHistoParameters_phase2 = displacedTrkMuonHistoParameters.clone(
442  minPU = 150,
443  maxPU = 250
444 )
445 # Displaced muons: STA tracks
446 displacedStaMuonHistoParameters_phase2 = displacedStaMuonHistoParameters.clone(
447  minPU = 150,
448  maxPU = 250
449 )
450 # Displaced muons: GLB tracks
451 displacedGlbMuonHistoParameters_phase2 = displacedGlbMuonHistoParameters.clone(
452  minPU = 150,
453  maxPU = 250
454 )