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
3f96b2b1
Commit
3f96b2b1
authored
1 year ago
by
Wouter Deconinck
Committed by
MarkusFrankATcernch
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: extended Action docstring
parent
2b6ea26b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDG4/python/DDSim/Helper/Action.py
+8
-6
8 additions, 6 deletions
DDG4/python/DDSim/Helper/Action.py
with
8 additions
and
6 deletions
DDG4/python/DDSim/Helper/Action.py
+
8
−
6
View file @
3f96b2b1
...
@@ -30,14 +30,16 @@ class Action(ConfigHelper):
...
@@ -30,14 +30,16 @@ class Action(ConfigHelper):
>>>
SIM
=
DD4hepSimulation
()
>>>
SIM
=
DD4hepSimulation
()
>>>
SIM
.
action
.
mapActions
[
'
ecal
'
]
=
(
"
CaloPreShowerSDAction
"
,
{
"
FirstLayerNumber
"
:
1
}
)
>>>
SIM
.
action
.
mapActions
[
'
ecal
'
]
=
(
"
CaloPreShowerSDAction
"
,
{
"
FirstLayerNumber
"
:
1
}
)
Additional actions can be set as well with
Additional actions can be set as well with
the following syntax variations:
>>>
SIM
=
DD4hepSimulation
()
>>>
SIM
=
DD4hepSimulation
()
>>>
SIM
.
action
.
run
=
[
(
"
Geant4TestRunAction
"
,
{
"
Property_int
"
:
10
}
)
]
>>>
SIM
.
action
.
run
=
"
Geant4TestRunAction
"
# name only
>>>
SIM
.
action
.
event
=
[
(
"
Geant4TestEventAction
"
,
{
"
Property_int
"
:
10
}
)
]
>>>
SIM
.
action
.
event
=
"
Geant4TestEventAction/EventAction0,Geant4TestEventAction/EventAction1
"
# comma-separated names
>>>
SIM
.
action
.
track
=
[
(
"
Geant4TestTrackAction
"
,
{
"
Property_int
"
:
10
}
)
]
>>>
SIM
.
action
.
track
=
(
"
Geant4TestTrackAction
"
,
{
"
Property_int
"
:
10
}
)
# tuple of name and parameter dict
>>>
SIM
.
action
.
step
=
[
(
"
Geant4TestStepAction
"
,
{
"
Property_int
"
:
10
}
)
]
>>>
SIM
.
action
.
step
=
{
"
name
"
:
"
Geant4TestStepAction
"
,
"
parameter
"
:
{
"
Property_int
"
:
10
}
}
# dict of name and parameter dict
>>>
SIM
.
action
.
stack
=
[
(
"
Geant4TestStackAction
"
,
{
"
Property_int
"
:
10
}
)
]
>>>
SIM
.
action
.
stack
=
[
{
"
name
"
:
"
Geant4TestStackAction
"
,
"
parameter
"
:
{
"
Property_int
"
:
10
}
}
]
# list of dict of name and parameter dict
On
the
command
line
,
these
can
be
specified
as
JSON
strings
.
"""
"""
...
...
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