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

DDSim.Physics: add docstring for list

parent 275654d2
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ class Physics( ConfigHelper ):
def __init__( self ):
super(Physics, self).__init__()
self._rangecut = 0.7*mm
self.list ="FTFP_BERT"
self._list = "FTFP_BERT"
self._decays = False
self._pdgfile = None
self._rejectPDGs = {1,2,3,4,5,6,21,23,24,25}
......@@ -88,6 +88,14 @@ class Physics( ConfigHelper ):
def decays(self, val):
self._decays = val
@property
def list(self):
"""The name of the Geant4 Physics list."""
return self._list
@list.setter
def list(self, val):
self._list = val
def setupPhysics( self, kernel, name=None):
seq = kernel.physicsList()
seq.extends = name if name is not None else self.list
......
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