CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiPixelSimParameters_cfi.py
Go to the documentation of this file.
2 
3 # This object is used to make configuration changes for different running
4 # scenarios, in this case for Run 2. See the code at the end of the
5 # SiPixelSimBlock definition.
6 from Configuration.StandardSequences.Eras import eras
7 
9  """
10  Function that modifies the pixel digitiser for Run 2 with 25ns bunchspacing.
11  First argument is the pixelDigitizer object.
12  """
13  # DynamicInefficency - 13TeV - 25ns case
14  digitizer.theInstLumiScaleFactor = cms.double(364)
15  digitizer.theLadderEfficiency_BPix1 = cms.vdouble( [1]*20 ) # this syntax makes an array with 20 copies of "1"
16  digitizer.theLadderEfficiency_BPix2 = cms.vdouble( [1]*32 )
17  digitizer.theLadderEfficiency_BPix3 = cms.vdouble( [1]*44 )
18  digitizer.theModuleEfficiency_BPix1 = cms.vdouble( 1, 1, 1, 1, )
19  digitizer.theModuleEfficiency_BPix2 = cms.vdouble( 1, 1, 1, 1, )
20  digitizer.theModuleEfficiency_BPix3 = cms.vdouble( 1, 1, 1, 1 )
21  digitizer.thePUEfficiency_BPix1 = cms.vdouble( 1.00023, -3.18350e-06, 5.08503e-10, -6.79785e-14 )
22  digitizer.thePUEfficiency_BPix2 = cms.vdouble( 9.99974e-01, -8.91313e-07, 5.29196e-12, -2.28725e-15 )
23  digitizer.thePUEfficiency_BPix3 = cms.vdouble( 1.00005, -6.59249e-07, 2.75277e-11, -1.62683e-15 )
24 
26  """
27  Function that modifies the pixel digitiser for Run 2 with 50ns bunchspacing.
28 
29  First argument is the pixelDigitizer object.
30  """
31  # DynamicInefficency - 13TeV - 50ns case
32  digitizer.theInstLumiScaleFactor = cms.double(246.4)
33  digitizer.theLadderEfficiency_BPix1 = cms.vdouble( [0.979259,0.976677]*10 ) # This syntax makes a 20 element array of alternating numbers
34  digitizer.theLadderEfficiency_BPix2 = cms.vdouble( [0.994321,0.993944]*16 )
35  digitizer.theLadderEfficiency_BPix3 = cms.vdouble( [0.996787,0.996945]*22 )
36 
37 SiPixelSimBlock = cms.PSet(
38  DoPixelAging = cms.bool(False),
39  ReadoutNoiseInElec = cms.double(350.0),
40  deltaProductionCut = cms.double(0.03),
41  RoutList = cms.vstring(
42  'TrackerHitsPixelBarrelLowTof',
43  'TrackerHitsPixelBarrelHighTof',
44  'TrackerHitsPixelEndcapLowTof',
45  'TrackerHitsPixelEndcapHighTof'),
46  OffsetSmearing = cms.double(0.0),
47  ThresholdInElectrons_FPix = cms.double(3000.0),
48  ThresholdInElectrons_BPix = cms.double(3500.0),
49  ThresholdInElectrons_BPix_L1 = cms.double(3500.0),
50  AddThresholdSmearing = cms.bool(True),
51  ThresholdSmearing_FPix = cms.double(210.0),
52  ThresholdSmearing_BPix = cms.double(245.0),
53  ThresholdSmearing_BPix_L1 = cms.double(245.0),
54  NoiseInElectrons = cms.double(175.0),
55  MissCalibrate = cms.bool(True),
56  FPix_SignalResponse_p0 = cms.double(0.0043),
57  FPix_SignalResponse_p1 = cms.double(1.31),
58  FPix_SignalResponse_p2 = cms.double(93.6),
59  FPix_SignalResponse_p3 = cms.double(134.6),
60  BPix_SignalResponse_p0 = cms.double(0.0035),
61  BPix_SignalResponse_p1 = cms.double(1.23),
62  BPix_SignalResponse_p2 = cms.double(97.4),
63  BPix_SignalResponse_p3 = cms.double(126.5),
64  ElectronsPerVcal = cms.double(65.5),
65  ElectronsPerVcal_Offset = cms.double(-414.0),
66  ElectronPerAdc = cms.double(135.0),
67  TofUpperCut = cms.double(12.5),
68  AdcFullScale = cms.int32(255),
69  AdcFullScaleStack = cms.int32(255),
70  FirstStackLayer = cms.int32(5),
71  TofLowerCut = cms.double(-12.5),
72  TanLorentzAnglePerTesla_FPix = cms.double(0.106),
73  TanLorentzAnglePerTesla_BPix = cms.double(0.106),
74  AddNoisyPixels = cms.bool(True),
75  Alpha2Order = cms.bool(True),
76  AddPixelInefficiencyFromPython = cms.bool(True),
77  AddNoise = cms.bool(True),
78  ChargeVCALSmearing = cms.bool(True),
79  GainSmearing = cms.double(0.0),
80  PixGeometryType = cms.string('idealForDigi'),
81  useDB = cms.bool(False),
82  LorentzAngle_DB = cms.bool(True),
83  DeadModules_DB = cms.bool(True),
84  killModules = cms.bool(True),
85  NumPixelBarrel = cms.int32(3),
86  NumPixelEndcap = cms.int32(2),
87  theInstLumiScaleFactor = cms.double(221.95),
88  bunchScaleAt25 = cms.double(1.0), #for 25ns case
89  thePixelColEfficiency_BPix1 = cms.double(1.0), # Only used when AddPixelInefficiency = true
90  thePixelColEfficiency_BPix2 = cms.double(1.0),
91  thePixelColEfficiency_BPix3 = cms.double(1.0),
92  thePixelColEfficiency_FPix1 = cms.double(0.999),
93  thePixelColEfficiency_FPix2 = cms.double(0.999),
94  thePixelEfficiency_BPix1 = cms.double(1.0), # Only used when AddPixelInefficiency = true
95  thePixelEfficiency_BPix2 = cms.double(1.0),
96  thePixelEfficiency_BPix3 = cms.double(1.0),
97  thePixelEfficiency_FPix1 = cms.double(0.999),
98  thePixelEfficiency_FPix2 = cms.double(0.999),
99  thePixelChipEfficiency_BPix1 = cms.double(1.0), # Only used when AddPixelInefficiency = true
100  thePixelChipEfficiency_BPix2 = cms.double(1.0),
101  thePixelChipEfficiency_BPix3 = cms.double(1.0),
102  thePixelChipEfficiency_FPix1 = cms.double(0.999),
103  thePixelChipEfficiency_FPix2 = cms.double(0.999),
104  theLadderEfficiency_BPix1 = cms.vdouble(
105  0.978351,
106  0.971877,
107  0.974283,
108  0.969328,
109  0.972922,
110  0.970964,
111  0.975762,
112  0.974786,
113  0.980244,
114  0.978452,
115  0.982129,
116  0.979737,
117  0.984381,
118  0.983971,
119  0.98186,
120  0.983283,
121  0.981485,
122  0.979753,
123  0.980287,
124  0.975195
125  ),
126  theLadderEfficiency_BPix2 = cms.vdouble(
127  0.996276,
128  0.993354,
129  0.993752,
130  0.992948,
131  0.993871,
132  0.992317,
133  0.997733,
134  0.992516,
135  0.992649,
136  0.993425,
137  0.994065,
138  0.993481,
139  0.993169,
140  0.994223,
141  0.992397,
142  0.99509,
143  0.995177,
144  0.995319,
145  0.994925,
146  0.992933,
147  0.994111,
148  0.9948,
149  0.994711,
150  0.994294,
151  0.995392,
152  0.994229,
153  0.994414,
154  0.995271,
155  0.993585,
156  0.995264,
157  0.992977,
158  0.993642
159  ),
160  theLadderEfficiency_BPix3 = cms.vdouble(
161  0.996206,
162  0.998039,
163  0.995801,
164  0.99665,
165  0.996414,
166  0.995755,
167  0.996518,
168  0.995584,
169  0.997171,
170  0.998056,
171  0.99595,
172  0.997473,
173  0.996858,
174  0.996486,
175  0.997442,
176  0.998002,
177  0.995429,
178  0.997939,
179  0.996896,
180  0.997434,
181  0.996616,
182  0.996439,
183  0.996546,
184  0.997597,
185  0.995435,
186  0.996396,
187  0.99621,
188  0.998316,
189  0.998431,
190  0.99598,
191  0.997063,
192  0.996245,
193  0.997502,
194  0.996254,
195  0.997545,
196  0.997553,
197  0.996722,
198  0.996107,
199  0.996588,
200  0.996277,
201  0.99785,
202  0.997087,
203  0.998139,
204  0.997139
205  ),
206  theModuleEfficiency_BPix1 = cms.vdouble(
207  1.00361,
208  0.999371,
209  0.961242,
210  0.953582
211  ),
212  theModuleEfficiency_BPix2 = cms.vdouble(
213  1.00069,
214  0.999792,
215  0.99562,
216  1.00341
217  ),
218  theModuleEfficiency_BPix3 = cms.vdouble(
219  1.00006,
220  0.999744,
221  0.998147,
222  1.00039
223  ),
224  thePUEfficiency_BPix1 = cms.vdouble(
225  1.0181,
226  -2.28345e-07,
227  -1.30042e-09
228  ),
229  thePUEfficiency_BPix2 = cms.vdouble(
230  1.00648,
231  -1.28515e-06,
232  -1.85915e-10
233  ),
234  thePUEfficiency_BPix3 = cms.vdouble(
235  1.0032,
236  -1.96206e-08,
237  -1.99009e-10
238  ),
239  theInnerEfficiency_FPix1 = cms.double(1.0),
240  theInnerEfficiency_FPix2 = cms.double(1.0),
241  theOuterEfficiency_FPix1 = cms.double(1.0),
242  theOuterEfficiency_FPix2 = cms.double(1.0),
243  thePUEfficiency_FPix_Inner = cms.vdouble(
244  1.0
245  ),
246  thePUEfficiency_FPix_Outer = cms.vdouble(
247  1.0
248  ),
249 DeadModules = cms.VPSet(
250  cms.PSet(Dead_detID = cms.int32(302055940), Module = cms.string("tbmB"))
251 ,cms.PSet(Dead_detID = cms.int32(302059800), Module = cms.string("whole"))
252 ,cms.PSet(Dead_detID = cms.int32(302121992), Module = cms.string("whole"))
253 ,cms.PSet(Dead_detID = cms.int32(302123296), Module = cms.string("whole"))
254 ,cms.PSet(Dead_detID = cms.int32(302125060), Module = cms.string("tbmA"))
255 ,cms.PSet(Dead_detID = cms.int32(302125076), Module = cms.string("tbmA"))
256 ,cms.PSet(Dead_detID = cms.int32(302126364), Module = cms.string("tbmB"))
257 ,cms.PSet(Dead_detID = cms.int32(302126596), Module = cms.string("whole"))
258 ,cms.PSet(Dead_detID = cms.int32(302127136), Module = cms.string("whole"))
259 ,cms.PSet(Dead_detID = cms.int32(302188552), Module = cms.string("whole"))
260 ,cms.PSet(Dead_detID = cms.int32(302188824), Module = cms.string("whole"))
261 ,cms.PSet(Dead_detID = cms.int32(302194200), Module = cms.string("whole"))
262 ,cms.PSet(Dead_detID = cms.int32(302195232), Module = cms.string("whole"))
263 ,cms.PSet(Dead_detID = cms.int32(302197252), Module = cms.string("whole"))
264 ,cms.PSet(Dead_detID = cms.int32(302197784), Module = cms.string("whole"))
265 ##forward
266 ,cms.PSet(Dead_detID = cms.int32(352453892), Module = cms.string("whole"))
267 ,cms.PSet(Dead_detID = cms.int32(352453896), Module = cms.string("whole"))
268 ,cms.PSet(Dead_detID = cms.int32(352453900), Module = cms.string("whole"))
269 ,cms.PSet(Dead_detID = cms.int32(352453904), Module = cms.string("whole"))
270 ,cms.PSet(Dead_detID = cms.int32(352454916), Module = cms.string("whole"))
271 ,cms.PSet(Dead_detID = cms.int32(352454920), Module = cms.string("whole"))
272 ,cms.PSet(Dead_detID = cms.int32(352454924), Module = cms.string("whole"))
273 ,cms.PSet(Dead_detID = cms.int32(352454928), Module = cms.string("whole"))
274 ,cms.PSet(Dead_detID = cms.int32(352455940), Module = cms.string("whole"))
275 ,cms.PSet(Dead_detID = cms.int32(352455944), Module = cms.string("whole"))
276 ,cms.PSet(Dead_detID = cms.int32(352455948), Module = cms.string("whole"))
277 ,cms.PSet(Dead_detID = cms.int32(352455952), Module = cms.string("whole"))
278 ,cms.PSet(Dead_detID = cms.int32(352454148), Module = cms.string("whole"))
279 ,cms.PSet(Dead_detID = cms.int32(352454152), Module = cms.string("whole"))
280 ,cms.PSet(Dead_detID = cms.int32(352454156), Module = cms.string("whole"))
281 ,cms.PSet(Dead_detID = cms.int32(352455172), Module = cms.string("whole"))
282 ,cms.PSet(Dead_detID = cms.int32(352455176), Module = cms.string("whole"))
283 ,cms.PSet(Dead_detID = cms.int32(352455180), Module = cms.string("whole"))
284 ,cms.PSet(Dead_detID = cms.int32(352456196), Module = cms.string("whole"))
285 ,cms.PSet(Dead_detID = cms.int32(352456200), Module = cms.string("whole"))
286 ,cms.PSet(Dead_detID = cms.int32(352456204), Module = cms.string("whole"))
287 ,cms.PSet(Dead_detID = cms.int32(343999748), Module = cms.string("whole"))
288 ,cms.PSet(Dead_detID = cms.int32(343999752), Module = cms.string("whole"))
289 ,cms.PSet(Dead_detID = cms.int32(343999756), Module = cms.string("whole"))
290 ,cms.PSet(Dead_detID = cms.int32(343999760), Module = cms.string("whole"))
291 ,cms.PSet(Dead_detID = cms.int32(344014340), Module = cms.string("whole"))
292 ,cms.PSet(Dead_detID = cms.int32(344014344), Module = cms.string("whole"))
293 ,cms.PSet(Dead_detID = cms.int32(344014348), Module = cms.string("whole"))
294 ,cms.PSet(Dead_detID = cms.int32(344019460), Module = cms.string("whole"))
295 ,cms.PSet(Dead_detID = cms.int32(344019464), Module = cms.string("whole"))
296 ,cms.PSet(Dead_detID = cms.int32(344019468), Module = cms.string("whole"))
297 ,cms.PSet(Dead_detID = cms.int32(344077572), Module = cms.string("whole"))
298 ,cms.PSet(Dead_detID = cms.int32(344077576), Module = cms.string("whole"))
299 ,cms.PSet(Dead_detID = cms.int32(344077580), Module = cms.string("whole"))
300 ,cms.PSet(Dead_detID = cms.int32(344077584), Module = cms.string("whole"))
301 ,cms.PSet(Dead_detID = cms.int32(344078596), Module = cms.string("whole"))
302 ,cms.PSet(Dead_detID = cms.int32(344078600), Module = cms.string("whole"))
303 ,cms.PSet(Dead_detID = cms.int32(344078604), Module = cms.string("whole"))
304 ,cms.PSet(Dead_detID = cms.int32(344078608), Module = cms.string("whole"))
305 ,cms.PSet(Dead_detID = cms.int32(344079620), Module = cms.string("whole"))
306 ,cms.PSet(Dead_detID = cms.int32(344079624), Module = cms.string("whole"))
307 ,cms.PSet(Dead_detID = cms.int32(344079628), Module = cms.string("whole"))
308 ,cms.PSet(Dead_detID = cms.int32(344079632), Module = cms.string("whole"))
309 ,cms.PSet(Dead_detID = cms.int32(344078852), Module = cms.string("whole"))
310 ,cms.PSet(Dead_detID = cms.int32(344078856), Module = cms.string("whole"))
311 ,cms.PSet(Dead_detID = cms.int32(344078860), Module = cms.string("whole"))
312 #,cms.PSet(Dead_detID = cms.int32(302187268), Module = cms.string("none"))
313 #,cms.PSet(Dead_detID = cms.int32(302195472), Module = cms.string("none"))
314 #,cms.PSet(Dead_detID = cms.int32(302128136), Module = cms.string("none"))
315 )
316 
317 ### DeadModules = cms.VPSet()
318 )
319 
320 #
321 # Apply the changes for the different Run 2 running scenarios
322 #
323 eras.run2_25ns_specific.toModify( SiPixelSimBlock, func=_modifyPixelDigitizerForRun2Bunchspacing25 )
324 eras.run2_50ns_specific.toModify( SiPixelSimBlock, func=_modifyPixelDigitizerForRun2Bunchspacing50 )
325 
326 # Threshold in electrons are the Official CRAFT09 numbers:
327 # FPix(smearing)/BPix(smearing) = 2480(160)/2730(200)
328 
329 #DEAD MODULES LIST: NEW LIST AFTER 2009 PIXEL REPAIRS
330 # https://twiki.cern.ch/twiki/bin/view/CMS/SiPixelQualityHistory
331 
332 ######Barrel
333 #Bad Module: 302055940 errorType 2 BadRocs=ff00
334 #Bad Module: 302059800 errorType 0 BadRocs=ffff
335 #Bad Module: 302121992 errorType 0 BadRocs=ffff
336 #BmI_SEC3_LYR2_LDR5F_MOD3 -- 302121992, "TBM-A"
337 #Bad Module: 302123296 errorType 0 BadRocs=ffff
338 #BpO_SEC1_LYR2_LDR1H_MOD4 -- 302123296, "whole"
339 #Bad Module: 302125060 errorType 1 BadRocs=ff
340 #Bad Module: 302125076 errorType 1 BadRocs=ff
341 #BpO_SEC4_LYR2_LDR8F_MOD1 -- 302125076, "TBM-A"
342 #Bad Module: 302126364 errorType 2 BadRocs=ff00
343 #BpO_SEC7_LYR2_LDR13F_MOD3 -- 302126364, "TBM-B"
344 #Bad Module: 302126596 errorType 0 BadRocs=ffff
345 #BmO_SEC7_LYR2_LDR14F_MOD4 -- 302126596, "whole"
346 #Bad Module: 302127136 errorType 0 BadRocs=ffff
347 #BpO_SEC8_LYR2_LDR16H_MOD4 -- 302127136, "whole"
348 #Bad Module: 302188552 errorType 0 BadRocs=ffff
349 #BmI_SEC2_LYR3_LDR4F_MOD3 -- 302188552, "whole"
350 #Bad Module: 302188824 errorType 0 BadRocs=ffff
351 #Bad Module: 302194200 errorType 0 BadRocs=ffff
352 #Bad Module: 302195232 errorType 0 BadRocs=ffff
353 #BpI_SEC8_LYR3_LDR22H_MOD4 -- 302195232, "whole"
354 #Bad Module: 302197252 errorType 0 BadRocs=ffff
355 #Bad Module: 302197784 errorType 0 BadRocs=ffff
356 #BpI_SEC5_LYR3_LDR12F_MOD2 -- 302197784, "whole"
357 
358 #####Forward
359 #Bad Module: 352453892 errorType 0 BadRocs=ffff
360 #Bad Module: 352453896 errorType 0 BadRocs=ffff
361 #Bad Module: 352453900 errorType 0 BadRocs=ffff
362 #Bad Module: 352453904 errorType 0 BadRocs=ffff
363 #Bad Module: 352454916 errorType 0 BadRocs=ffff
364 #Bad Module: 352454920 errorType 0 BadRocs=ffff
365 #Bad Module: 352454924 errorType 0 BadRocs=ffff
366 #Bad Module: 352454928 errorType 0 BadRocs=ffff
367 #Bad Module: 352455940 errorType 0 BadRocs=ffff
368 #Bad Module: 352455944 errorType 0 BadRocs=ffff
369 #Bad Module: 352455948 errorType 0 BadRocs=ffff
370 #Bad Module: 352455952 errorType 0 BadRocs=ffff
371 #Bad Module: 352454148 errorType 0 BadRocs=ffff
372 #Bad Module: 352454152 errorType 0 BadRocs=ffff
373 #Bad Module: 352454156 errorType 0 BadRocs=ffff
374 #Bad Module: 352455172 errorType 0 BadRocs=ffff
375 #Bad Module: 352455176 errorType 0 BadRocs=ffff
376 #Bad Module: 352455180 errorType 0 BadRocs=ffff
377 #Bad Module: 352456196 errorType 0 BadRocs=ffff
378 #Bad Module: 352456200 errorType 0 BadRocs=ffff
379 #Bad Module: 352456204 errorType 0 BadRocs=ffff
380 #Bad Module: 343999748 errorType 0 BadRocs=ffff
381 #Bad Module: 343999752 errorType 0 BadRocs=ffff
382 #Bad Module: 343999756 errorType 0 BadRocs=ffff
383 #Bad Module: 343999760 errorType 0 BadRocs=ffff
384 #Bad Module: 344014340 errorType 0 BadRocs=ffff
385 #Bad Module: 344014344 errorType 0 BadRocs=ffff
386 #Bad Module: 344014348 errorType 0 BadRocs=ffff
387 #BmO_DISK1_BLD9_PNL2 -- 344014340, 344014344, 344014348
388 #Bad Module: 344019460 errorType 0 BadRocs=ffff
389 #Bad Module: 344019464 errorType 0 BadRocs=ffff
390 #Bad Module: 344019468 errorType 0 BadRocs=ffff
391 #BmI_DISK1_BLD11_PNL2 -- 344019460, 344019464, 344019468
392 #Bad Module: 344077572 errorType 0 BadRocs=ffff
393 #Bad Module: 344077576 errorType 0 BadRocs=ffff
394 #Bad Module: 344077580 errorType 0 BadRocs=ffff
395 #Bad Module: 344077584 errorType 0 BadRocs=ffff
396 #Bad Module: 344078596 errorType 0 BadRocs=ffff
397 #Bad Module: 344078600 errorType 0 BadRocs=ffff
398 #Bad Module: 344078604 errorType 0 BadRocs=ffff
399 #Bad Module: 344078608 errorType 0 BadRocs=ffff
400 #Bad Module: 344079620 errorType 0 BadRocs=ffff
401 #Bad Module: 344079624 errorType 0 BadRocs=ffff
402 #Bad Module: 344079628 errorType 0 BadRocs=ffff
403 #Bad Module: 344079632 errorType 0 BadRocs=ffff
404 #Bad Module: 344078852 errorType 0 BadRocs=ffff
405 #Bad Module: 344078856 errorType 0 BadRocs=ffff
406 #Bad Module: 344078860 errorType 0 BadRocs=ffff
407 
408 #Barrel
409 #302187268, "none" (ROC 6)
410 #302195472, "none" (ROC 0)
411 #302128136, "none" (ROC 3)
412