From 7d3bf03c2f78adb81cf844ca23d5a2f4ae1d06fd Mon Sep 17 00:00:00 2001 From: Markus Frank Date: Mon, 22 Jul 2024 08:40:36 +0200 Subject: [PATCH] Revert change from PR1288 --- DDG4/python/DDG4.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/DDG4/python/DDG4.py b/DDG4/python/DDG4.py index eb0822034..41007834e 100644 --- a/DDG4/python/DDG4.py +++ b/DDG4/python/DDG4.py @@ -681,8 +681,6 @@ def setupCalorimeter(self, name, type=None, collections=None): # noqa: A002 # sd.setType('calorimeter') if typ is None: typ = self.sensitive_types['calorimeter'] - elif typ is not None and self.sensitive_types.get(typ): - typ = self.sensitive_types[typ] return self.setupDetector(name, typ, collections) def setupTracker(self, name, type=None, collections=None): # noqa: A002 @@ -696,8 +694,6 @@ def setupTracker(self, name, type=None, collections=None): # noqa: A002 # sd.setType('tracker') if typ is None: typ = self.sensitive_types['tracker'] - elif typ is not None and self.sensitive_types.get(typ): - typ = self.sensitive_types[typ] return self.setupDetector(name, typ, collections) def _private_setupField(self, field, stepper, equation, prt):