Skip to content
Snippets Groups Projects
Commit 5a67467b authored by Markus FRANK's avatar Markus FRANK Committed by MarkusFrankATcernch
Browse files

Add standalone example to test CMS reflection operations

parent 78fdf351
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment