Skip to content
Snippets Groups Projects
Commit 275654d2 authored by Andre Sailer's avatar Andre Sailer Committed by Marko Petric
Browse files

DDG4: ddsim: disable physics.decays by default, add documentation with warning

parent a3a1f4e3
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ class Physics( ConfigHelper ): ...@@ -11,7 +11,7 @@ class Physics( ConfigHelper ):
super(Physics, self).__init__() super(Physics, self).__init__()
self._rangecut = 0.7*mm self._rangecut = 0.7*mm
self.list ="FTFP_BERT" self.list ="FTFP_BERT"
self.decays = True self._decays = False
self._pdgfile = None self._pdgfile = None
self._rejectPDGs = {1,2,3,4,5,6,21,23,24,25} self._rejectPDGs = {1,2,3,4,5,6,21,23,24,25}
self._zeroTimePDGs = {11, 13, 15, 17} self._zeroTimePDGs = {11, 13, 15, 17}
...@@ -77,6 +77,16 @@ class Physics( ConfigHelper ): ...@@ -77,6 +77,16 @@ class Physics( ConfigHelper ):
raise RuntimeError( "PDGFile: %s not found" % os.path.abspath( val ) ) raise RuntimeError( "PDGFile: %s not found" % os.path.abspath( val ) )
self._pdgfile = os.path.abspath( val ) self._pdgfile = os.path.abspath( val )
@property
def decays(self):
"""If true, add decay processes for all particles.
Only enable when creating a physics list not based on an existing Geant4 list!
"""
return self._decays
@decays.setter
def decays(self, val):
self._decays = val
def setupPhysics( self, kernel, name=None): def setupPhysics( self, kernel, name=None):
seq = kernel.physicsList() seq = kernel.physicsList()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment