CMS 3D CMS Logo

Functions
postLS1Customs Namespace Reference

Functions

def customise_DataMix (process)
 
def customise_Digi_25ns (process)
 
def customise_Digi_50ns (process)
 
def customise_Digi_Common (process)
 
def customise_DigiToRaw (process)
 
def customise_DQM (process)
 
def customise_DQM_25ns (process)
 
def customise_harvesting (process)
 
def customise_HLT (process)
 
def customise_L1Emulator (process)
 
def customise_RawToDigi (process)
 
def customise_Reco (process)
 
def customise_Sim (process)
 
def customise_Validation (process)
 
def customisePostLS1 (process, displayDeprecationWarning=True)
 
def customisePostLS1_50ns (process, displayDeprecationWarning=True)
 
def customisePostLS1_Common (process)
 
def customisePostLS1_HI (process, displayDeprecationWarning=True)
 
def customisePostLS1_lowPU (process)
 
def digiEventContent (process)
 
def recoOutputCustoms (process)
 

Function Documentation

◆ customise_DataMix()

def postLS1Customs.customise_DataMix (   process)

Definition at line 252 of file postLS1Customs.py.

252 def customise_DataMix(process):
253  if hasattr(process,'mixData'):
254  if hasattr(process.mixData,'ho'):
255  process.mixData.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16)
256  process.mixData.ho.siPMCode = cms.int32(1)
257  process.mixData.ho.pixels = cms.int32(2500)
258  process.mixData.ho.doSiPMSmearing = cms.bool(False)
259  if hasattr(process.mixData,'hf1'):
260  process.mixData.hf1.samplingFactor = cms.double(0.60)
261  if hasattr(process.mixData,'hf2'):
262  process.mixData.hf2.samplingFactor = cms.double(0.60)
263  return process
264 
265 

Referenced by customisePostLS1_Common().

◆ customise_Digi_25ns()

def postLS1Customs.customise_Digi_25ns (   process)

Definition at line 481 of file postLS1Customs.py.

481 def customise_Digi_25ns(process):
482  if hasattr(process,'mix') and hasattr(process.mix,'digitizers'):
483  if hasattr(process.mix.digitizers,'pixel'):
484  # pixel dynamic inefficency - 13TeV - 25ns case
485  process.mix.digitizers.pixel.theInstLumiScaleFactor = cms.double(364)
486  process.mix.digitizers.pixel.theLadderEfficiency_BPix1 = cms.vdouble(
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  1,
506  1,
507  )
508  process.mix.digitizers.pixel.theLadderEfficiency_BPix2 = cms.vdouble(
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  1,
540  1,
541  )
542  process.mix.digitizers.pixel.theLadderEfficiency_BPix3 = cms.vdouble(
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  1,
586  1,
587  )
588  process.mix.digitizers.pixel.theModuleEfficiency_BPix1 = cms.vdouble(
589  1,
590  1,
591  1,
592  1,
593  )
594  process.mix.digitizers.pixel.theModuleEfficiency_BPix2 = cms.vdouble(
595  1,
596  1,
597  1,
598  1,
599  )
600  process.mix.digitizers.pixel.theModuleEfficiency_BPix3 = cms.vdouble(
601  1,
602  1,
603  1,
604  1,
605  )
606  process.mix.digitizers.pixel.thePUEfficiency_BPix1 = cms.vdouble(
607  1.00023,
608  -3.18350e-06,
609  5.08503e-10,
610  -6.79785e-14,
611  )
612  process.mix.digitizers.pixel.thePUEfficiency_BPix2 = cms.vdouble(
613  9.99974e-01,
614  -8.91313e-07,
615  5.29196e-12,
616  -2.28725e-15,
617  )
618  process.mix.digitizers.pixel.thePUEfficiency_BPix3 = cms.vdouble(
619  1.00005,
620  -6.59249e-07,
621  2.75277e-11,
622  -1.62683e-15,
623  )
624  if hasattr(process,'mixData'):
625  # pixel dynamic inefficency - 13TeV - 25ns case
626  process.mixData.theInstLumiScaleFactor = cms.double(364)
627  process.mixData.theLadderEfficiency_BPix1 = cms.vdouble(
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  1,
647  1,
648  )
649  process.mixData.theLadderEfficiency_BPix2 = cms.vdouble(
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  1,
681  1,
682  )
683  process.mixData.theLadderEfficiency_BPix3 = cms.vdouble(
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  1,
727  1,
728  )
729  process.mixData.theModuleEfficiency_BPix1 = cms.vdouble(
730  1,
731  1,
732  1,
733  1,
734  )
735  process.mixData.theModuleEfficiency_BPix2 = cms.vdouble(
736  1,
737  1,
738  1,
739  1,
740  )
741  process.mixData.theModuleEfficiency_BPix3 = cms.vdouble(
742  1,
743  1,
744  1,
745  1,
746  )
747  process.mixData.thePUEfficiency_BPix1 = cms.vdouble(
748  1.00023,
749  -3.18350e-06,
750  5.08503e-10,
751  -6.79785e-14,
752  )
753  process.mixData.thePUEfficiency_BPix2 = cms.vdouble(
754  9.99974e-01,
755  -8.91313e-07,
756  5.29196e-12,
757  -2.28725e-15,
758  )
759  process.mixData.thePUEfficiency_BPix3 = cms.vdouble(
760  1.00005,
761  -6.59249e-07,
762  2.75277e-11,
763  -1.62683e-15,
764  )
765  return process
766 
767 

