CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
postLS1Customs Namespace Reference

Functions

def customise_DataMix
 
def customise_Digi_25ns
 
def customise_Digi_50ns
 
def customise_Digi_Common
 
def customise_DigiToRaw
 
def customise_DQM
 
def customise_DQM_25ns
 
def customise_harvesting
 
def customise_L1Emulator
 
def customise_RawToDigi
 
def customise_Reco
 
def customise_Sim
 
def customise_Validation
 
def customisePostLS1
 
def customisePostLS1_50ns
 
def customisePostLS1_Common
 
def customisePostLS1_HI
 
def customisePostLS1_lowPU
 
def digiEventContent
 
def recoOutputCustoms
 

Function Documentation

def postLS1Customs.customise_DataMix (   process)

Definition at line 250 of file postLS1Customs.py.

Referenced by customisePostLS1_Common().

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

Definition at line 479 of file postLS1Customs.py.

Referenced by customisePostLS1().

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

Definition at line 264 of file postLS1Customs.py.

Referenced by customisePostLS1_50ns(), and customisePostLS1_lowPU().

265 def customise_Digi_50ns(process):
266  if hasattr(process,'mix') and hasattr(process.mix,'digitizers'):
267  if hasattr(process.mix.digitizers,'pixel'):
268  # pixel dynamic inefficency - 13TeV - 50ns case
269  process.mix.digitizers.pixel.theInstLumiScaleFactor = cms.double(246.4)
270  process.mix.digitizers.pixel.theLadderEfficiency_BPix1 = cms.vdouble(
271  0.979259,
272  0.976677,
273  0.979259,
274  0.976677,
275  0.979259,
276  0.976677,
277  0.979259,
278  0.976677,
279  0.979259,
280  0.976677,
281  0.979259,
282  0.976677,
283  0.979259,
284  0.976677,
285  0.979259,
286  0.976677,
287  0.979259,
288  0.976677,
289  0.979259,
290  0.976677,
291  )
292  process.mix.digitizers.pixel.theLadderEfficiency_BPix2 = cms.vdouble(
293  0.994321,
294  0.993944,
295  0.994321,
296  0.993944,
297  0.994321,
298  0.993944,
299  0.994321,
300  0.993944,
301  0.994321,
302  0.993944,
303  0.994321,
304  0.993944,
305  0.994321,
306  0.993944,
307  0.994321,
308  0.993944,
309  0.994321,
310  0.993944,
311  0.994321,
312  0.993944,
313  0.994321,
314  0.993944,
315  0.994321,
316  0.993944,
317  0.994321,
318  0.993944,
319  0.994321,
320  0.993944,
321  0.994321,
322  0.993944,
323  0.994321,
324  0.993944,
325  )
326  process.mix.digitizers.pixel.theLadderEfficiency_BPix3 = cms.vdouble(
327  0.996787,
328  0.996945,
329  0.996787,
330  0.996945,
331  0.996787,
332  0.996945,
333  0.996787,
334  0.996945,
335  0.996787,
336  0.996945,
337  0.996787,
338  0.996945,
339  0.996787,
340  0.996945,
341  0.996787,
342  0.996945,
343  0.996787,
344  0.996945,
345  0.996787,
346  0.996945,
347  0.996787,
348  0.996945,
349  0.996787,
350  0.996945,
351  0.996787,
352  0.996945,
353  0.996787,
354  0.996945,
355  0.996787,
356  0.996945,
357  0.996787,
358  0.996945,
359  0.996787,
360  0.996945,
361  0.996787,
362  0.996945,
363  0.996787,
364  0.996945,
365  0.996787,
366  0.996945,
367  0.996787,
368  0.996945,
369  0.996787,
370  0.996945,
371  )
372  if hasattr(process,'mixData'):
373  # pixel dynamic inefficency - 13TeV - 50ns case
374  process.mixData.theInstLumiScaleFactor = cms.double(246.4)
375  process.mixData.theLadderEfficiency_BPix1 = cms.vdouble(
376  0.979259,
377  0.976677,
378  0.979259,
379  0.976677,
380  0.979259,
381  0.976677,
382  0.979259,
383  0.976677,
384  0.979259,
385  0.976677,
386  0.979259,
387  0.976677,
388  0.979259,
389  0.976677,
390  0.979259,
391  0.976677,
392  0.979259,
393  0.976677,
394  0.979259,
395  0.976677,
396  )
397  process.mixData.theLadderEfficiency_BPix2 = cms.vdouble(
398  0.994321,
399  0.993944,
400  0.994321,
401  0.993944,
402  0.994321,
403  0.993944,
404  0.994321,
405  0.993944,
406  0.994321,
407  0.993944,
408  0.994321,
409  0.993944,
410  0.994321,
411  0.993944,
412  0.994321,
413  0.993944,
414  0.994321,
415  0.993944,
416  0.994321,
417  0.993944,
418  0.994321,
419  0.993944,
420  0.994321,
421  0.993944,
422  0.994321,
423  0.993944,
424  0.994321,
425  0.993944,
426  0.994321,
427  0.993944,
428  0.994321,
429  0.993944,
430  )
431  process.mixData.theLadderEfficiency_BPix3 = cms.vdouble(
432  0.996787,
433  0.996945,
434  0.996787,
435  0.996945,
436  0.996787,
437  0.996945,
438  0.996787,
439  0.996945,
440  0.996787,
441  0.996945,
442  0.996787,
443  0.996945,
444  0.996787,
445  0.996945,
446  0.996787,
447  0.996945,
448  0.996787,
449  0.996945,
450  0.996787,
451  0.996945,
452  0.996787,
453  0.996945,
454  0.996787,
455  0.996945,
456  0.996787,
457  0.996945,
458  0.996787,
459  0.996945,
460  0.996787,
461  0.996945,
462  0.996787,
463  0.996945,
464  0.996787,
465  0.996945,
466  0.996787,
467  0.996945,
468  0.996787,
469  0.996945,
470  0.996787,
471  0.996945,
472  0.996787,
473  0.996945,
474  0.996787,
475  0.996945,
476  )
477  return process
478 
def postLS1Customs.customise_Digi_Common (   process)

