From 5a67467b5435a6b26331a898c28fde042038b2a0 Mon Sep 17 00:00:00 2001
From: Markus FRANK <Markus.Frank@cern.ch>
Date: Wed, 28 Oct 2020 20:57:59 +0100
Subject: [PATCH] Add standalone example to test CMS reflection operations

---
 examples/ClientTests/scripts/Check_reflection.py | 4 ++--
 examples/ClientTests/scripts/Check_shape.py      | 9 ++++-----
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/examples/ClientTests/scripts/Check_reflection.py b/examples/ClientTests/scripts/Check_reflection.py
index 55b8da194..ca3ccaa88 100644
--- a/examples/ClientTests/scripts/Check_reflection.py
+++ b/examples/ClientTests/scripts/Check_reflection.py
@@ -42,10 +42,10 @@ def run():
   # Configure UI
   geant4 = DDG4.Geant4(kernel, tracker='Geant4TrackerCombineAction')
   if batch:
-    ui = geant4.setupCshUI(ui=None, vis=None)
+    geant4.setupCshUI(ui=None, vis=None)
     kernel.UI = 'UI'
   else:
-    ui = geant4.setupCshUI(vis=vis)
+    geant4.setupCshUI(vis=vis)
   Output = DDG4.OutputLevel
   seq, act = geant4.addDetectorConstruction("Geant4DetectorGeometryConstruction/ConstructGeo")
   act.DebugMaterials = False
diff --git a/examples/ClientTests/scripts/Check_shape.py b/examples/ClientTests/scripts/Check_shape.py
index 69f8f9354..057ecb9b5 100644
--- a/examples/ClientTests/scripts/Check_shape.py
+++ b/examples/ClientTests/scripts/Check_shape.py
@@ -54,11 +54,10 @@ def run():
   kernel.physicsList().enableUI()
   DDG4.setPrintLevel(DDG4.OutputLevel.DEBUG)
   #
-  #      '/ddg4/ConstructGeometry/writeGDML   test.gdml',
-  ui.Commands = [
-    '/ddg4/ConstructGeometry/printVolume /world_volume_1/Shape_Test_0/Shape_Test_vol_0_0',
-    '/ddg4/UI/exit'
-    ]
+  cmds = []
+  cmds.append('/ddg4/ConstructGeometry/printVolume /world_volume_1/Shape_Test_0/Shape_Test_vol_0_0')
+  cmds.append('/ddg4/UI/exit')
+  ui.Commands = cmds
   kernel.NumEvents = 0
   kernel.configure()
   kernel.initialize()
-- 
GitLab