test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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_HLT
 
def customise_L1Emulator
 
def customise_RawToDigi
 
def customise_Reco
 
def customise_Sim
 
def customise_Validation
 
def customisePostLS1
 
def customisePostLS1_50ns
 
def customisePostLS1_B0T
 
def customisePostLS1_B0T_lowPU
 
def customisePostLS1_Common
 
def customisePostLS1_HI
 
def customisePostLS1_lowPU
 
def digiEventContent
 
def recoOutputCustoms
 

Function Documentation

def postLS1Customs.customise_DataMix (   process)

Definition at line 270 of file postLS1Customs.py.

Referenced by customisePostLS1_Common().

271 def customise_DataMix(process):
272  if hasattr(process,'mixData'):
273  if hasattr(process.mixData,'ho'):
274  process.mixData.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16)
275  process.mixData.ho.siPMCode = cms.int32(1)
276  process.mixData.ho.pixels = cms.int32(2500)
277  process.mixData.ho.doSiPMSmearing = cms.bool(False)
278  if hasattr(process.mixData,'hf1'):
279  process.mixData.hf1.samplingFactor = cms.double(0.60)
280  if hasattr(process.mixData,'hf2'):
281  process.mixData.hf2.samplingFactor = cms.double(0.60)
282  return process
283 
def postLS1Customs.customise_Digi_25ns (   process)

Definition at line 499 of file postLS1Customs.py.

Referenced by customisePostLS1().

500 def customise_Digi_25ns(process):
501  if hasattr(process,'mix') and hasattr(process.mix,'digitizers'):
502  if hasattr(process.mix.digitizers,'pixel'):
503  # pixel dynamic inefficency - 13TeV - 25ns case
504  process.mix.digitizers.pixel.theInstLumiScaleFactor = cms.double(364)
505  process.mix.digitizers.pixel.theLadderEfficiency_BPix1 = cms.vdouble(
506  1,
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  )
527  process.mix.digitizers.pixel.theLadderEfficiency_BPix2 = cms.vdouble(
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  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  )
561  process.mix.digitizers.pixel.theLadderEfficiency_BPix3 = cms.vdouble(
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  1,
588  1,
589  1,
590  1,
591  1,
592  1,
593  1,
594  1,
595  1,
596  1,
597  1,
598  1,
599  1,
600  1,
601  1,
602  1,
603  1,
604  1,
605  1,
606  )
607  process.mix.digitizers.pixel.theModuleEfficiency_BPix1 = cms.vdouble(
608  1,
609  1,
610  1,
611  1,
612  )
613  process.mix.digitizers.pixel.theModuleEfficiency_BPix2 = cms.vdouble(
614  1,
615  1,
616  1,
617  1,
618  )
619  process.mix.digitizers.pixel.theModuleEfficiency_BPix3 = cms.vdouble(
620  1,
621  1,
622  1,
623  1,
624  )
625  process.mix.digitizers.pixel.thePUEfficiency_BPix1 = cms.vdouble(
626  1.00023,
627  -3.18350e-06,
628  5.08503e-10,
629  -6.79785e-14,
630  )
631  process.mix.digitizers.pixel.thePUEfficiency_BPix2 = cms.vdouble(
632  9.99974e-01,
633  -8.91313e-07,
634  5.29196e-12,
635  -2.28725e-15,
636  )
637  process.mix.digitizers.pixel.thePUEfficiency_BPix3 = cms.vdouble(
638  1.00005,
639  -6.59249e-07,
640  2.75277e-11,
641  -1.62683e-15,
642  )
643  if hasattr(process,'mixData'):
644  # pixel dynamic inefficency - 13TeV - 25ns case
645  process.mixData.theInstLumiScaleFactor = cms.double(364)
646  process.mixData.theLadderEfficiency_BPix1 = cms.vdouble(
647  1,
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  )
668  process.mixData.theLadderEfficiency_BPix2 = cms.vdouble(
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  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  )
702  process.mixData.theLadderEfficiency_BPix3 = cms.vdouble(
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  1,
729  1,
730  1,
731  1,
732  1,
733  1,
734  1,
735  1,
736  1,
737  1,
738  1,
739  1,
740  1,
741  1,
742  1,
743  1,
744  1,
745  1,
746  1,
747  )
748  process.mixData.theModuleEfficiency_BPix1 = cms.vdouble(
749  1,
750  1,
751  1,
752  1,
753  )
754  process.mixData.theModuleEfficiency_BPix2 = cms.vdouble(
755  1,
756  1,
757  1,
758  1,
759  )
760  process.mixData.theModuleEfficiency_BPix3 = cms.vdouble(
761  1,
762  1,
763  1,
764  1,
765  )
766  process.mixData.thePUEfficiency_BPix1 = cms.vdouble(
767  1.00023,
768  -3.18350e-06,
769  5.08503e-10,
770  -6.79785e-14,
771  )
772  process.mixData.thePUEfficiency_BPix2 = cms.vdouble(
773  9.99974e-01,
774  -8.91313e-07,
775  5.29196e-12,
776  -2.28725e-15,
777  )
778  process.mixData.thePUEfficiency_BPix3 = cms.vdouble(
779  1.00005,
780  -6.59249e-07,
781  2.75277e-11,
782  -1.62683e-15,
783  )
784  return process
785 
def postLS1Customs.customise_Digi_50ns (   process)

