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
34ebe828
Commit
34ebe828
authored
7 years ago
by
David Blyth
Committed by
Andre Sailer
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
CylindricalEndcapCalorimeter: Fixed factors of 2 in layer/slice thickness
parent
63cabf80
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
DDDetectors/src/CylindricalEndcapCalorimeter_geo.cpp
+2
-2
2 additions, 2 deletions
DDDetectors/src/CylindricalEndcapCalorimeter_geo.cpp
with
2 additions
and
2 deletions
DDDetectors/src/CylindricalEndcapCalorimeter_geo.cpp
+
2
−
2
View file @
34ebe828
...
...
@@ -47,14 +47,14 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s
for
(
int
i
=
0
,
im
=
0
,
repeat
=
x_layer
.
repeat
();
i
<
repeat
;
++
i
)
{
double
zlayer
=
z
;
string
layer_name
=
det_name
+
_toString
(
layer_num
,
"_layer%d"
);
Volume
layer_vol
(
layer_name
,
Tube
(
rmin
,
rmax
,
layerWidth
),
air
);
Volume
layer_vol
(
layer_name
,
Tube
(
rmin
,
rmax
,
layerWidth
*
0.5
),
air
);
for
(
xml_coll_t
l
(
x_layer
,
_U
(
slice
));
l
;
++
l
,
++
im
)
{
xml_comp_t
x_slice
=
l
;
double
w
=
x_slice
.
thickness
();
string
slice_name
=
layer_name
+
_toString
(
m
+
1
,
"slice%d"
);
Material
slice_mat
=
description
.
material
(
x_slice
.
materialStr
());
Volume
slice_vol
(
slice_name
,
Tube
(
rmin
,
rmax
,
w
),
slice_mat
);
Volume
slice_vol
(
slice_name
,
Tube
(
rmin
,
rmax
,
w
*
0.5
),
slice_mat
);
if
(
x_slice
.
isSensitive
()
)
{
sens
.
setType
(
"calorimeter"
);
...
...
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