Skip to content
Snippets Groups Projects
Commit 291d33ac authored by Markus Frank's avatar Markus Frank Committed by MarkusFrankATcernch
Browse files

Add example readme

parent 565b85bf
No related branches found
No related tags found
No related merge requests found
![DDCore](../../doc/logo_small.png)
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
![HORIZON2020](../doc/usermanuals/DD4hep/figures/AIDA-2020.png)
...@@ -14,7 +14,7 @@ import os ...@@ -14,7 +14,7 @@ import os
import time import time
import DDG4 import DDG4
from DDG4 import OutputLevel as Output from DDG4 import OutputLevel as Output
from g4units import GeV, MeV, m from g4units import GeV
""" """
...@@ -59,10 +59,9 @@ def run(): ...@@ -59,10 +59,9 @@ def run():
# Configure I/O # Configure I/O
geant4.setupROOTOutput('RootOutput', 'DD4hep_Issue_1134_' + time.strftime('%Y-%m-%d_%H-%M')) geant4.setupROOTOutput('RootOutput', 'DD4hep_Issue_1134_' + time.strftime('%Y-%m-%d_%H-%M'))
# Setup particle gun # Setup particle gun
gun = geant4.setupGun("Gun", particle='e+', energy=20 * GeV, multiplicity=1) gun = geant4.setupGun("Gun", particle='e+', energy=20 * GeV, multiplicity=1)
gun.OutputLevel = Output.INFO
# Now build the physics list: # Now build the physics list:
phys = geant4.setupPhysics('QGSP_BERT') phys = geant4.setupPhysics('QGSP_BERT')
ph = DDG4.PhysicsList(kernel, str('Geant4PhysicsList/Myphysics')) ph = DDG4.PhysicsList(kernel, str('Geant4PhysicsList/Myphysics'))
......
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