From 638cc283780972e352a468a543d3908565482a0e Mon Sep 17 00:00:00 2001
From: Markus Frank <Markus.Frank@cern.ch>
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 @@ class Geant4:
     # 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 @@ class Geant4:
     # 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):
-- 
GitLab