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(): ...@@ -42,10 +42,10 @@ def run():
# Configure UI # Configure UI
geant4 = DDG4.Geant4(kernel, tracker='Geant4TrackerCombineAction') geant4 = DDG4.Geant4(kernel, tracker='Geant4TrackerCombineAction')
if batch: if batch:
ui = geant4.setupCshUI(ui=None, vis=None) geant4.setupCshUI(ui=None, vis=None)
kernel.UI = 'UI' kernel.UI = 'UI'
else: else:
ui = geant4.setupCshUI(vis=vis) geant4.setupCshUI(vis=vis)
Output = DDG4.OutputLevel Output = DDG4.OutputLevel
seq, act = geant4.addDetectorConstruction("Geant4DetectorGeometryConstruction/ConstructGeo") seq, act = geant4.addDetectorConstruction("Geant4DetectorGeometryConstruction/ConstructGeo")
act.DebugMaterials = False act.DebugMaterials = False
......
...@@ -54,11 +54,10 @@ def run(): ...@@ -54,11 +54,10 @@ def run():
kernel.physicsList().enableUI() kernel.physicsList().enableUI()
DDG4.setPrintLevel(DDG4.OutputLevel.DEBUG) DDG4.setPrintLevel(DDG4.OutputLevel.DEBUG)
# #
# '/ddg4/ConstructGeometry/writeGDML test.gdml', cmds = []
ui.Commands = [ cmds.append('/ddg4/ConstructGeometry/printVolume /world_volume_1/Shape_Test_0/Shape_Test_vol_0_0')
'/ddg4/ConstructGeometry/printVolume /world_volume_1/Shape_Test_0/Shape_Test_vol_0_0', cmds.append('/ddg4/UI/exit')
'/ddg4/UI/exit' ui.Commands = cmds
]
kernel.NumEvents = 0 kernel.NumEvents = 0
kernel.configure() kernel.configure()
kernel.initialize() 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