CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
postLS1Customs.py
Go to the documentation of this file.
1 from __future__ import print_function
2 import FWCore.ParameterSet.Config as cms
3 
5 
6  # deal with L1 Emulation separately
7  from L1Trigger.L1TCommon.customsPostLS1 import customiseSimL1EmulatorForStage1
8  process = customiseSimL1EmulatorForStage1(process)
9 
10  # deal with CSC separately
11  from SLHCUpgradeSimulations.Configuration.muonCustoms import customise_csc_PostLS1
12  process = customise_csc_PostLS1(process)
13 
14  # deal with FastSim separately
15  from SLHCUpgradeSimulations.Configuration.fastSimCustoms import customise_fastSimPostLS1
16  process = customise_fastSimPostLS1(process)
17 
18  # all the rest
19  if hasattr(process,'g4SimHits'):
20  process = customise_Sim(process)
21  if hasattr(process,'DigiToRaw'):
22  process = customise_DigiToRaw(process)
23  if hasattr(process,'RawToDigi'):
24  process = customise_RawToDigi(process)
25  if hasattr(process,'reconstruction'):
26  process = customise_Reco(process)
27  if hasattr(process,'digitisation_step') or ( hasattr(process,'mix') and hasattr(process.mix,'digitizers')):
28  process = customise_Digi_Common(process)
29  if hasattr(process,'L1simulation_step'):
30  process = customise_L1Emulator(process)
31  if hasattr(process,'dqmoffline_step'):
32  process = customise_DQM(process)
33  if hasattr(process,'dqmHarvesting'):
34  process = customise_harvesting(process)
35  if hasattr(process,'validation_step'):
36  process = customise_Validation(process)
37  if hasattr(process,'datamixing_step'):
38  process = customise_DataMix(process)
39 
40  return process
41 
42 
43 def customisePostLS1(process,displayDeprecationWarning=True):
44  if displayDeprecationWarning :
45  print("""
46  #
47  # -- Warning! You are using a deprecated customisation function. --
48  #
49  # It will probably run fine, but the customisations you are getting may be out of date.
50  # You should update your configuration file by
51  # If using cmsDriver:
52  # 1) remove the "--customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1" option
53  # 2) add the option "--era Run2_25ns"
54  # If using a pre-made configuration file:
55  # 1) remove or comment out the "process = customisePostLS1(process)" line.
56  # 2) add "from Configuration.Eras.Era_Run2_25ns_cff import Run2_25ns" to the TOP of the config file (above
57  # the process declaration).
58  # 3) add "Run2_25ns" as a parameter to the process object, e.g. "process = cms.Process('HLT',Run2_25ns)"
59  #
60  # There is more information at https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCmsDriverEras
61  #
62  """)
63  # common customisation
64  process = customisePostLS1_Common(process)
65 
66  # 25ns specific customisation
67  if hasattr(process,'digitisation_step'):
68  process = customise_Digi_25ns(process)
69  if hasattr(process,'dqmoffline_step'):
70  process = customise_DQM_25ns(process)
71 
72  return process
73 
74 
76 
77  # common customisations
78  process = customisePostLS1_Common(process)
79 
80  # 50ns specific customisation
81  if hasattr(process,'digitisation_step'):
82  process = customise_Digi_50ns(process)
83 
84  return process
85 
86 
87 def customisePostLS1_50ns(process,displayDeprecationWarning=True):
88  if displayDeprecationWarning :
89  print("""
90  #
91  # -- Warning! You are using a deprecated customisation function. --
92  #
93  # It will probably run fine, but the customisations you are getting may be out of date.
94  # You should update your configuration file by
95  # If using cmsDriver:
96  # 1) remove the "--customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1_50ns" option
97  # 2) add the option "--era Run2_50ns"
98  # If using a pre-made configuration file:
99  # 1) remove or comment out the "process = customisePostLS1_50ns(process)" line.
100  # 2) add "from Configuration.Eras.Era_Run2_50ns_cff import Run2_50ns" to the TOP of the config file (above
101  # the process declaration).
102  # 3) add "Run2_50ns" as a parameter to the process object, e.g. "process = cms.Process('HLT',Run2_50ns)"
103  #
104  # There is more information at https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCmsDriverEras
105  #
106  """)
107 
108  # common customisations
109  process = customisePostLS1_Common(process)
110 
111  # 50ns specific customisation
112  if hasattr(process,'digitisation_step'):
113  process = customise_Digi_50ns(process)
114 
115  return process
116 
117 
118 def customisePostLS1_HI(process,displayDeprecationWarning=True):
119  if displayDeprecationWarning :
120  print("""
121  #
122  # -- Warning! You are using a deprecated customisation function. --
123  #
124  # It will probably run fine, but the customisations you are getting may be out of date.
125  # You should update your configuration file by
126  # If using cmsDriver:
127  # 1) remove the "--customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1_HI" option
128  # 2) add the option "--era Run2_HI"
129  # If using a pre-made configuration file:
130  # 1) remove or comment out the "process = customisePostLS1_HI(process)" line.
131  # 2) add "from Configuration.Eras.Era_Run2_HI_cff import Run2_HI" to the TOP of the config file (above
132  # the process declaration).
133  # 3) add "Run2_HI" as a parameter to the process object, e.g. "process = cms.Process('HLT',Run2_HI)"
134  #
135  # There is more information at https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCmsDriverEras
136  #
137  """)
138 
139  # common customisation
140  process = customisePostLS1_Common(process)
141 
142  # HI Specific additional customizations:
143  from L1Trigger.L1TCommon.customsPostLS1 import customiseSimL1EmulatorForPostLS1_Additional_HI
145 
146  # HI L1Menu:
147  #from L1Trigger.Configuration.customise_overwriteL1Menu import L1Menu_CollisionsHeavyIons2015_v0
148  #process = L1Menu_CollisionsHeavyIons2015_v0(process)
149 
150  return process
151 
152 def digiEventContent(process):
153  #extend the event content
154 
155  alist=['RAWDEBUG','FEVTDEBUG','FEVTDEBUGHLT','GENRAW','RAWSIMHLT','FEVT']
156  for a in alist:
157  b = a + 'output'
158  if hasattr(process,b):
159  getattr(process,b).outputCommands.append('keep *_simMuonCSCDigis_*_*')
160  getattr(process,b).outputCommands.append('keep *_simMuonRPCDigis_*_*')
161  getattr(process,b).outputCommands.append('keep *_simHcalUnsuppressedDigis_*_*')
162 
163  return process
164 
165 
166 def customise_DQM(process):
167  #process.dqmoffline_step.remove(process.jetMETAnalyzer)
168  # Turn off flag of gangedME11a
169  process.l1tCsctf.gangedME11a = cms.untracked.bool(False)
170  # Turn off "low bias voltage" region in HCAL noise filters
171  if hasattr(process,'HBHENoiseFilterResultProducer'):
172  process.HBHENoiseFilterResultProducer.IgnoreTS4TS5ifJetInLowBVRegion = cms.bool(False)
173  return process
174 
175 
176 def customise_DQM_25ns(process):
177  #Empty place-holder
178  # Switch to Stage1 Digi
179  process.load("L1Trigger.L1TCommon.l1tRawToDigi_cfi")
180  process.load("L1Trigger.L1TCommon.caloStage1LegacyFormatDigis_cfi")
181  if hasattr(process, 'RawToDigi'):
182  process.L1RawToDigiSeq = cms.Sequence(process.gctDigis+process.caloStage1Digis+process.caloStage1LegacyFormatDigis)
183  process.RawToDigi.replace(process.gctDigis, process.L1RawToDigiSeq)
184 
185  process.load('DQMOffline.L1Trigger.L1TriggerDqmOffline_cff')
186  if hasattr(process, 'l1tMonitorStage1Online'):
187  process.l1tRct.rctSource = 'caloStage1Digis'
188  process.l1tRctfromRCT.rctSource = 'rctDigis'
189  process.l1tPUM.regionSource = cms.InputTag("rctDigis")
190  process.l1tStage1Layer2.stage1_layer2_ = cms.bool(True)
191  process.l1tStage1Layer2.gctCentralJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","cenJets")
192  process.l1tStage1Layer2.gctForwardJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","forJets")
193  process.l1tStage1Layer2.gctTauJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","tauJets")
194  process.l1tStage1Layer2.gctIsoTauJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","isoTauJets")
195  process.l1tStage1Layer2.gctEnergySumsSource = cms.InputTag("caloStage1LegacyFormatDigis")
196  process.l1tStage1Layer2.gctIsoEmSource = cms.InputTag("caloStage1LegacyFormatDigis","isoEm")
197  process.l1tStage1Layer2.gctNonIsoEmSource = cms.InputTag("caloStage1LegacyFormatDigis","nonIsoEm")
198  process.dqmL1ExtraParticlesStage1.etTotalSource = 'caloStage1LegacyFormatDigis'
199  process.dqmL1ExtraParticlesStage1.nonIsolatedEmSource = 'caloStage1LegacyFormatDigis:nonIsoEm'
200  process.dqmL1ExtraParticlesStage1.etMissSource = 'caloStage1LegacyFormatDigis'
201  process.dqmL1ExtraParticlesStage1.htMissSource = 'caloStage1LegacyFormatDigis'
202  process.dqmL1ExtraParticlesStage1.forwardJetSource = 'caloStage1LegacyFormatDigis:forJets'
203  process.dqmL1ExtraParticlesStage1.centralJetSource = 'caloStage1LegacyFormatDigis:cenJets'
204  process.dqmL1ExtraParticlesStage1.tauJetSource = 'caloStage1LegacyFormatDigis:tauJets'
205  process.dqmL1ExtraParticlesStage1.isolatedEmSource = 'caloStage1LegacyFormatDigis:isoEm'
206  process.dqmL1ExtraParticlesStage1.etHadSource = 'caloStage1LegacyFormatDigis'
207  process.dqmL1ExtraParticlesStage1.hfRingEtSumsSource = 'caloStage1LegacyFormatDigis'
208  process.dqmL1ExtraParticlesStage1.hfRingBitCountsSource = 'caloStage1LegacyFormatDigis'
209  process.l1ExtraDQMStage1.stage1_layer2_ = cms.bool(True)
210  process.l1ExtraDQMStage1.L1ExtraIsoTauJetSource_ = cms.InputTag("dqmL1ExtraParticlesStage1", "IsoTau")
211 
212  if hasattr(process, 'l1Stage1HwValEmulatorMonitor'):
213  process.l1TdeRCT.rctSourceData = 'caloStage1Digis'
214  process.l1TdeRCTfromRCT.rctSourceData = 'rctDigis'
215  process.l1compareforstage1.GCTsourceData = cms.InputTag("caloStage1LegacyFormatDigis")
216  process.l1compareforstage1.GCTsourceEmul = cms.InputTag("valCaloStage1LegacyFormatDigis")
217  process.l1compareforstage1.stage1_layer2_ = cms.bool(True)
218  process.valStage1GtDigis.GctInputTag = 'caloStage1LegacyFormatDigis'
219 
220  return process
221 
222 
223 def customise_Validation(process):
224  #process.validation_step.remove(process.PixelTrackingRecHitsValid)
225  # We don't run the HLT
226  #process.validation_step.remove(process.HLTSusyExoVal)
227  #process.validation_step.remove(process.hltHiggsValidator)
228  return process
229 
230 
231 def customise_Sim(process):
232  # enable 2015 HF shower library
233  process.g4SimHits.HFShowerLibrary.FileName = 'SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v4.root'
234  return process
235 
237  process = digiEventContent(process)
238  if hasattr(process,'mix') and hasattr(process.mix,'digitizers'):
239  if hasattr(process.mix.digitizers,'hcal') and hasattr(process.mix.digitizers.hcal,'ho'):
240  process.mix.digitizers.hcal.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16)
241  process.mix.digitizers.hcal.ho.siPMCode = cms.int32(1)
242  process.mix.digitizers.hcal.ho.pixels = cms.int32(2500)
243  process.mix.digitizers.hcal.ho.doSiPMSmearing = cms.bool(False)
244  if hasattr(process.mix.digitizers,'hcal') and hasattr(process.mix.digitizers.hcal,'hf1'):
245  process.mix.digitizers.hcal.hf1.samplingFactor = cms.double(0.60)
246  if hasattr(process.mix.digitizers,'hcal') and hasattr(process.mix.digitizers.hcal,'hf2'):
247  process.mix.digitizers.hcal.hf2.samplingFactor = cms.double(0.60)
248  return process
249 
250 def customise_DataMix(process):
251  if hasattr(process,'mixData'):
252  if hasattr(process.mixData,'ho'):
253  process.mixData.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16)
254  process.mixData.ho.siPMCode = cms.int32(1)
255  process.mixData.ho.pixels = cms.int32(2500)
256  process.mixData.ho.doSiPMSmearing = cms.bool(False)
257  if hasattr(process.mixData,'hf1'):
258  process.mixData.hf1.samplingFactor = cms.double(0.60)
259  if hasattr(process.mixData,'hf2'):
260  process.mixData.hf2.samplingFactor = cms.double(0.60)
261  return process
262 
263 
264 def customise_Digi_50ns(process):
265  if hasattr(process,'mix') and hasattr(process.mix,'digitizers'):
266  if hasattr(process.mix.digitizers,'pixel'):
267  # pixel dynamic inefficency - 13TeV - 50ns case
268  process.mix.digitizers.pixel.theInstLumiScaleFactor = cms.double(246.4)
269  process.mix.digitizers.pixel.theLadderEfficiency_BPix1 = cms.vdouble(
270  0.979259,
271  0.976677,
272  0.979259,
273  0.976677,
274  0.979259,
275  0.976677,
276  0.979259,
277  0.976677,
278  0.979259,
279  0.976677,
280  0.979259,
281  0.976677,
282  0.979259,
283  0.976677,
284  0.979259,
285  0.976677,
286  0.979259,
287  0.976677,
288  0.979259,
289  0.976677,
290  )
291  process.mix.digitizers.pixel.theLadderEfficiency_BPix2 = cms.vdouble(
292  0.994321,
293  0.993944,
294  0.994321,
295  0.993944,
296  0.994321,
297  0.993944,
298  0.994321,
299  0.993944,
300  0.994321,
301  0.993944,
302  0.994321,
303  0.993944,
304  0.994321,
305  0.993944,
306  0.994321,
307  0.993944,
308  0.994321,
309  0.993944,
310  0.994321,
311  0.993944,
312  0.994321,
313  0.993944,
314  0.994321,
315  0.993944,
316  0.994321,
317  0.993944,
318  0.994321,
319  0.993944,
320  0.994321,
321  0.993944,
322  0.994321,
323  0.993944,
324  )
325  process.mix.digitizers.pixel.theLadderEfficiency_BPix3 = cms.vdouble(
326  0.996787,
327  0.996945,
328  0.996787,
329  0.996945,
330  0.996787,
331  0.996945,
332  0.996787,
333  0.996945,
334  0.996787,
335  0.996945,
336  0.996787,
337  0.996945,
338  0.996787,
339  0.996945,
340  0.996787,
341  0.996945,
342  0.996787,
343  0.996945,
344  0.996787,
345  0.996945,
346  0.996787,
347  0.996945,
348  0.996787,
349  0.996945,
350  0.996787,
351  0.996945,
352  0.996787,
353  0.996945,
354  0.996787,
355  0.996945,
356  0.996787,
357  0.996945,
358  0.996787,
359  0.996945,
360  0.996787,
361  0.996945,
362  0.996787,
363  0.996945,
364  0.996787,
365  0.996945,
366  0.996787,
367  0.996945,
368  0.996787,
369  0.996945,
370  )
371  if hasattr(process,'mixData'):
372  # pixel dynamic inefficency - 13TeV - 50ns case
373  process.mixData.theInstLumiScaleFactor = cms.double(246.4)
374  process.mixData.theLadderEfficiency_BPix1 = cms.vdouble(
375  0.979259,
376  0.976677,
377  0.979259,
378  0.976677,
379  0.979259,
380  0.976677,
381  0.979259,
382  0.976677,
383  0.979259,
384  0.976677,
385  0.979259,
386  0.976677,
387  0.979259,
388  0.976677,
389  0.979259,
390  0.976677,
391  0.979259,
392  0.976677,
393  0.979259,
394  0.976677,
395  )
396  process.mixData.theLadderEfficiency_BPix2 = cms.vdouble(
397  0.994321,
398  0.993944,
399  0.994321,
400  0.993944,
401  0.994321,
402  0.993944,
403  0.994321,
404  0.993944,
405  0.994321,
406  0.993944,
407  0.994321,
408  0.993944,
409  0.994321,
410  0.993944,
411  0.994321,
412  0.993944,
413  0.994321,
414  0.993944,
415  0.994321,
416  0.993944,
417  0.994321,
418  0.993944,
419  0.994321,
420  0.993944,
421  0.994321,
422  0.993944,
423  0.994321,
424  0.993944,
425  0.994321,
426  0.993944,
427  0.994321,
428  0.993944,
429  )
430  process.mixData.theLadderEfficiency_BPix3 = cms.vdouble(
431  0.996787,
432  0.996945,
433  0.996787,
434  0.996945,
435  0.996787,
436  0.996945,
437  0.996787,
438  0.996945,
439  0.996787,
440  0.996945,
441  0.996787,
442  0.996945,
443  0.996787,
444  0.996945,
445  0.996787,
446  0.996945,
447  0.996787,
448  0.996945,
449  0.996787,
450  0.996945,
451  0.996787,
452  0.996945,
453  0.996787,
454  0.996945,
455  0.996787,
456  0.996945,
457  0.996787,
458  0.996945,
459  0.996787,
460  0.996945,
461  0.996787,
462  0.996945,
463  0.996787,
464  0.996945,
465  0.996787,
466  0.996945,
467  0.996787,
468  0.996945,
469  0.996787,
470  0.996945,
471  0.996787,
472  0.996945,
473  0.996787,
474  0.996945,
475  )
476  return process
477 
478 
479 def customise_Digi_25ns(process):
480  if hasattr(process,'mix') and hasattr(process.mix,'digitizers'):
481  if hasattr(process.mix.digitizers,'pixel'):
482  # pixel dynamic inefficency - 13TeV - 25ns case
483  process.mix.digitizers.pixel.theInstLumiScaleFactor = cms.double(364)
484  process.mix.digitizers.pixel.theLadderEfficiency_BPix1 = cms.vdouble(
485  1,
486  1,
487  1,
488  1,
489  1,
490  1,
491  1,
492  1,
493  1,
494  1,
495  1,
496  1,
497  1,
498  1,
499  1,
500  1,
501  1,
502  1,
503  1,
504  1,
505  )
506  process.mix.digitizers.pixel.theLadderEfficiency_BPix2 = cms.vdouble(
507  1,
508  1,
509  1,
510  1,
511  1,
512  1,
513  1,
514  1,
515  1,
516  1,
517  1,
518  1,
519  1,
520  1,
521  1,
522  1,
523  1,
524  1,
525  1,
526  1,
527  1,
528  1,
529  1,
530  1,
531  1,
532  1,
533  1,
534  1,
535  1,
536  1,
537  1,
538  1,
539  )
540  process.mix.digitizers.pixel.theLadderEfficiency_BPix3 = cms.vdouble(
541  1,
542  1,
543  1,
544  1,
545  1,
546  1,
547  1,
548  1,
549  1,
550  1,
551  1,
552  1,
553  1,
554  1,
555  1,
556  1,
557  1,
558  1,
559  1,
560  1,
561  1,
562  1,
563  1,
564  1,
565  1,
566  1,
567  1,
568  1,
569  1,
570  1,
571  1,
572  1,
573  1,
574  1,
575  1,
576  1,
577  1,
578  1,
579  1,
580  1,
581  1,
582  1,
583  1,
584  1,
585  )
586  process.mix.digitizers.pixel.theModuleEfficiency_BPix1 = cms.vdouble(
587  1,
588  1,
589  1,
590  1,
591  )
592  process.mix.digitizers.pixel.theModuleEfficiency_BPix2 = cms.vdouble(
593  1,
594  1,
595  1,
596  1,
597  )
598  process.mix.digitizers.pixel.theModuleEfficiency_BPix3 = cms.vdouble(
599  1,
600  1,
601  1,
602  1,
603  )
604  process.mix.digitizers.pixel.thePUEfficiency_BPix1 = cms.vdouble(
605  1.00023,
606  -3.18350e-06,
607  5.08503e-10,
608  -6.79785e-14,
609  )
610  process.mix.digitizers.pixel.thePUEfficiency_BPix2 = cms.vdouble(
611  9.99974e-01,
612  -8.91313e-07,
613  5.29196e-12,
614  -2.28725e-15,
615  )
616  process.mix.digitizers.pixel.thePUEfficiency_BPix3 = cms.vdouble(
617  1.00005,
618  -6.59249e-07,
619  2.75277e-11,
620  -1.62683e-15,
621  )
622  if hasattr(process,'mixData'):
623  # pixel dynamic inefficency - 13TeV - 25ns case
624  process.mixData.theInstLumiScaleFactor = cms.double(364)
625  process.mixData.theLadderEfficiency_BPix1 = cms.vdouble(
626  1,
627  1,
628  1,
629  1,
630  1,
631  1,
632  1,
633  1,
634  1,
635  1,
636  1,
637  1,
638  1,
639  1,
640  1,
641  1,
642  1,
643  1,
644  1,
645  1,
646  )
647  process.mixData.theLadderEfficiency_BPix2 = cms.vdouble(
648  1,
649  1,
650  1,
651  1,
652  1,
653  1,
654  1,
655  1,
656  1,
657  1,
658  1,
659  1,
660  1,
661  1,
662  1,
663  1,
664  1,
665  1,
666  1,
667  1,
668  1,
669  1,
670  1,
671  1,
672  1,
673  1,
674  1,
675  1,
676  1,
677  1,
678  1,
679  1,
680  )
681  process.mixData.theLadderEfficiency_BPix3 = cms.vdouble(
682  1,
683  1,
684  1,
685  1,
686  1,
687  1,
688  1,
689  1,
690  1,
691  1,
692  1,
693  1,
694  1,
695  1,
696  1,
697  1,
698  1,
699  1,
700  1,
701  1,
702  1,
703  1,
704  1,
705  1,
706  1,
707  1,
708  1,
709  1,
710  1,
711  1,
712  1,
713  1,
714  1,
715  1,
716  1,
717  1,
718  1,
719  1,
720  1,
721  1,
722  1,
723  1,
724  1,
725  1,
726  )
727  process.mixData.theModuleEfficiency_BPix1 = cms.vdouble(
728  1,
729  1,
730  1,
731  1,
732  )
733  process.mixData.theModuleEfficiency_BPix2 = cms.vdouble(
734  1,
735  1,
736  1,
737  1,
738  )
739  process.mixData.theModuleEfficiency_BPix3 = cms.vdouble(
740  1,
741  1,
742  1,
743  1,
744  )
745  process.mixData.thePUEfficiency_BPix1 = cms.vdouble(
746  1.00023,
747  -3.18350e-06,
748  5.08503e-10,
749  -6.79785e-14,
750  )
751  process.mixData.thePUEfficiency_BPix2 = cms.vdouble(
752  9.99974e-01,
753  -8.91313e-07,
754  5.29196e-12,
755  -2.28725e-15,
756  )
757  process.mixData.thePUEfficiency_BPix3 = cms.vdouble(
758  1.00005,
759  -6.59249e-07,
760  2.75277e-11,
761  -1.62683e-15,
762  )
763  return process
764 
765 
766 def customise_L1Emulator(process):
767  return process
768 
769 
770 def customise_RawToDigi(process):
771  if hasattr(process,'gtEvmDigis'):
772  process.RawToDigi.remove(process.gtEvmDigis)
773  return process
774 
775 
776 def customise_DigiToRaw(process):
777  return process
778 
779 
780 def customise_Reco(process):
781  #lowering HO threshold with SiPM
782  if hasattr(process,'particleFlowRecHitHO'):
783  for prod in process.particleFlowRecHitHO.producers:
784  prod.qualityTests = cms.VPSet(
785  cms.PSet(
786  name = cms.string("PFRecHitQTestThreshold"),
787  threshold = cms.double(0.05) # new threshold for SiPM HO
788  ),
789  cms.PSet(
790  name = cms.string("PFRecHitQTestHCALChannel"),
791  maxSeverities = cms.vint32(11),
792  cleaningThresholds = cms.vdouble(0.0),
793  flags = cms.vstring('Standard')
794  )
795  )
796 
797  #Lower Thresholds also for Clusters!!!
798 
799  for p in process.particleFlowClusterHO.seedFinder.thresholdsByDetector:
800  p.seedingThreshold = cms.double(0.08)
801 
802  for p in process.particleFlowClusterHO.initialClusteringStep.thresholdsByDetector:
803  p.gatheringThreshold = cms.double(0.05)
804 
805  for p in process.particleFlowClusterHO.pfClusterBuilder.recHitEnergyNorms:
806  p.recHitEnergyNorm = cms.double(0.05)
807 
808  process.particleFlowClusterHO.pfClusterBuilder.positionCalc.logWeightDenominator = cms.double(0.05)
809  process.particleFlowClusterHO.pfClusterBuilder.allCellsPositionCalc.logWeightDenominator = cms.double(0.05)
810 
811  # Muon reconstruction do not exclude bad chambers
812  if hasattr(process, 'muonDetIdAssociator'):
813  process.muonDetIdAssociator.includeBadChambers = cms.bool(True)
814 
815  return process
816 
817 
818 def customise_harvesting(process):
819  #process.dqmHarvesting.remove(process.dataCertificationJetMET)
820  #process.dqmHarvesting.remove(process.sipixelEDAClient)
821  #process.dqmHarvesting.remove(process.sipixelCertification)
822  return (process)
823 
824 
825 def recoOutputCustoms(process):
826 
827  alist=['AODSIM','RECOSIM','FEVTSIM','FEVTDEBUG','FEVTDEBUGHLT','RECODEBUG','RAWRECOSIMHLT','RAWRECODEBUGHLT']
828  for a in alist:
829  b = a + 'output'
830  if hasattr(process,b):
831  getattr(process,b).outputCommands.append('keep *_simMuonCSCDigis_*_*')
832  getattr(process,b).outputCommands.append('keep *_simMuonRPCDigis_*_*')
833  getattr(process,b).outputCommands.append('keep *_simHcalUnsuppressedDigis_*_*')
834  getattr(process,b).outputCommands.append('keep *_rawDataCollector_*_*')
835  return process
def customisePostLS1_lowPU
def customisePostLS1_Common
def customiseSimL1EmulatorForPostLS1_Additional_HI
def customiseSimL1EmulatorForStage1
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def customise_csc_PostLS1
Definition: muonCustoms.py:234
def customise_fastSimPostLS1