Skip to content
Snippets Groups Projects
Commit 391d0e8a authored by Andre Sailer's avatar Andre Sailer
Browse files

DDSim::Physics: remove duplicate implementation of pdgfile property

parent 448cf69f
No related branches found
No related tags found
No related merge requests found
...@@ -55,20 +55,6 @@ class Physics( ConfigHelper ): ...@@ -55,20 +55,6 @@ class Physics( ConfigHelper ):
self._pdgfile = os.path.abspath( val ) self._pdgfile = os.path.abspath( val )
@property
def pdgfile( self ):
""" location of particle.tbl file containing extra particles and their lifetime information
"""
return self._pdgfile
@pdgfile.setter
def pdgfile( self, val ):
if not val:
self._pdgfile = None
return
if not os.path.exists( val ):
raise RuntimeError( "PDGFile: %s not found" % os.path.abspath( val ) )
self._pdgfile = os.path.abspath( val )
def setupPhysics( self, kernel, name=None): def setupPhysics( self, kernel, name=None):
seq = kernel.physicsList() seq = kernel.physicsList()
seq.extends = name if name is not None else self.list 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