Referenced by customisePostLS1().

◆ customise_Digi_50ns()

def postLS1Customs.customise_Digi_50ns (   process)

Definition at line 266 of file postLS1Customs.py.

266 def customise_Digi_50ns(process):
267  if hasattr(process,'mix') and hasattr(process.mix,'digitizers'):
268  if hasattr(process.mix.digitizers,'pixel'):
269  # pixel dynamic inefficency - 13TeV - 50ns case
270  process.mix.digitizers.pixel.theInstLumiScaleFactor = cms.double(246.4)
271  process.mix.digitizers.pixel.theLadderEfficiency_BPix1 = cms.vdouble(
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  0.979259,
291  0.976677,
292  )
293  process.mix.digitizers.pixel.theLadderEfficiency_BPix2 = cms.vdouble(
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  0.994321,
325  0.993944,
326  )
327  process.mix.digitizers.pixel.theLadderEfficiency_BPix3 = cms.vdouble(
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  0.996787,
371  0.996945,
372  )
373  if hasattr(process,'mixData'):
374  # pixel dynamic inefficency - 13TeV - 50ns case
375  process.mixData.theInstLumiScaleFactor = cms.double(246.4)
376  process.mixData.theLadderEfficiency_BPix1 = cms.vdouble(
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  0.979259,
396  0.976677,
397  )
398  process.mixData.theLadderEfficiency_BPix2 = cms.vdouble(
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  0.994321,
430  0.993944,
431  )
432  process.mixData.theLadderEfficiency_BPix3 = cms.vdouble(
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  0.996787,
476  0.996945,
477  )
478  return process
479 
480 

Referenced by customisePostLS1_50ns(), and customisePostLS1_lowPU().

◆ customise_Digi_Common()

def postLS1Customs.customise_Digi_Common (   process)

Definition at line 238 of file postLS1Customs.py.

238 def customise_Digi_Common(process):
239  process = digiEventContent(process)
240  if hasattr(process,'mix') and hasattr(process.mix,'digitizers'):
241  if hasattr(process.mix.digitizers,'hcal') and hasattr(process.mix.digitizers.hcal,'ho'):
242  process.mix.digitizers.hcal.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16)
243  process.mix.digitizers.hcal.ho.siPMCode = cms.int32(1)
244  process.mix.digitizers.hcal.ho.pixels = cms.int32(2500)
245  process.mix.digitizers.hcal.ho.doSiPMSmearing = cms.bool(False)
246  if hasattr(process.mix.digitizers,'hcal') and hasattr(process.mix.digitizers.hcal,'hf1'):
247  process.mix.digitizers.hcal.hf1.samplingFactor = cms.double(0.60)
248  if hasattr(process.mix.digitizers,'hcal') and hasattr(process.mix.digitizers.hcal,'hf2'):
249  process.mix.digitizers.hcal.hf2.samplingFactor = cms.double(0.60)
250  return process
251 

References digiEventContent().

Referenced by customisePostLS1_Common().

◆ customise_DigiToRaw()