Definition at line 236 of file postLS1Customs.py.

References digiEventContent().

Referenced by customisePostLS1_Common().

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

Definition at line 776 of file postLS1Customs.py.

Referenced by customisePostLS1_Common().

777 def customise_DigiToRaw(process):
778  return process
779 
def postLS1Customs.customise_DQM (   process)

Definition at line 166 of file postLS1Customs.py.

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

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

Definition at line 176 of file postLS1Customs.py.

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

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

Definition at line 818 of file postLS1Customs.py.

Referenced by customisePostLS1_Common().

819 def customise_harvesting(process):
820  #process.dqmHarvesting.remove(process.dataCertificationJetMET)
821  #process.dqmHarvesting.remove(process.sipixelEDAClient)
822  #process.dqmHarvesting.remove(process.sipixelCertification)
823  return (process)
824 
def postLS1Customs.customise_L1Emulator (   process)

Definition at line 766 of file postLS1Customs.py.

Referenced by customisePostLS1_Common().

767 def customise_L1Emulator(process):
768  return process
769 
def postLS1Customs.customise_RawToDigi (   process)

Definition at line 770 of file postLS1Customs.py.

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

771 def customise_RawToDigi(process):
772  if hasattr(process,'gtEvmDigis'):
773  process.RawToDigi.remove(process.gtEvmDigis)
774  return process
775 
def postLS1Customs.customise_Reco (   process)

Definition at line 780 of file postLS1Customs.py.

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

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

Definition at line 231 of file postLS1Customs.py.

Referenced by customisePostLS1_Common().

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

Definition at line 223 of file postLS1Customs.py.