Definition at line 284 of file postLS1Customs.py.

Referenced by customisePostLS1_50ns(), and customisePostLS1_lowPU().

285 def customise_Digi_50ns(process):
286  if hasattr(process,'mix') and hasattr(process.mix,'digitizers'):
287  if hasattr(process.mix.digitizers,'pixel'):
288  # pixel dynamic inefficency - 13TeV - 50ns case
289  process.mix.digitizers.pixel.theInstLumiScaleFactor = cms.double(246.4)
290  process.mix.digitizers.pixel.theLadderEfficiency_BPix1 = cms.vdouble(
291  0.979259,
292  0.976677,
293  0.979259,
294  0.976677,
295  0.979259,
296  0.976677,
297  0.979259,
298  0.976677,
299  0.979259,
300  0.976677,
301  0.979259,
302  0.976677,
303  0.979259,
304  0.976677,
305  0.979259,
306  0.976677,
307  0.979259,
308  0.976677,
309  0.979259,
310  0.976677,
311  )
312  process.mix.digitizers.pixel.theLadderEfficiency_BPix2 = cms.vdouble(
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  0.994321,
326  0.993944,
327  0.994321,
328  0.993944,
329  0.994321,
330  0.993944,
331  0.994321,
332  0.993944,
333  0.994321,
334  0.993944,
335  0.994321,
336  0.993944,
337  0.994321,
338  0.993944,
339  0.994321,
340  0.993944,
341  0.994321,
342  0.993944,
343  0.994321,
344  0.993944,
345  )
346  process.mix.digitizers.pixel.theLadderEfficiency_BPix3 = cms.vdouble(
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  0.996787,
372  0.996945,
373  0.996787,
374  0.996945,
375  0.996787,
376  0.996945,
377  0.996787,
378  0.996945,
379  0.996787,
380  0.996945,
381  0.996787,
382  0.996945,
383  0.996787,
384  0.996945,
385  0.996787,
386  0.996945,
387  0.996787,
388  0.996945,
389  0.996787,
390  0.996945,
391  )
392  if hasattr(process,'mixData'):
393  # pixel dynamic inefficency - 13TeV - 50ns case
394  process.mixData.theInstLumiScaleFactor = cms.double(246.4)
395  process.mixData.theLadderEfficiency_BPix1 = cms.vdouble(
396  0.979259,
397  0.976677,
398  0.979259,
399  0.976677,
400  0.979259,
401  0.976677,
402  0.979259,
403  0.976677,
404  0.979259,
405  0.976677,
406  0.979259,
407  0.976677,
408  0.979259,
409  0.976677,
410  0.979259,
411  0.976677,
412  0.979259,
413  0.976677,
414  0.979259,
415  0.976677,
416  )
417  process.mixData.theLadderEfficiency_BPix2 = cms.vdouble(
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  0.994321,
431  0.993944,
432  0.994321,
433  0.993944,
434  0.994321,
435  0.993944,
436  0.994321,
437  0.993944,
438  0.994321,
439  0.993944,
440  0.994321,
441  0.993944,
442  0.994321,
443  0.993944,
444  0.994321,
445  0.993944,
446  0.994321,
447  0.993944,
448  0.994321,
449  0.993944,
450  )
451  process.mixData.theLadderEfficiency_BPix3 = cms.vdouble(
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  0.996787,
477  0.996945,
478  0.996787,
479  0.996945,
480  0.996787,
481  0.996945,
482  0.996787,
483  0.996945,
484  0.996787,
485  0.996945,
486  0.996787,
487  0.996945,
488  0.996787,
489  0.996945,
490  0.996787,
491  0.996945,
492  0.996787,
493  0.996945,
494  0.996787,
495  0.996945,
496  )
497  return process
498 
def postLS1Customs.customise_Digi_Common (   process)

