Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-05-18 09:15:29

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def neutronBG(process):
0004 
0005   # common fragment allowing to simulate neutron background in muon system
0006 
0007   if hasattr(process,'g4SimHits'):
0008   # time window 10 second
0009     TimeCut = cms.double(10000000000.0)
0010     process.common_maximum_time.MaxTrackTime = TimeCut
0011     process.common_maximum_time.DeadRegions = cms.vstring()
0012     # Physics List XS
0013     process.g4SimHits.Physics.type = cms.string('SimG4Core/Physics/FTFP_BERT_XS_EML')
0014     process.g4SimHits.Physics.CutsOnProton  = cms.untracked.bool(False)
0015     process.g4SimHits.Physics.FlagFluo    = cms.bool(True)
0016     process.g4SimHits.Physics.ThermalNeutrons = cms.untracked.bool(False)
0017     # Eta cut
0018     process.g4SimHits.Generator.MinEtaCut = cms.double(-7.0)
0019     process.g4SimHits.Generator.MaxEtaCut = cms.double(7.0)
0020     # stacking action
0021     process.g4SimHits.StackingAction.MaxTrackTime = TimeCut
0022     process.g4SimHits.StackingAction.DeadRegions = cms.vstring()
0023     process.g4SimHits.StackingAction.GammaThreshold = cms.double(0.0)
0024     # stepping action
0025     process.g4SimHits.SteppingAction.MaxNumberOfSteps = cms.int32(1000000)
0026     process.g4SimHits.SteppingAction.MaxTrackTime = TimeCut
0027     process.g4SimHits.SteppingAction.DeadRegions = cms.vstring()
0028     # Russian roulette disabled
0029     process.g4SimHits.StackingAction.RusRoGammaEnergyLimit = cms.double(0.0)
0030     process.g4SimHits.StackingAction.RusRoNeutronEnergyLimit = cms.double(0.0)
0031     # Calorimeter hits
0032     process.g4SimHits.CaloSD.TmaxHit = TimeCut
0033     process.g4SimHits.CaloSD.TmaxHits = cms.vdouble(10000000000,10000000000,10000000000,10000000000,10000000000)
0034     # full simulation of HF 
0035     process.g4SimHits.HCalSD.UseShowerLibrary = cms.bool(False)
0036     process.g4SimHits.HFShower.UseShowerLibrary = cms.bool(False)
0037 
0038     return(process)