diff --git a/DDG4/python/DDSim/Helper/Physics.py b/DDG4/python/DDSim/Helper/Physics.py index 1024fcfeb40414fb16bb04d5c376c0b88581f323..c6943132ba08c4ded62c30b70004afd4494812ac 100644 --- a/DDG4/python/DDSim/Helper/Physics.py +++ b/DDG4/python/DDSim/Helper/Physics.py @@ -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