def postLS1Customs.customise_DigiToRaw (   process)

Definition at line 778 of file postLS1Customs.py.

778 def customise_DigiToRaw(process):
779  return process
780 
781 

Referenced by customisePostLS1_Common().

◆ customise_DQM()

def postLS1Customs.customise_DQM (   process)

Definition at line 168 of file postLS1Customs.py.

168 def customise_DQM(process):
169  #process.dqmoffline_step.remove(process.jetMETAnalyzer)
170  # Turn off flag of gangedME11a
171  process.l1tCsctf.gangedME11a = cms.untracked.bool(False)
172  # Turn off "low bias voltage" region in HCAL noise filters
173  if hasattr(process,'HBHENoiseFilterResultProducer'):
174  process.HBHENoiseFilterResultProducer.IgnoreTS4TS5ifJetInLowBVRegion = cms.bool(False)
175  return process
176 
177 

Referenced by RecoTLR.customiseDataRun2Common(), and customisePostLS1_Common().

◆ customise_DQM_25ns()

def postLS1Customs.customise_DQM_25ns (   process)

Definition at line 178 of file postLS1Customs.py.

178 def customise_DQM_25ns(process):
179  #Empty place-holder
180  # Switch to Stage1 Digi
181  process.load("L1Trigger.L1TCommon.l1tRawToDigi_cfi")
182  process.load("L1Trigger.L1TCommon.caloStage1LegacyFormatDigis_cfi")
183  if hasattr(process, 'RawToDigi'):
184  process.L1RawToDigiSeq = cms.Sequence(process.gctDigis+process.caloStage1Digis+process.caloStage1LegacyFormatDigis)
185  process.RawToDigi.replace(process.gctDigis, process.L1RawToDigiSeq)
186 
187  process.load('DQMOffline.L1Trigger.L1TriggerDqmOffline_cff')
188  if hasattr(process, 'l1tMonitorStage1Online'):
189  process.l1tRct.rctSource = 'caloStage1Digis'
190  process.l1tRctfromRCT.rctSource = 'rctDigis'
191  process.l1tPUM.regionSource = cms.InputTag("rctDigis")
192  process.l1tStage1Layer2.stage1_layer2_ = cms.bool(True)
193  process.l1tStage1Layer2.gctCentralJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","cenJets")
194  process.l1tStage1Layer2.gctForwardJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","forJets")
195  process.l1tStage1Layer2.gctTauJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","tauJets")
196  process.l1tStage1Layer2.gctIsoTauJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","isoTauJets")
197  process.l1tStage1Layer2.gctEnergySumsSource = cms.InputTag("caloStage1LegacyFormatDigis")
198  process.l1tStage1Layer2.gctIsoEmSource = cms.InputTag("caloStage1LegacyFormatDigis","isoEm")
199  process.l1tStage1Layer2.gctNonIsoEmSource = cms.InputTag("caloStage1LegacyFormatDigis","nonIsoEm")
200  process.dqmL1ExtraParticlesStage1.etTotalSource = 'caloStage1LegacyFormatDigis'
201  process.dqmL1ExtraParticlesStage1.nonIsolatedEmSource = 'caloStage1LegacyFormatDigis:nonIsoEm'
202  process.dqmL1ExtraParticlesStage1.etMissSource = 'caloStage1LegacyFormatDigis'
203  process.dqmL1ExtraParticlesStage1.htMissSource = 'caloStage1LegacyFormatDigis'
204  process.dqmL1ExtraParticlesStage1.forwardJetSource = 'caloStage1LegacyFormatDigis:forJets'
205  process.dqmL1ExtraParticlesStage1.centralJetSource = 'caloStage1LegacyFormatDigis:cenJets'
206  process.dqmL1ExtraParticlesStage1.tauJetSource = 'caloStage1LegacyFormatDigis:tauJets'
207  process.dqmL1ExtraParticlesStage1.isolatedEmSource = 'caloStage1LegacyFormatDigis:isoEm'
208  process.dqmL1ExtraParticlesStage1.etHadSource = 'caloStage1LegacyFormatDigis'
209  process.dqmL1ExtraParticlesStage1.hfRingEtSumsSource = 'caloStage1LegacyFormatDigis'
210  process.dqmL1ExtraParticlesStage1.hfRingBitCountsSource = 'caloStage1LegacyFormatDigis'
211  process.l1ExtraDQMStage1.stage1_layer2_ = cms.bool(True)
212  process.l1ExtraDQMStage1.L1ExtraIsoTauJetSource_ = cms.InputTag("dqmL1ExtraParticlesStage1", "IsoTau")
213 
214  if hasattr(process, 'l1Stage1HwValEmulatorMonitor'):
215  process.l1TdeRCT.rctSourceData = 'caloStage1Digis'
216  process.l1TdeRCTfromRCT.rctSourceData = 'rctDigis'
217  process.l1compareforstage1.GCTsourceData = cms.InputTag("caloStage1LegacyFormatDigis")
218  process.l1compareforstage1.GCTsourceEmul = cms.InputTag("valCaloStage1LegacyFormatDigis")
219  process.l1compareforstage1.stage1_layer2_ = cms.bool(True)
220  process.valStage1GtDigis.GctInputTag = 'caloStage1LegacyFormatDigis'
221 
222  return process
223 
224 

