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
9262f9f9
Commit
9262f9f9
authored
9 years ago
by
Nikiforos Nikiforou
Browse files
Options
Downloads
Patches
Plain Diff
Minor correction in createGearForCLIC
parent
87494a4c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDRec/src/gear/createGearForCLIC.cpp
+8
-1
8 additions, 1 deletion
DDRec/src/gear/createGearForCLIC.cpp
with
8 additions
and
1 deletion
DDRec/src/gear/createGearForCLIC.cpp
+
8
−
1
View file @
9262f9f9
...
...
@@ -354,9 +354,16 @@ namespace DD4hep{
//The positioning should come out right, but the absorber thickness should be overestimated due to the presence of
//other less dense material
if
(
i
==
0
)
{
//First layer is positioned with only its inner thickness taken into account
gearCalo
->
layerLayout
().
positionLayer
(
l
.
distance
/
dd4hep
::
mm
,
(
l
.
inner_thickness
+
l
.
sensitive_thickness
/
2.
)
/
dd4hep
::
mm
,
l
.
cellSize0
/
dd4hep
::
mm
,
l
.
cellSize1
/
dd4hep
::
mm
,
(
l
.
inner_thickness
-
l
.
sensitive_thickness
/
2.
)
/
dd4hep
::
mm
)
;
}
else
{
}
else
if
(
i
==
nL
-
1
)
{
//Need to handle outermost layer differently; add its outer thickness
//This gives the right extent, but the "wrong" distance for the last layer
gearCalo
->
layerLayout
().
addLayer
((
l
.
inner_thickness
+
l
.
outer_thickness
+
calo
->
layers
[
i
-
1
].
outer_thickness
-
calo
->
layers
[
i
-
1
].
sensitive_thickness
/
2.
)
/
dd4hep
::
mm
,
l
.
cellSize0
/
dd4hep
::
mm
,
l
.
cellSize1
/
dd4hep
::
mm
,
(
l
.
inner_thickness
+
l
.
outer_thickness
-
l
.
sensitive_thickness
+
calo
->
layers
[
i
-
1
].
outer_thickness
-
calo
->
layers
[
i
-
1
].
sensitive_thickness
/
2.
)
/
dd4hep
::
mm
)
;
}
else
{
//All other layers need to be added taking into account the previous layer outer thicknesses
gearCalo
->
layerLayout
().
addLayer
((
l
.
inner_thickness
+
l
.
sensitive_thickness
/
2.
+
calo
->
layers
[
i
-
1
].
outer_thickness
-
calo
->
layers
[
i
-
1
].
sensitive_thickness
/
2.
)
/
dd4hep
::
mm
,
l
.
cellSize0
/
dd4hep
::
mm
,
l
.
cellSize1
/
dd4hep
::
mm
,
(
l
.
inner_thickness
-
l
.
sensitive_thickness
/
2.
+
calo
->
layers
[
i
-
1
].
outer_thickness
-
calo
->
layers
[
i
-
1
].
sensitive_thickness
/
2.
)
/
dd4hep
::
mm
)
;
}
...
...
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