Definition at line 256 of file postLS1Customs.py.

References digiEventContent().

Referenced by customisePostLS1_Common().

257 def customise_Digi_Common(process):
258  process = digiEventContent(process)
259  if hasattr(process,'mix') and hasattr(process.mix,'digitizers'):
260  if hasattr(process.mix.digitizers,'hcal') and hasattr(process.mix.digitizers.hcal,'ho'):
261  process.mix.digitizers.hcal.ho.photoelectronsToAnalog = cms.vdouble([4.0]*16)
262  process.mix.digitizers.hcal.ho.siPMCode = cms.int32(1)
263  process.mix.digitizers.hcal.ho.pixels = cms.int32(2500)
264  process.mix.digitizers.hcal.ho.doSiPMSmearing = cms.bool(False)
265  if hasattr(process.mix.digitizers,'hcal') and hasattr(process.mix.digitizers.hcal,'hf1'):
266  process.mix.digitizers.hcal.hf1.samplingFactor = cms.double(0.60)
267  if hasattr(process.mix.digitizers,'hcal') and hasattr(process.mix.digitizers.hcal,'hf2'):
268  process.mix.digitizers.hcal.hf2.samplingFactor = cms.double(0.60)
269  return process
def postLS1Customs.customise_DigiToRaw (   process)

Definition at line 796 of file postLS1Customs.py.

Referenced by customisePostLS1_Common().

797 def customise_DigiToRaw(process):
798  return process
799 
def postLS1Customs.customise_DQM (   process)

Definition at line 186 of file postLS1Customs.py.

Referenced by customisePostLS1_Common().

187 def customise_DQM(process):
188  #process.dqmoffline_step.remove(process.jetMETAnalyzer)
189  # Turn off flag of gangedME11a
190  process.l1tCsctf.gangedME11a = cms.untracked.bool(False)
191  # Turn off "low bias voltage" region in HCAL noise filters
192  if hasattr(process,'HBHENoiseFilterResultProducer'):
193  process.HBHENoiseFilterResultProducer.IgnoreTS4TS5ifJetInLowBVRegion = cms.bool(False)
194  return process
195 
def postLS1Customs.customise_DQM_25ns (   process)

Definition at line 196 of file postLS1Customs.py.

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

197 def customise_DQM_25ns(process):
198  #Empty place-holder
199  # Switch to Stage1 Digi
200  process.load("L1Trigger.L1TCommon.l1tRawToDigi_cfi")
201  process.load("L1Trigger.L1TCommon.caloStage1LegacyFormatDigis_cfi")
202  if hasattr(process, 'RawToDigi'):
203  process.L1RawToDigiSeq = cms.Sequence(process.gctDigis+process.caloStage1Digis+process.caloStage1LegacyFormatDigis)
204  process.RawToDigi.replace(process.gctDigis, process.L1RawToDigiSeq)
205 
206  process.load('DQMOffline.L1Trigger.L1TriggerDqmOffline_cff')
207  if hasattr(process, 'l1tMonitorStage1Online'):
208  process.l1tRct.rctSource = 'caloStage1Digis'
209  process.l1tRctfromRCT.rctSource = 'rctDigis'
210  process.l1tPUM.regionSource = cms.InputTag("rctDigis")
211  process.l1tStage1Layer2.stage1_layer2_ = cms.bool(True)
212  process.l1tStage1Layer2.gctCentralJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","cenJets")
213  process.l1tStage1Layer2.gctForwardJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","forJets")
214  process.l1tStage1Layer2.gctTauJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","tauJets")
215  process.l1tStage1Layer2.gctIsoTauJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","isoTauJets")
216  process.l1tStage1Layer2.gctEnergySumsSource = cms.InputTag("caloStage1LegacyFormatDigis")
217  process.l1tStage1Layer2.gctIsoEmSource = cms.InputTag("caloStage1LegacyFormatDigis","isoEm")
218  process.l1tStage1Layer2.gctNonIsoEmSource = cms.InputTag("caloStage1LegacyFormatDigis","nonIsoEm")
219  process.dqmL1ExtraParticlesStage1.etTotalSource = 'caloStage1LegacyFormatDigis'
220  process.dqmL1ExtraParticlesStage1.nonIsolatedEmSource = 'caloStage1LegacyFormatDigis:nonIsoEm'
221  process.dqmL1ExtraParticlesStage1.etMissSource = 'caloStage1LegacyFormatDigis'
222  process.dqmL1ExtraParticlesStage1.htMissSource = 'caloStage1LegacyFormatDigis'
223  process.dqmL1ExtraParticlesStage1.forwardJetSource = 'caloStage1LegacyFormatDigis:forJets'
224  process.dqmL1ExtraParticlesStage1.centralJetSource = 'caloStage1LegacyFormatDigis:cenJets'
225  process.dqmL1ExtraParticlesStage1.tauJetSource = 'caloStage1LegacyFormatDigis:tauJets'
226  process.dqmL1ExtraParticlesStage1.isolatedEmSource = 'caloStage1LegacyFormatDigis:isoEm'
227  process.dqmL1ExtraParticlesStage1.etHadSource = 'caloStage1LegacyFormatDigis'
228  process.dqmL1ExtraParticlesStage1.hfRingEtSumsSource = 'caloStage1LegacyFormatDigis'
229  process.dqmL1ExtraParticlesStage1.hfRingBitCountsSource = 'caloStage1LegacyFormatDigis'
230  process.l1ExtraDQMStage1.stage1_layer2_ = cms.bool(True)
231  process.l1ExtraDQMStage1.L1ExtraIsoTauJetSource_ = cms.InputTag("dqmL1ExtraParticlesStage1", "IsoTau")
232 
233  if hasattr(process, 'l1Stage1HwValEmulatorMonitor'):
234  process.l1TdeRCT.rctSourceData = 'caloStage1Digis'
235  process.l1TdeRCTfromRCT.rctSourceData = 'rctDigis'
236  process.l1compareforstage1.GCTsourceData = cms.InputTag("caloStage1LegacyFormatDigis")
237  process.l1compareforstage1.GCTsourceEmul = cms.InputTag("valCaloStage1LegacyFormatDigis")
238  process.l1compareforstage1.stage1_layer2_ = cms.bool(True)
239  process.valStage1GtDigis.GctInputTag = 'caloStage1LegacyFormatDigis'
240 
241  return process
242 
def postLS1Customs.customise_harvesting (   process)