Referenced by customisePostLS1_Common().

224 def customise_Validation(process):
225  #process.validation_step.remove(process.PixelTrackingRecHitsValid)
226  # We don't run the HLT
227  #process.validation_step.remove(process.HLTSusyExoVal)
228  #process.validation_step.remove(process.hltHiggsValidator)
229  return process
230 
def postLS1Customs.customisePostLS1 (   process,
  displayDeprecationWarning = True 
)

Definition at line 43 of file postLS1Customs.py.

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

Referenced by postLS1CustomsPreMixing.customisePostLS1().

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

Definition at line 87 of file postLS1Customs.py.

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

Referenced by postLS1CustomsPreMixing.customisePostLS1_50ns().

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

Definition at line 4 of file postLS1Customs.py.

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

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

4 
5 def customisePostLS1_Common(process):
6 
7  # deal with L1 Emulation separately
8  from L1Trigger.L1TCommon.customsPostLS1 import customiseSimL1EmulatorForStage1
9  process = customiseSimL1EmulatorForStage1(process)
10 
11  # deal with CSC separately
12  from SLHCUpgradeSimulations.Configuration.muonCustoms import customise_csc_PostLS1
13  process = customise_csc_PostLS1(process)
14 
15  # deal with FastSim separately
16  from SLHCUpgradeSimulations.Configuration.fastSimCustoms import customise_fastSimPostLS1
17  process = customise_fastSimPostLS1(process)
18 
19  # all the rest
20  if hasattr(process,'g4SimHits'):
21  process = customise_Sim(process)
22  if hasattr(process,'DigiToRaw'):
23  process = customise_DigiToRaw(process)
24  if hasattr(process,'RawToDigi'):
25  process = customise_RawToDigi(process)
26  if hasattr(process,'reconstruction'):
27  process = customise_Reco(process)
28  if hasattr(process,'digitisation_step') or ( hasattr(process,'mix') and hasattr(process.mix,'digitizers')):
29  process = customise_Digi_Common(process)
30  if hasattr(process,'L1simulation_step'):
31  process = customise_L1Emulator(process)
32  if hasattr(process,'dqmoffline_step'):
33  process = customise_DQM(process)
34  if hasattr(process,'dqmHarvesting'):
35  process = customise_harvesting(process)
36  if hasattr(process,'validation_step'):
37  process = customise_Validation(process)
38  if hasattr(process,'datamixing_step'):
39  process = customise_DataMix(process)
40 
41  return process
42 
def customisePostLS1_Common
def customiseSimL1EmulatorForStage1
def customise_csc_PostLS1
Definition: muonCustoms.py:234
def customise_fastSimPostLS1
def postLS1Customs.customisePostLS1_HI (   process,
  displayDeprecationWarning = True 
)

Definition at line 118 of file postLS1Customs.py.

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

Referenced by postLS1CustomsPreMixing.customisePostLS1_HI().

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

Definition at line 75 of file postLS1Customs.py.

References customise_Digi_50ns(), and customisePostLS1_Common().

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

Definition at line 152 of file postLS1Customs.py.

Referenced by customise_Digi_Common().

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

Definition at line 825 of file postLS1Customs.py.

826 def recoOutputCustoms(process):
827 
828  alist=['AODSIM','RECOSIM','FEVTSIM','FEVTDEBUG','FEVTDEBUGHLT','RECODEBUG','RAWRECOSIMHLT','RAWRECODEBUGHLT']
829  for a in alist:
830  b = a + 'output'
831  if hasattr(process,b):
832  getattr(process,b).outputCommands.append('keep *_simMuonCSCDigis_*_*')
833  getattr(process,b).outputCommands.append('keep *_simMuonRPCDigis_*_*')
834  getattr(process,b).outputCommands.append('keep *_simHcalUnsuppressedDigis_*_*')
835  getattr(process,b).outputCommands.append('keep *_rawDataCollector_*_*')
836  return process