CMS 3D CMS Logo

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  # using HP neutron package and thermal neutron scattering
7 
8  from SimG4Core.Application.NeutronBGforMuons_cff import neutronBG
9 
10  process = neutronBG(process)
11 
12  if hasattr(process,'g4SimHits'):
13  process.g4SimHits.Physics.type = cms.string('SimG4Core/Physics/FTFP_BERT_HP_EML')
14  process.g4SimHits.Physics.ThermalNeutrons = cms.untracked.bool(True)
15 
16  return(process)
17 
return(e1-e2)*(e1-e2)+dp *dp