test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
NeutronBGforMuonsHP_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 def customise(process):
4 
5  # fragment allowing to simulate neutron background in muon system
6 
7  if hasattr(process,'g4SimHits'):
8  # time window 100 millisecond
9  process.common_maximum_time.MaxTrackTime = cms.double(100000000.0)
10  process.common_maximum_time.DeadRegions = cms.vstring()
11  # Physics List HP
12  process.g4SimHits.Physics.type = cms.string('SimG4Core/Physics/FTFP_BERT_HP_EML')
13  process.g4SimHits.Physics.CutsOnProton = cms.untracked.bool(False)
14  process.g4SimHits.Physics.FlagMuNucl = cms.bool(True)
15  process.g4SimHits.Physics.FlagFluo = cms.bool(True)
16  # Eta cut
17  process.g4SimHits.Generator.MinEtaCut = cms.double(-7.0)
18  process.g4SimHits.Generator.MaxEtaCut = cms.double(7.0)
19  # stacking action
20  process.g4SimHits.StackingAction.MaxTrackTime = cms.double(100000000.0)
21  process.g4SimHits.StackingAction.DeadRegions = cms.vstring()
22  process.g4SimHits.StackingAction.KillHeavy = cms.bool(True)
23  process.g4SimHits.StackingAction.IonThreshold = cms.double(0.001)
24  process.g4SimHits.StackingAction.ProtonThreshold = cms.double(0.001)
25  process.g4SimHits.StackingAction.NeutronThreshold = cms.double(0.0)
26  process.g4SimHits.StackingAction.GammaThreshold = cms.double(0.0005)
27  # stepping action
28  process.g4SimHits.SteppingAction.MaxTrackTime = cms.double(100000000.0)
29  process.g4SimHits.SteppingAction.DeadRegions = cms.vstring()
30  # Russian roulette disabled
31  process.g4SimHits.StackingAction.RusRoGammaEnergyLimit = cms.double(0.0)
32  process.g4SimHits.StackingAction.RusRoNeutronEnergyLimit = cms.double(0.0)
33  # full simulation of HF
34  process.g4SimHits.HFShower.UseHFGflash = cms.bool(False)
35 
36  return(process)
return(e1-e2)*(e1-e2)+dp *dp