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
8a37cde8
Commit
8a37cde8
authored
3 years ago
by
Andre Sailer
Browse files
Options
Downloads
Patches
Plain Diff
DDSim.Action: extend docstrings
parent
0be5ed5f
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
+16
-4
16 additions, 4 deletions
DDG4/python/DDSim/Helper/Action.py
with
16 additions
and
4 deletions
DDG4/python/DDSim/Helper/Action.py
+
16
−
4
View file @
8a37cde8
...
...
@@ -8,14 +8,22 @@ import ddsix as six
class
Action
(
ConfigHelper
):
"""
Action holding sensitive detector actions
"""
Helper holding sensitive detector actions.
The default tracker and calorimeter actions can be set with
>>>
SIM
=
DD4hepSimulation
()
>>>
SIM
.
action
.
tracker
=
(
'
Geant4TrackerWeightedAction
'
,
{
'
HitPositionCombination
'
:
2
,
'
CollectSingleDeposits
'
:
False
})
>>>
SIM
.
action
.
calo
=
"
Geant4CalorimeterAction
"
for specific subdetectors specific sensitive detectors can be set based on pattern matching
The default sensitive actions for calorimeters and trackers are applied based on the sensitive type.
The list of sensitive types can be changed with
>>>
SIM
=
DD4hepSimulation
()
>>>
SIM
.
action
.
trackerSDTypes
=
[
'
tracker
'
,
'
myTrackerSensType
'
]
>>>
SIM
.
calor
.
calorimeterSDTypes
=
[
'
calorimeter
'
,
'
myCaloSensType
'
]
For specific subdetectors specific sensitive detectors can be set based on patterns in the name of the subdetector.
>>>
SIM
=
DD4hepSimulation
()
>>>
SIM
.
action
.
mapActions
[
'
tpc
'
]
=
"
TPCSDAction
"
...
...
@@ -55,8 +63,12 @@ class Action(ConfigHelper):
@property
def
mapActions
(
self
):
"""
create a map of patterns and actions to be applied to sensitive detectors
example: SIM.action.mapActions[
'
tpc
'
] =
"
TPCSDAction
"
"""
"""
Create a map of patterns and actions to be applied to sensitive detectors.
Example: if the name of the detector matches tpc the TPCSDAction is used.
SIM.action.mapActions[
'
tpc
'
] =
"
TPCSDAction
"
"""
return
self
.
_mapActions
@mapActions.setter
...
...
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