Definition at line 842 of file postLS1Customs.py.

Referenced by customisePostLS1_Common().

843 def customise_harvesting(process):
844  #process.dqmHarvesting.remove(process.dataCertificationJetMET)
845  #process.dqmHarvesting.remove(process.sipixelEDAClient)
846  #process.dqmHarvesting.remove(process.sipixelCertification)
847  return (process)
848 
def postLS1Customs.customise_HLT (   process)

Definition at line 800 of file postLS1Customs.py.

Referenced by customisePostLS1_Common().

801 def customise_HLT(process):
802  return process
803 
def postLS1Customs.customise_L1Emulator (   process)

Definition at line 786 of file postLS1Customs.py.

Referenced by customisePostLS1_Common().

787 def customise_L1Emulator(process):
788  return process
789 
def postLS1Customs.customise_RawToDigi (   process)

Definition at line 790 of file postLS1Customs.py.

Referenced by customisePostLS1_Common().

791 def customise_RawToDigi(process):
792  if hasattr(process,'gtEvmDigis'):
793  process.RawToDigi.remove(process.gtEvmDigis)
794  return process
795 
def postLS1Customs.customise_Reco (   process)

Definition at line 804 of file postLS1Customs.py.

Referenced by customisePostLS1_Common().

805 def customise_Reco(process):
806  #lowering HO threshold with SiPM
807  if hasattr(process,'particleFlowRecHitHO'):
808  for prod in process.particleFlowRecHitHO.producers:
809  prod.qualityTests = cms.VPSet(
810  cms.PSet(
811  name = cms.string("PFRecHitQTestThreshold"),
812  threshold = cms.double(0.05) # new threshold for SiPM HO
813  ),
814  cms.PSet(
815  name = cms.string("PFRecHitQTestHCALChannel"),
816  maxSeverities = cms.vint32(11),
817  cleaningThresholds = cms.vdouble(0.0),
818  flags = cms.vstring('Standard')
819  )
820  )
821 
822  #Lower Thresholds also for Clusters!!!
823 
824  for p in process.particleFlowClusterHO.seedFinder.thresholdsByDetector:
825  p.seedingThreshold = cms.double(0.08)
826 
827  for p in process.particleFlowClusterHO.initialClusteringStep.thresholdsByDetector:
828  p.gatheringThreshold = cms.double(0.05)
829 
830  for p in process.particleFlowClusterHO.pfClusterBuilder.recHitEnergyNorms:
831  p.recHitEnergyNorm = cms.double(0.05)
832 
833  process.particleFlowClusterHO.pfClusterBuilder.positionCalc.logWeightDenominator = cms.double(0.05)
834  process.particleFlowClusterHO.pfClusterBuilder.allCellsPositionCalc.logWeightDenominator = cms.double(0.05)
835 
836  # Muon reconstruction do not exclude bad chambers
837  if hasattr(process, 'muonDetIdAssociator'):
838  process.muonDetIdAssociator.includeBadChambers = cms.bool(True)
839 
840  return process
841 
def postLS1Customs.customise_Sim (   process)