Referenced by RecoTLR.customiseDataRun2Common_25ns(), and customisePostLS1().

◆ customise_harvesting()

def postLS1Customs.customise_harvesting (   process)

Definition at line 824 of file postLS1Customs.py.

824 def customise_harvesting(process):
825  #process.dqmHarvesting.remove(process.dataCertificationJetMET)
826  #process.dqmHarvesting.remove(process.sipixelEDAClient)
827  #process.dqmHarvesting.remove(process.sipixelCertification)
828  return (process)
829 
830 

Referenced by customisePostLS1_Common().

◆ customise_HLT()

def postLS1Customs.customise_HLT (   process)

Definition at line 782 of file postLS1Customs.py.

782 def customise_HLT(process):
783  return process
784 
785 

Referenced by customisePostLS1_Common().

◆ customise_L1Emulator()

def postLS1Customs.customise_L1Emulator (   process)

Definition at line 768 of file postLS1Customs.py.

768 def customise_L1Emulator(process):
769  return process
770 
771 

Referenced by customisePostLS1_Common().

◆ customise_RawToDigi()

def postLS1Customs.customise_RawToDigi (   process)

Definition at line 772 of file postLS1Customs.py.

772 def customise_RawToDigi(process):
773  if hasattr(process,'gtEvmDigis'):
774  process.RawToDigi.remove(process.gtEvmDigis)
775  return process
776 
777 

Referenced by RecoTLR.customiseDataRun2Common(), and customisePostLS1_Common().

◆ customise_Reco()

def postLS1Customs.customise_Reco (   process)

Definition at line 786 of file postLS1Customs.py.

786 def customise_Reco(process):
787  #lowering HO threshold with SiPM
788  if hasattr(process,'particleFlowRecHitHO'):
789  for prod in process.particleFlowRecHitHO.producers:
790  prod.qualityTests = cms.VPSet(
791  cms.PSet(
792  name = cms.string("PFRecHitQTestThreshold"),
793  threshold = cms.double(0.05) # new threshold for SiPM HO
794  ),
795  cms.PSet(
796  name = cms.string("PFRecHitQTestHCALChannel"),
797  maxSeverities = cms.vint32(11),
798  cleaningThresholds = cms.vdouble(0.0),
799  flags = cms.vstring('Standard')
800  )
801  )
802 
803  #Lower Thresholds also for Clusters!!!
804 
805  for p in process.particleFlowClusterHO.seedFinder.thresholdsByDetector:
806  p.seedingThreshold = cms.double(0.08)
807 
808  for p in process.particleFlowClusterHO.initialClusteringStep.thresholdsByDetector:
809  p.gatheringThreshold = cms.double(0.05)
810 
811  for p in process.particleFlowClusterHO.pfClusterBuilder.recHitEnergyNorms:
812  p.recHitEnergyNorm = cms.double(0.05)
813 
814  process.particleFlowClusterHO.pfClusterBuilder.positionCalc.logWeightDenominator = cms.double(0.05)
815  process.particleFlowClusterHO.pfClusterBuilder.allCellsPositionCalc.logWeightDenominator = cms.double(0.05)
816 
817  # Muon reconstruction do not exclude bad chambers
818  if hasattr(process, 'muonDetIdAssociator'):
819  process.muonDetIdAssociator.includeBadChambers = cms.bool(True)
820 
821  return process
822 
823 

