From 757aeade25d4453b22ac504e40d0774507a6d347 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Fri, 20 Nov 2020 13:22:17 +0100
Subject: [PATCH] DDSim.Gun: python3: fix problem with isotrop being set to
 False

this worked accidentally in python2, but now the dictionary order is fixed and isotrop was set to false when parsing the default values, because it happens after the setting of distribution now
---
 DDG4/python/DDSim/Helper/Gun.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/DDG4/python/DDSim/Helper/Gun.py b/DDG4/python/DDSim/Helper/Gun.py
index 249826c53..c5f7765ff 100644
--- a/DDG4/python/DDSim/Helper/Gun.py
+++ b/DDG4/python/DDSim/Helper/Gun.py
@@ -70,7 +70,7 @@ class Gun(ConfigHelper):
     use the options phiMin, phiMax, thetaMin, and thetaMax to limit the range of randomly distributed directions
     if one of these options is not None the random distribution will be set to True and cannot be turned off!
     """
-    return self._isotrop
+    return self._isotrop or bool(self._distribution)
 
   @isotrop.setter
   def isotrop(self, val):
-- 
GitLab