Definition at line 251 of file postLS1Customs.py.

Referenced by customisePostLS1_Common().

252 def customise_Sim(process):
253  # enable 2015 HF shower library
254  process.g4SimHits.HFShowerLibrary.FileName = 'SimG4CMS/Calo/data/HFShowerLibrary_npmt_noatt_eta4_16en_v3.root'
255  return process
def postLS1Customs.customise_Validation (   process)

Definition at line 243 of file postLS1Customs.py.

Referenced by customisePostLS1_Common().

244 def customise_Validation(process):
245  #process.validation_step.remove(process.PixelTrackingRecHitsValid)
246  # We don't run the HLT
247  #process.validation_step.remove(process.HLTSusyExoVal)
248  #process.validation_step.remove(process.hltHiggsValidator)
249  return process
250 
def postLS1Customs.customisePostLS1 (   process,
  displayDeprecationWarning = True 
)

Definition at line 46 of file postLS1Customs.py.

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

Referenced by combinedCustoms.cust_2017(), combinedCustoms.cust_2019(), and postLS1CustomsPreMixing.customisePostLS1().

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

Definition at line 90 of file postLS1Customs.py.

References customise_Digi_50ns(), and customisePostLS1_Common().

Referenced by postLS1CustomsPreMixing.customisePostLS1_50ns(), and customisePostLS1_B0T().

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

Definition at line 155 of file postLS1Customs.py.

References customisePostLS1_50ns().

156 def customisePostLS1_B0T(process):
157  # 50ns only
158 
159  process=customisePostLS1_50ns(process)
160  process=customiseForRunI(process)
161 
162  return process
def postLS1Customs.customisePostLS1_B0T_lowPU (   process)

Definition at line 163 of file postLS1Customs.py.

References customisePostLS1_lowPU().

164 def customisePostLS1_B0T_lowPU(process):
165  # 50ns only
166 
167  process=customisePostLS1_lowPU(process)
168  process=customiseForRunI(process)
169 
170  return process
171 
def customisePostLS1_lowPU
def customisePostLS1_B0T_lowPU
def postLS1Customs.customisePostLS1_Common (   process)

Definition at line 5 of file postLS1Customs.py.

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().

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

Definition at line 121 of file postLS1Customs.py.

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

Referenced by postLS1CustomsPreMixing.customisePostLS1_HI().

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

Definition at line 78 of file postLS1Customs.py.

References customise_Digi_50ns(), and customisePostLS1_Common().

Referenced by customisePostLS1_B0T_lowPU().

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

Definition at line 172 of file postLS1Customs.py.

Referenced by customise_Digi_Common().

173 def digiEventContent(process):
174  #extend the event content
175 
176  alist=['RAWDEBUG','FEVTDEBUG','FEVTDEBUGHLT','GENRAW','RAWSIMHLT','FEVT']
177  for a in alist:
178  b = a + 'output'
179  if hasattr(process,b):
180  getattr(process,b).outputCommands.append('keep *_simMuonCSCDigis_*_*')
181  getattr(process,b).outputCommands.append('keep *_simMuonRPCDigis_*_*')
182  getattr(process,b).outputCommands.append('keep *_simHcalUnsuppressedDigis_*_*')
183 
184  return process
185 
def postLS1Customs.recoOutputCustoms (   process)

Definition at line 849 of file postLS1Customs.py.

850 def recoOutputCustoms(process):
851 
852  alist=['AODSIM','RECOSIM','FEVTSIM','FEVTDEBUG','FEVTDEBUGHLT','RECODEBUG','RAWRECOSIMHLT','RAWRECODEBUGHLT']
853  for a in alist:
854  b = a + 'output'
855  if hasattr(process,b):
856  getattr(process,b).outputCommands.append('keep *_simMuonCSCDigis_*_*')
857  getattr(process,b).outputCommands.append('keep *_simMuonRPCDigis_*_*')
858  getattr(process,b).outputCommands.append('keep *_simHcalUnsuppressedDigis_*_*')
859  getattr(process,b).outputCommands.append('keep *_rawDataCollector_*_*')
860  return process