diff --git a/DDG4/python/DDSim/Helper/Gun.py b/DDG4/python/DDSim/Helper/Gun.py index 9963afe4ac19752c62b1f401ee499cf78eab7601..249826c5303909c0ee82ecafcfaf8e0de2bd2821 100644 --- a/DDG4/python/DDSim/Helper/Gun.py +++ b/DDG4/python/DDSim/Helper/Gun.py @@ -51,7 +51,7 @@ class Gun(ConfigHelper): def distribution(self, val): if val is None: return - possibleDistributions = ['uniform', 'cos(theta)', 'eta', 'pseudorapidity', 'ffbar'] # (1+cos^2 theta) + possibleDistributions = self._distribution_EXTRA['choices'] if not isinstance(val, six.string_types): raise RuntimeError("malformed input '%s' for gun.distribution. Need a string : %s " % (val, ",".join(possibleDistributions)))