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
a8796aa1
Commit
a8796aa1
authored
9 years ago
by
Nikiforos Nikiforou
Browse files
Options
Downloads
Patches
Plain Diff
Modified createGearForCLIC to accommoddate new DDRec structures
parent
6d43e73c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
DDRec/src/gear/createGearForCLIC.cpp
+11
-7
11 additions, 7 deletions
DDRec/src/gear/createGearForCLIC.cpp
doc/release.notes
+1
-1
1 addition, 1 deletion
doc/release.notes
with
12 additions
and
8 deletions
DDRec/src/gear/createGearForCLIC.cpp
+
11
−
7
View file @
a8796aa1
...
@@ -340,21 +340,25 @@ namespace DD4hep{
...
@@ -340,21 +340,25 @@ namespace DD4hep{
gear
::
CalorimeterParametersImpl
*
gearCalo
=
gear
::
CalorimeterParametersImpl
*
gearCalo
=
(
calo
->
layoutType
==
LayeredCalorimeterData
::
BarrelLayout
?
(
calo
->
layoutType
==
LayeredCalorimeterData
::
BarrelLayout
?
new
gear
::
CalorimeterParametersImpl
(
calo
->
extent
[
0
]
/
dd4hep
::
mm
,
calo
->
extent
[
3
]
/
dd4hep
::
mm
,
calo
->
inner_symmetry
,
calo
->
phi0
)
:
new
gear
::
CalorimeterParametersImpl
(
calo
->
extent
[
0
]
/
dd4hep
::
mm
,
calo
->
extent
[
3
]
/
dd4hep
::
mm
,
calo
->
inner_symmetry
,
calo
->
inner_
phi0
)
:
//CalorimeterParametersImpl (double rMin, double zMax, int symOrder=8, double phi0=0.0) - C'tor for a cylindrical (octagonal) BARREL calorimeter.
//CalorimeterParametersImpl (double rMin, double zMax, int symOrder=8, double phi0=0.0) - C'tor for a cylindrical (octagonal) BARREL calorimeter.
new
gear
::
CalorimeterParametersImpl
(
calo
->
extent
[
0
]
/
dd4hep
::
mm
,
calo
->
extent
[
1
]
/
dd4hep
::
mm
,
calo
->
extent
[
2
]
/
dd4hep
::
mm
,
calo
->
outer_symmetry
,
calo
->
phi0
)
)
;
new
gear
::
CalorimeterParametersImpl
(
calo
->
extent
[
0
]
/
dd4hep
::
mm
,
calo
->
extent
[
1
]
/
dd4hep
::
mm
,
calo
->
extent
[
2
]
/
dd4hep
::
mm
,
calo
->
outer_symmetry
,
calo
->
outer_
phi0
)
)
;
//CalorimeterParametersImpl (double rMin, double rMax, double zMin, int symOrder=2, double phi0=0.0) - C'tor for a cylindrical (octagonal) ENDCAP calorimeter.
//CalorimeterParametersImpl (double rMin, double rMax, double zMin, int symOrder=2, double phi0=0.0) - C'tor for a cylindrical (octagonal) ENDCAP calorimeter.
for
(
unsigned
i
=
0
,
nL
=
calo
->
layers
.
size
()
;
i
<
nL
;
++
i
){
for
(
unsigned
i
=
0
,
nL
=
calo
->
layers
.
size
()
;
i
<
nL
;
++
i
){
LayeredCalorimeterData
::
Layer
&
l
=
calo
->
layers
[
i
]
;
LayeredCalorimeterData
::
Layer
&
l
=
calo
->
layers
[
i
]
;
//Do some arithmetic to get thicknesses and (approximate) absorber thickneses from "new" DDRec structures
//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
)
{
if
(
i
==
0
)
{
gearCalo
->
layerLayout
().
positionLayer
(
l
.
distance
/
dd4hep
::
mm
,
l
.
thickness
/
dd4hep
::
mm
,
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
.
absorberT
hickness
/
dd4hep
::
mm
)
;
l
.
cellSize0
/
dd4hep
::
mm
,
l
.
cellSize1
/
dd4hep
::
mm
,
(
l
.
inner_thickness
-
l
.
sensitive_t
hickness
/
2.
)
/
dd4hep
::
mm
)
;
}
else
{
}
else
{
gearCalo
->
layerLayout
().
addLayer
(
l
.
thickness
/
dd4hep
::
mm
,
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
.
absorberT
hickness
/
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_t
hickness
/
2.
)
/
dd4hep
::
mm
)
;
}
}
}
}
...
@@ -362,7 +366,7 @@ namespace DD4hep{
...
@@ -362,7 +366,7 @@ namespace DD4hep{
if
(
it
->
first
==
"HCalBarrel"
){
if
(
it
->
first
==
"HCalBarrel"
){
// additional parameters needed by MarlinPandora
// additional parameters needed by MarlinPandora
gearCalo
->
setIntVal
(
"Hcal_outer_polygon_order"
,
calo
->
outer_symmetry
)
;
gearCalo
->
setIntVal
(
"Hcal_outer_polygon_order"
,
calo
->
outer_symmetry
)
;
gearCalo
->
setDoubleVal
(
"Hcal_outer_polygon_phi0"
,
calo
->
phi0
)
;
gearCalo
->
setDoubleVal
(
"Hcal_outer_polygon_phi0"
,
calo
->
outer_
phi0
)
;
}
}
...
...
This diff is collapsed.
Click to expand it.
doc/release.notes
+
1
−
1
View file @
a8796aa1
...
@@ -17,7 +17,7 @@ DD4hep ---- Release Notes
...
@@ -17,7 +17,7 @@ DD4hep ---- Release Notes
- The variables "absorberThickness" and "thickness" are now DEPRECATED
- The variables "absorberThickness" and "thickness" are now DEPRECATED
- The variable "distance" is understood to contain the distance from the IP or
- The variable "distance" is understood to contain the distance from the IP or
the Z axis to the innermost face of the layer.
the Z axis to the innermost face of the layer.
- DDRec/createGearForCLIC.cpp: Made compatible with new DDRec structure
2015-08-12 N.Nikiforou
2015-08-12 N.Nikiforou
-----------------------
-----------------------
...
...
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