CMS 3D CMS Logo

Functions
cpuBenchmark_cff Namespace Reference

Functions

def customise (process)
 

Function Documentation

◆ customise()

def cpuBenchmark_cff.customise (   process)

Definition at line 3 of file cpuBenchmark_cff.py.

References mathSSE.return().

3 def customise(process):
4 
5  #Adding SimpleMemoryCheck service:
6  process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
7  ignoreTotal=cms.untracked.int32(1),
8  oncePerEventMode=cms.untracked.bool(True))
9  #Adding Timing service:
10  process.Timing=cms.Service("Timing")
11 
12  #Add these 3 lines to put back the summary for timing information at the end of the logfile
13  #(needed for TimeReport report)
14  if hasattr(process,'options'):
15  process.options.wantSummary = cms.untracked.bool(True)
16  else:
17  process.options = cms.untracked.PSet(
18  wantSummary = cms.untracked.bool(True)
19  )
20 
21  # a fragment allowing to disable various options
22  if hasattr(process,'g4SimHits'):
23  # eta cuts
24  process.g4SimHits.Generator.MinEtaCut = cms.double(-5.5)
25  process.g4SimHits.Generator.MaxEtaCut = cms.double(5.5)
26  # Geant4 Physics List
27  process.g4SimHits.Physics.type = cms.string('SimG4Core/Physics/FTFP_BERT')
28  # Russian roulette
29  process.g4SimHits.StackingAction.RusRoGammaEnergyLimit = cms.double(0.0)
30  process.g4SimHits.StackingAction.RusRoNeutronEnergyLimit = cms.double(0.0)
31  # HF shower library
32  process.g4SimHits.HCalSD.UseShowerLibrary = cms.bool(False)
33  process.g4SimHits.HFShower.UseShowerLibrary = cms.bool(False)
34  # tracking cuts
35  process.common_maximum_time.DeadRegions = cms.vstring()
36  process.common_maximum_time.CriticalDensity = cms.double(0)
37  process.common_maximum_time.CriticalEnergyForVacuum = cms.double(0)
38  process.g4SimHits.StackingAction.TrackNeutrino = cms.bool(True)
39  process.g4SimHits.StackingAction.KillGamma = cms.bool(False)
40  process.g4SimHits.StackingAction.CriticalEnergyForVacuum = cms.double(0)
41  process.g4SimHits.StackingAction.DeadRegions = cms.vstring()
42  process.g4SimHits.SteppingAction.CriticalDensity = cms.double(0)
43  process.g4SimHits.SteppingAction.CriticalEnergyForVacuum = cms.double(0)
44  process.g4SimHits.SteppingAction.DeadRegions = cms.vstring()
45  # time cuts
46  TimeCut = cms.double(10000.0)
47  process.common_maximum_time.MaxTrackTime = TimeCut
48  process.g4SimHits.StackingAction.MaxTrackTime = TimeCut
49  process.g4SimHits.SteppingAction.MaxTrackTime = TimeCut
50  process.g4SimHits.CaloSD.TmaxHit = TimeCut
51  process.g4SimHits.CaloSD.TmaxHits = cms.vdouble(10000,10000,10000,10000,10000)
52  # cuts per region
53  process.g4SimHits.Physics.CutsPerRegion = cms.bool(False)
54  process.g4SimHits.Physics.DefaultCutValue = cms.double(0.07)
55  return(process)
56 
return((rh ^ lh) &mask)
def customise(process)