CMS 3D CMS Logo

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

Functions

def customise
 

Function Documentation

def cpuBenchmark_cff.customise (   process)

Definition at line 3 of file cpuBenchmark_cff.py.

References gpuVertexFinder.return.

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