CMS 3D CMS Logo

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

Functions

def neutronBG
 

Function Documentation

def NeutronBGforMuons_cff.neutronBG (   process)

Definition at line 3 of file NeutronBGforMuons_cff.py.

References gpuVertexFinder.return.

Referenced by NeutronBGforMuonsHP_cff.customise(), and NeutronBGforMuonsXS_cff.customise().

3 
4 def neutronBG(process):
5 
6  # common fragment allowing to simulate neutron background in muon system
7 
8  if hasattr(process,'g4SimHits'):
9  # time window 10 second
10  TimeCut = cms.double(10000000000.0)
11  process.common_maximum_time.MaxTrackTime = TimeCut
12  process.common_maximum_time.DeadRegions = cms.vstring()
13  # Physics List XS
14  process.g4SimHits.Physics.type = cms.string('SimG4Core/Physics/FTFP_BERT_XS_EML')
15  process.g4SimHits.Physics.CutsOnProton = cms.untracked.bool(False)
16  process.g4SimHits.Physics.FlagFluo = cms.bool(True)
17  process.g4SimHits.Physics.ThermalNeutrons = cms.untracked.bool(False)
18  # Eta cut
19  process.g4SimHits.Generator.MinEtaCut = cms.double(-7.0)
20  process.g4SimHits.Generator.MaxEtaCut = cms.double(7.0)
21  # stacking action
22  process.g4SimHits.StackingAction.MaxTrackTime = TimeCut
23  process.g4SimHits.StackingAction.DeadRegions = cms.vstring()
24  process.g4SimHits.StackingAction.GammaThreshold = cms.double(0.0)
25  # stepping action
26  process.g4SimHits.SteppingAction.MaxNumberOfSteps = cms.int32(1000000)
27  process.g4SimHits.SteppingAction.MaxTrackTime = TimeCut
28  process.g4SimHits.SteppingAction.DeadRegions = cms.vstring()
29  # Russian roulette disabled
30  process.g4SimHits.StackingAction.RusRoGammaEnergyLimit = cms.double(0.0)
31  process.g4SimHits.StackingAction.RusRoNeutronEnergyLimit = cms.double(0.0)
32  # Calorimeter hits
33  process.g4SimHits.CaloSD.TmaxHit = TimeCut
34  process.g4SimHits.CaloSD.TmaxHits = cms.vdouble(10000000000,10000000000,10000000000,10000000000,10000000000)
35  # full simulation of HF
36  process.g4SimHits.HCalSD.UseShowerLibrary = cms.bool(False)
37  process.g4SimHits.HFShower.UseShowerLibrary = cms.bool(False)
38 
39  return(process)