Referenced by RecoTLR.customiseDataRun2Common(), and customisePostLS1_Common().

◆ customise_Sim()

def postLS1Customs.customise_Sim (   process)

Definition at line 233 of file postLS1Customs.py.

233 def customise_Sim(process):
234  # enable 2015 HF shower library
235  process.g4SimHits.HFShowerLibrary.FileName = 'SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v4.root'
236  return process
237 

Referenced by customisePostLS1_Common().

◆ customise_Validation()

def postLS1Customs.customise_Validation (   process)

Definition at line 225 of file postLS1Customs.py.

225 def customise_Validation(process):
226  #process.validation_step.remove(process.PixelTrackingRecHitsValid)
227  # We don't run the HLT
228  #process.validation_step.remove(process.HLTSusyExoVal)
229  #process.validation_step.remove(process.hltHiggsValidator)
230  return process
231 
232 

Referenced by customisePostLS1_Common().

◆ customisePostLS1()

def postLS1Customs.customisePostLS1 (   process,
  displayDeprecationWarning = True 
)

Definition at line 45 of file postLS1Customs.py.

45 def customisePostLS1(process,displayDeprecationWarning=True):
46  if displayDeprecationWarning :
47  print("""
48  #
49  # -- Warning! You are using a deprecated customisation function. --
50  #
51  # It will probably run fine, but the customisations you are getting may be out of date.
52  # You should update your configuration file by
53  # If using cmsDriver:
54  # 1) remove the "--customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1" option
55  # 2) add the option "--era Run2_25ns"
56  # If using a pre-made configuration file:
57  # 1) remove or comment out the "process = customisePostLS1(process)" line.
58  # 2) add "from Configuration.Eras.Era_Run2_25ns_cff import Run2_25ns" to the TOP of the config file (above
59  # the process declaration).
60  # 3) add "Run2_25ns" as a parameter to the process object, e.g. "process = cms.Process('HLT',Run2_25ns)"
61  #
62  # There is more information at https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCmsDriverEras
63  #
64  """)
65  # common customisation
66  process = customisePostLS1_Common(process)
67 
68  # 25ns specific customisation
69  if hasattr(process,'digitisation_step'):
70  process = customise_Digi_25ns(process)
71  if hasattr(process,'dqmoffline_step'):
72  process = customise_DQM_25ns(process)
73 
74  return process
75 
76 

References customise_Digi_25ns(), customise_DQM_25ns(), customisePostLS1_Common(), and print().

Referenced by postLS1CustomsPreMixing.customisePostLS1().

◆ customisePostLS1_50ns()

def postLS1Customs.customisePostLS1_50ns (   process,
  displayDeprecationWarning = True 
)

Definition at line 89 of file postLS1Customs.py.

89 def customisePostLS1_50ns(process,displayDeprecationWarning=True):
90  if displayDeprecationWarning :
91  print("""
92  #
93  # -- Warning! You are using a deprecated customisation function. --
94  #
95  # It will probably run fine, but the customisations you are getting may be out of date.
96  # You should update your configuration file by
97  # If using cmsDriver:
98  # 1) remove the "--customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1_50ns" option
99  # 2) add the option "--era Run2_50ns"
100  # If using a pre-made configuration file:
101  # 1) remove or comment out the "process = customisePostLS1_50ns(process)" line.
102  # 2) add "from Configuration.Eras.Era_Run2_50ns_cff import Run2_50ns" to the TOP of the config file (above
103  # the process declaration).
104  # 3) add "Run2_50ns" as a parameter to the process object, e.g. "process = cms.Process('HLT',Run2_50ns)"
105  #
106  # There is more information at https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCmsDriverEras
107  #
108  """)
109 
110  # common customisations
111  process = customisePostLS1_Common(process)
112 
113  # 50ns specific customisation
114  if hasattr(process,'digitisation_step'):
115  process = customise_Digi_50ns(process)
116 
117  return process
118 
119 

References customise_Digi_50ns(), customisePostLS1_Common(), and print().

Referenced by postLS1CustomsPreMixing.customisePostLS1_50ns().

◆ customisePostLS1_Common()

