Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:29:32

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def customise(process):
0004 
0005   #Adding SimpleMemoryCheck service:
0006   process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
0007                                         ignoreTotal=cms.untracked.int32(1),
0008                                         oncePerEventMode=cms.untracked.bool(True))
0009   #Adding Timing service:
0010   process.Timing=cms.Service("Timing")
0011 
0012   #Add these 3 lines to put back the summary for timing information at the end of the logfile
0013   #(needed for TimeReport report)
0014   if hasattr(process,'options'):
0015     process.options.wantSummary = cms.untracked.bool(True)
0016   else:
0017     process.options = cms.untracked.PSet(
0018     wantSummary = cms.untracked.bool(True)
0019   )
0020 
0021   # a fragment allowing to disable various options
0022   if hasattr(process,'g4SimHits'):
0023     #  eta cuts
0024     process.g4SimHits.Generator.MinEtaCut = cms.double(-5.5)
0025     process.g4SimHits.Generator.MaxEtaCut = cms.double(5.5)
0026     #  Geant4 Physics List
0027     process.g4SimHits.Physics.type = cms.string('SimG4Core/Physics/FTFP_BERT')
0028     #  Russian roulette 
0029     process.g4SimHits.StackingAction.RusRoGammaEnergyLimit = cms.double(0.0)
0030     process.g4SimHits.StackingAction.RusRoNeutronEnergyLimit = cms.double(0.0)
0031     #  HF shower library
0032     process.g4SimHits.HCalSD.UseShowerLibrary = cms.bool(False)
0033     process.g4SimHits.HFShower.UseShowerLibrary = cms.bool(False)
0034     #  tracking cuts
0035     process.common_maximum_time.DeadRegions = cms.vstring()
0036     process.common_maximum_time.CriticalDensity = cms.double(0)
0037     process.common_maximum_time.CriticalEnergyForVacuum = cms.double(0)
0038     process.g4SimHits.StackingAction.TrackNeutrino = cms.bool(True)
0039     process.g4SimHits.StackingAction.KillGamma     = cms.bool(False)
0040     process.g4SimHits.StackingAction.CriticalEnergyForVacuum = cms.double(0)
0041     process.g4SimHits.StackingAction.DeadRegions = cms.vstring()
0042     process.g4SimHits.SteppingAction.CriticalDensity = cms.double(0)
0043     process.g4SimHits.SteppingAction.CriticalEnergyForVacuum = cms.double(0)
0044     process.g4SimHits.SteppingAction.DeadRegions = cms.vstring()
0045     #  time cuts
0046     TimeCut = cms.double(10000.0)
0047     process.common_maximum_time.MaxTrackTime = TimeCut
0048     process.g4SimHits.StackingAction.MaxTrackTime = TimeCut
0049     process.g4SimHits.SteppingAction.MaxTrackTime = TimeCut
0050     process.g4SimHits.CaloSD.TmaxHit = TimeCut
0051     process.g4SimHits.CaloSD.TmaxHits = cms.vdouble(10000,10000,10000,10000,10000)
0052     #  cuts per region
0053     process.g4SimHits.Physics.CutsPerRegion = cms.bool(False)
0054     process.g4SimHits.Physics.DefaultCutValue = cms.double(0.07)
0055     return(process)