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
88199c84
Commit
88199c84
authored
8 months ago
by
Markus Frank
Committed by
MarkusFrankATcernch
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix BoxOfStraws: Now layers with correct orientation. Thanks Andre!
parent
4cfa22f8
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
examples/ClientTests/scripts/BoxOfStraws.py
+5
-5
5 additions, 5 deletions
examples/ClientTests/scripts/BoxOfStraws.py
with
5 additions
and
5 deletions
examples/ClientTests/scripts/BoxOfStraws.py
+
5
−
5
View file @
88199c84
...
...
@@ -89,12 +89,12 @@ def run():
# Map sensitive detectors of type 'BoxOfStraws' to Geant4CalorimeterAction
sd
=
geant4
.
description
.
sensitiveDetector
(
str
(
'
BoxOfStrawsDet
'
))
logger
.
info
(
f
'
+++ BoxOfStraws: SD type:
{
str
(
sd
.
type
())
}
'
)
filter
=
DDG4
.
Filter
(
kernel
,
'
EnergyDepositMinimumCut
'
)
filter
.
Cut
=
1.0
*
MeV
filter
.
enableUI
()
kernel
.
registerGlobalFilter
(
filter
)
energy_
filter
=
DDG4
.
Filter
(
kernel
,
'
EnergyDepositMinimumCut
'
)
energy_
filter
.
Cut
=
1.0
*
MeV
energy_
filter
.
enableUI
()
kernel
.
registerGlobalFilter
(
energy_
filter
)
seq
,
act
=
geant4
.
setupDetector
(
name
=
'
BoxOfStrawsDet
'
,
action
=
'
MyTrackerSDAction
'
)
seq
.
adopt
(
filter
)
seq
.
adopt
(
energy_
filter
)
act
.
HaveCellID
=
False
#
# Now build the physics list:
...
...
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