def postLS1Customs.customisePostLS1_Common (   process)

Definition at line 4 of file postLS1Customs.py.

4 def customisePostLS1_Common(process):
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,'HLTSchedule'):
30  process = customise_HLT(process)
31  if hasattr(process,'L1simulation_step'):
32  process = customise_L1Emulator(process)
33  if hasattr(process,'dqmoffline_step'):
34  process = customise_DQM(process)
35  if hasattr(process,'dqmHarvesting'):
36  process = customise_harvesting(process)
37  if hasattr(process,'validation_step'):
38  process = customise_Validation(process)
39  if hasattr(process,'datamixing_step'):
40  process = customise_DataMix(process)
41 
42  return process
43 
44 

References muonCustoms.customise_csc_PostLS1(), customise_DataMix(), customise_Digi_Common(), customise_DigiToRaw(), customise_DQM(), fastSimCustoms.customise_fastSimPostLS1(), customise_harvesting(), customise_HLT(), customise_L1Emulator(), customise_RawToDigi(), customise_Reco(), customise_Sim(), customise_Validation(), and customsPostLS1.customiseSimL1EmulatorForStage1().

Referenced by customisePostLS1(), customisePostLS1_50ns(), customisePostLS1_HI(), and customisePostLS1_lowPU().

◆ customisePostLS1_HI()

def postLS1Customs.customisePostLS1_HI (   process,
  displayDeprecationWarning = True 
)

Definition at line 120 of file postLS1Customs.py.

120 def customisePostLS1_HI(process,displayDeprecationWarning=True):
121  if displayDeprecationWarning :
122  print("""
123  #
124  # -- Warning! You are using a deprecated customisation function. --
125  #
126  # It will probably run fine, but the customisations you are getting may be out of date.
127  # You should update your configuration file by
128  # If using cmsDriver:
129  # 1) remove the "--customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1_HI" option
130  # 2) add the option "--era Run2_HI"
131  # If using a pre-made configuration file:
132  # 1) remove or comment out the "process = customisePostLS1_HI(process)" line.
133  # 2) add "from Configuration.Eras.Era_Run2_HI_cff import Run2_HI" to the TOP of the config file (above
134  # the process declaration).
135  # 3) add "Run2_HI" as a parameter to the process object, e.g. "process = cms.Process('HLT',Run2_HI)"
136  #
137  # There is more information at https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCmsDriverEras
138  #
139  """)
140 
141  # common customisation
142  process = customisePostLS1_Common(process)
143 
144  # HI Specific additional customizations:
145  from L1Trigger.L1TCommon.customsPostLS1 import customiseSimL1EmulatorForPostLS1_Additional_HI
147 
148  # HI L1Menu:
149  #from L1Trigger.Configuration.customise_overwriteL1Menu import L1Menu_CollisionsHeavyIons2015_v0
150  #process = L1Menu_CollisionsHeavyIons2015_v0(process)
151 
152  return process
153 

References customisePostLS1_Common(), customsPostLS1.customiseSimL1EmulatorForPostLS1_Additional_HI(), and print().

Referenced by postLS1CustomsPreMixing.customisePostLS1_HI().

◆ customisePostLS1_lowPU()

def postLS1Customs.customisePostLS1_lowPU (   process)

Definition at line 77 of file postLS1Customs.py.

77 def customisePostLS1_lowPU(process):
78 
79  # common customisations
80  process = customisePostLS1_Common(process)
81 
82  # 50ns specific customisation
83  if hasattr(process,'digitisation_step'):
84  process = customise_Digi_50ns(process)
85 
86  return process
87 
88 

References customise_Digi_50ns(), and customisePostLS1_Common().

◆ digiEventContent()

def postLS1Customs.digiEventContent (   process)

Definition at line 154 of file postLS1Customs.py.

154 def digiEventContent(process):
155  #extend the event content
156 
157  alist=['RAWDEBUG','FEVTDEBUG','FEVTDEBUGHLT','GENRAW','RAWSIMHLT','FEVT']
158  for a in alist:
159  b = a + 'output'
160  if hasattr(process,b):
161  getattr(process,b).outputCommands.append('keep *_simMuonCSCDigis_*_*')
162  getattr(process,b).outputCommands.append('keep *_simMuonRPCDigis_*_*')
163  getattr(process,b).outputCommands.append('keep *_simHcalUnsuppressedDigis_*_*')
164 
165  return process
166 
167 

