From 670d80e18a1e3f3ae7519f48ca54bb0e1a630d89 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Thu, 6 Jun 2019 17:54:10 +0200
Subject: [PATCH] DDSim.Physics: add docstring for list

---
 DDG4/python/DDSim/Helper/Physics.py | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/DDG4/python/DDSim/Helper/Physics.py b/DDG4/python/DDSim/Helper/Physics.py
index 1024fcfeb..c6943132b 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
-- 
GitLab