diff --git a/examples/DDCAD/README.md b/examples/DDCAD/README.md new file mode 100644 index 0000000000000000000000000000000000000000..63c66853718538fe4c3f4a34c5ae015f7ec4741d --- /dev/null +++ b/examples/DDCAD/README.md @@ -0,0 +1,18 @@ + + +DDCAD examples +============== + +## Issue 1134 +Corresponding example is DD4hep_Issue_1134 + +Geometry is here: examples/DDCAD/compact/DD4hep_Issue_1134.xml + +To visualize: $> geoDisplay <installation>/examples/DDCAD/compact/DD4hep_Issue_1134.xml + +Basic simulation activation: $> python <installation>/examples/DDCAD/scripts/DD4hep_Issue_1134.py + +ddsim: $> `which python` `which ddsim` --compactFile ../checkout/examples/DDCAD/compact/DD4hep_Issue_1134.xml --enableG4Gun --runType shell + + + diff --git a/examples/DDCAD/scripts/DD4hep_Issue_1134.py b/examples/DDCAD/scripts/DD4hep_Issue_1134.py index 761b9e2f49187be80360f03e717372e9f363f94a..8b033cf86c1855ef76e9e0228ab2410736e4d6b0 100644 --- a/examples/DDCAD/scripts/DD4hep_Issue_1134.py +++ b/examples/DDCAD/scripts/DD4hep_Issue_1134.py @@ -14,7 +14,7 @@ import os import time import DDG4 from DDG4 import OutputLevel as Output -from g4units import GeV, MeV, m +from g4units import GeV """ @@ -59,10 +59,9 @@ def run(): # Configure I/O geant4.setupROOTOutput('RootOutput', 'DD4hep_Issue_1134_' + time.strftime('%Y-%m-%d_%H-%M')) - # Setup particle gun gun = geant4.setupGun("Gun", particle='e+', energy=20 * GeV, multiplicity=1) - + gun.OutputLevel = Output.INFO # Now build the physics list: phys = geant4.setupPhysics('QGSP_BERT') ph = DDG4.PhysicsList(kernel, str('Geant4PhysicsList/Myphysics'))