Referenced by customise_Digi_Common().

◆ recoOutputCustoms()

def postLS1Customs.recoOutputCustoms (   process)

Definition at line 831 of file postLS1Customs.py.

831 def recoOutputCustoms(process):
832 
833  alist=['AODSIM','RECOSIM','FEVTSIM','FEVTDEBUG','FEVTDEBUGHLT','RECODEBUG','RAWRECOSIMHLT','RAWRECODEBUGHLT']
834  for a in alist:
835  b = a + 'output'
836  if hasattr(process,b):
837  getattr(process,b).outputCommands.append('keep *_simMuonCSCDigis_*_*')
838  getattr(process,b).outputCommands.append('keep *_simMuonRPCDigis_*_*')
839  getattr(process,b).outputCommands.append('keep *_simHcalUnsuppressedDigis_*_*')
840  getattr(process,b).outputCommands.append('keep *_rawDataCollector_*_*')
841  return process
postLS1Customs.customise_Reco
def customise_Reco(process)
Definition: postLS1Customs.py:786
postLS1Customs.customise_RawToDigi
def customise_RawToDigi(process)
Definition: postLS1Customs.py:772
postLS1Customs.customise_HLT
def customise_HLT(process)
Definition: postLS1Customs.py:782
postLS1Customs.digiEventContent
def digiEventContent(process)
Definition: postLS1Customs.py:154
postLS1Customs.customise_Sim
def customise_Sim(process)
Definition: postLS1Customs.py:233
postLS1Customs.customise_DQM
def customise_DQM(process)
Definition: postLS1Customs.py:168
postLS1Customs.customise_DataMix
def customise_DataMix(process)
Definition: postLS1Customs.py:252
postLS1Customs.customisePostLS1_50ns
def customisePostLS1_50ns(process, displayDeprecationWarning=True)
Definition: postLS1Customs.py:89
customsPostLS1.customiseSimL1EmulatorForStage1
def customiseSimL1EmulatorForStage1(process)
Definition: customsPostLS1.py:10
postLS1Customs.customise_L1Emulator
def customise_L1Emulator(process)
Definition: postLS1Customs.py:768
customsPostLS1.customiseSimL1EmulatorForPostLS1_Additional_HI
def customiseSimL1EmulatorForPostLS1_Additional_HI(process)
Definition: customsPostLS1.py:150
postLS1Customs.recoOutputCustoms
def recoOutputCustoms(process)
Definition: postLS1Customs.py:831
postLS1Customs.customise_DQM_25ns
def customise_DQM_25ns(process)
Definition: postLS1Customs.py:178
postLS1Customs.customisePostLS1_Common
def customisePostLS1_Common(process)
Definition: postLS1Customs.py:4
postLS1Customs.customise_Digi_50ns
def customise_Digi_50ns(process)
Definition: postLS1Customs.py:266
print
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:46
postLS1Customs.customise_harvesting
def customise_harvesting(process)
Definition: postLS1Customs.py:824
postLS1Customs.customise_Digi_Common
def customise_Digi_Common(process)
Definition: postLS1Customs.py:238
postLS1Customs.customisePostLS1
def customisePostLS1(process, displayDeprecationWarning=True)
Definition: postLS1Customs.py:45
postLS1Customs.customise_Digi_25ns
def customise_Digi_25ns(process)
Definition: postLS1Customs.py:481
fastSimCustoms.customise_fastSimPostLS1
def customise_fastSimPostLS1(process)
Definition: fastSimCustoms.py:3
postLS1Customs.customisePostLS1_lowPU
def customisePostLS1_lowPU(process)
Definition: postLS1Customs.py:77
postLS1Customs.customise_DigiToRaw
def customise_DigiToRaw(process)
Definition: postLS1Customs.py:778
postLS1Customs.customise_Validation
def customise_Validation(process)
Definition: postLS1Customs.py:225
postLS1Customs.customisePostLS1_HI
def customisePostLS1_HI(process, displayDeprecationWarning=True)
Definition: postLS1Customs.py:120
muonCustoms.customise_csc_PostLS1
def customise_csc_PostLS1(process)
Definition: muonCustoms.py:234