From 391d0e8adcb6d8a2abf24cb5350e5f080cded13d Mon Sep 17 00:00:00 2001 From: Andre Sailer <andre.philippe.sailer@cern.ch> Date: Mon, 26 Feb 2018 17:04:05 +0100 Subject: [PATCH] DDSim::Physics: remove duplicate implementation of pdgfile property --- DDSim/Helper/Physics.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/DDSim/Helper/Physics.py b/DDSim/Helper/Physics.py index a31c283c2..b868f1e8c 100644 --- a/DDSim/Helper/Physics.py +++ b/DDSim/Helper/Physics.py @@ -55,20 +55,6 @@ class Physics( ConfigHelper ): 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): seq = kernel.physicsList() seq.extends = name if name is not None else self.list -- GitLab