Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
291d33ac
Commit
291d33ac
authored
1 year ago
by
Markus Frank
Committed by
MarkusFrankATcernch
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Add example readme
parent
565b85bf
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/DDCAD/README.md
+18
-0
18 additions, 0 deletions
examples/DDCAD/README.md
examples/DDCAD/scripts/DD4hep_Issue_1134.py
+2
-3
2 additions, 3 deletions
examples/DDCAD/scripts/DD4hep_Issue_1134.py
with
20 additions
and
3 deletions
examples/DDCAD/README.md
0 → 100644
+
18
−
0
View file @
291d33ac

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

This diff is collapsed.
Click to expand it.
examples/DDCAD/scripts/DD4hep_Issue_1134.py
+
2
−
3
View file @
291d33ac
...
@@ -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
'
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment