Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
athena
Manage
Activity
Members
Labels
Plan
Issues
38
Issue boards
Milestones
Wiki
Code
Merge requests
34
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
detectors
athena
Commits
f645d27b
Commit
f645d27b
authored
3 years ago
by
Chao Peng
Browse files
Options
Downloads
Patches
Plain Diff
Fix Support Frame for Barrel Ecal
parent
38aca1f2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!309
Fix Support Frame for Barrel Ecal
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/BarrelCalorimeterInterlayers_geo.cpp
+18
-21
18 additions, 21 deletions
src/BarrelCalorimeterInterlayers_geo.cpp
with
18 additions
and
21 deletions
src/BarrelCalorimeterInterlayers_geo.cpp
+
18
−
21
View file @
f645d27b
...
@@ -277,25 +277,22 @@ void buildSupport(Detector& desc, Volume &mod_vol, xml_comp_t x_support,
...
@@ -277,25 +277,22 @@ void buildSupport(Detector& desc, Volume &mod_vol, xml_comp_t x_support,
double
beam_width
=
2.
*
trd_x1_support
/
(
n_beams
+
1
);
// quick hack to make some gap between T beams
double
beam_width
=
2.
*
trd_x1_support
/
(
n_beams
+
1
);
// quick hack to make some gap between T beams
double
beam_gap
=
getAttrOrDefault
(
x_support
,
_Unicode
(
beam_gap
),
3.
*
cm
);
double
beam_gap
=
getAttrOrDefault
(
x_support
,
_Unicode
(
beam_gap
),
3.
*
cm
);
// build
H
-shape beam
// build
T
-shape beam
double
beam_space_x
=
beam_width
+
beam_gap
;
double
beam_space_x
=
beam_width
+
beam_gap
;
double
beam_space_z
=
support_thickness
-
beam_thickness
;
double
beam_space_z
=
support_thickness
-
beam_thickness
;
double
cross_thickness
=
support_thickness
-
2.
*
beam_thickness
;
double
cross_thickness
=
support_thickness
-
beam_thickness
;
double
beam_pos_z
=
-
beam_thickness
/
2.
;
double
beam_pos_z
=
beam_thickness
/
2.
;
double
beam_center_z
=
support_thickness
/
2.
+
beam_pos_z
;
double
beam_center_z
=
support_thickness
/
2.
-
beam_pos_z
;
// Box beam_vert_s(beam_thickness / 2., trd_y, cross_thickness / 2.);
Box
beam_vert_s
(
beam_thickness
/
2.
,
trd_y
,
cross_thickness
/
2.
);
Box
beam_vert_s
(
beam_thickness
/
2.
,
trd_y
,
beam_space_z
/
2.
);
Box
beam_hori_s
(
beam_width
/
2.
,
trd_y
,
beam_thickness
/
2.
);
Box
beam_hori_s
(
beam_width
/
2.
,
trd_y
,
beam_thickness
/
2.
);
// UnionSolid T_beam_s(beam_hori_s, beam_vert_s, Position(0., 0., beam_space_z / 2.));
// UnionSolid H_beam_s(T_beam_s, beam_hori_s, Position(0., 0., support_thickness - beam_thickness));
UnionSolid
T_beam_s
(
beam_hori_s
,
beam_vert_s
,
Position
(
0.
,
0.
,
support_thickness
/
2.
));
UnionSolid
T_beam_s
(
beam_hori_s
,
beam_vert_s
,
Position
(
0.
,
0.
,
support_thickness
/
2.
));
Volume
H_beam_vol
(
"H_beam"
,
T_beam_s
,
desc
.
material
(
x_support
.
materialStr
()));
Volume
H_beam_vol
(
"H_beam"
,
T_beam_s
,
desc
.
material
(
x_support
.
materialStr
()));
H_beam_vol
.
setVisAttributes
(
desc
,
x_support
.
visStr
());
H_beam_vol
.
setVisAttributes
(
desc
,
x_support
.
visStr
());
// place H beams first
// place H beams first
double
beam_start_x
=
-
(
n_beams
-
1
)
*
(
beam_width
+
beam_gap
)
/
2.
;
double
beam_start_x
=
-
(
n_beams
-
1
)
*
(
beam_width
+
beam_gap
)
/
2.
;
for
(
int
i
=
0
;
i
<
n_beams
;
++
i
)
{
for
(
int
i
=
0
;
i
<
n_beams
;
++
i
)
{
Position
beam_pos
(
beam_start_x
+
i
*
(
beam_width
+
beam_gap
),
0.
,
-
support_thickness
/
2.
-
beam_pos_z
);
Position
beam_pos
(
beam_start_x
+
i
*
(
beam_width
+
beam_gap
),
0.
,
-
support_thickness
/
2.
+
beam_pos_z
);
env_vol
.
placeVolume
(
H_beam_vol
,
beam_pos
);
env_vol
.
placeVolume
(
H_beam_vol
,
beam_pos
);
}
}
...
@@ -305,10 +302,10 @@ void buildSupport(Detector& desc, Volume &mod_vol, xml_comp_t x_support,
...
@@ -305,10 +302,10 @@ void buildSupport(Detector& desc, Volume &mod_vol, xml_comp_t x_support,
Volume
cross_vol
(
"cross_center_beam"
,
cross_s
,
desc
.
material
(
x_support
.
materialStr
()));
Volume
cross_vol
(
"cross_center_beam"
,
cross_s
,
desc
.
material
(
x_support
.
materialStr
()));
cross_vol
.
setVisAttributes
(
desc
,
x_support
.
visStr
());
cross_vol
.
setVisAttributes
(
desc
,
x_support
.
visStr
());
for
(
int
i
=
0
;
i
<
n_beams
-
1
;
++
i
)
{
for
(
int
i
=
0
;
i
<
n_beams
-
1
;
++
i
)
{
env_vol
.
placeVolume
(
cross_vol
,
Position
(
beam_start_x
+
beam_space_x
*
(
i
+
0.5
),
0.
,
0.
));
env_vol
.
placeVolume
(
cross_vol
,
Position
(
beam_start_x
+
beam_space_x
*
(
i
+
0.5
),
0.
,
beam_pos_z
));
for
(
int
j
=
1
;
j
<
n_cross_supports
;
j
++
)
{
for
(
int
j
=
1
;
j
<
n_cross_supports
;
j
++
)
{
env_vol
.
placeVolume
(
cross_vol
,
Position
(
beam_start_x
+
beam_space_x
*
(
i
+
0.5
),
-
j
*
grid_size
,
0.
));
env_vol
.
placeVolume
(
cross_vol
,
Position
(
beam_start_x
+
beam_space_x
*
(
i
+
0.5
),
-
j
*
grid_size
,
beam_pos_z
));
env_vol
.
placeVolume
(
cross_vol
,
Position
(
beam_start_x
+
beam_space_x
*
(
i
+
0.5
),
j
*
grid_size
,
0.
));
env_vol
.
placeVolume
(
cross_vol
,
Position
(
beam_start_x
+
beam_space_x
*
(
i
+
0.5
),
j
*
grid_size
,
beam_pos_z
));
}
}
}
}
...
@@ -317,20 +314,20 @@ void buildSupport(Detector& desc, Volume &mod_vol, xml_comp_t x_support,
...
@@ -317,20 +314,20 @@ void buildSupport(Detector& desc, Volume &mod_vol, xml_comp_t x_support,
double
cross_edge_x
=
trd_x1_support
+
beam_start_x
-
beam_thickness
/
2.
;
double
cross_edge_x
=
trd_x1_support
+
beam_start_x
-
beam_thickness
/
2.
;
double
cross_trd_x1
=
cross_edge_x
+
std
::
tan
(
hphi
)
*
beam_thickness
;
double
cross_trd_x1
=
cross_edge_x
+
std
::
tan
(
hphi
)
*
beam_thickness
;
double
cross_trd_x2
=
cross_trd_x1
+
2.
*
std
::
tan
(
hphi
)
*
cross_thickness
;
double
cross_trd_x2
=
cross_trd_x1
+
2.
*
std
::
tan
(
hphi
)
*
cross_thickness
;
double
edge_pos_x
=
beam_start_x
-
beam_thickness
/
2.
-
cross_trd_x1
/
2.
;
double
edge_pos_x
=
beam_start_x
-
cross_trd_x1
/
2.
-
beam_thickness
/
2
;
Trapezoid
cross_s2_trd
(
cross_trd_x1
/
2.
,
cross_trd_x2
/
2.
,
Trapezoid
cross_s2_trd
(
cross_trd_x1
/
2.
,
cross_trd_x2
/
2.
,
beam_thickness
/
2.
,
beam_thickness
/
2.
,
cross_thickness
/
2.
);
beam_thickness
/
2.
,
beam_thickness
/
2.
,
cross_thickness
/
2.
);
Box
cross_s2_box
((
cross_trd_x2
-
cross_trd_x1
)
/
2
.
,
beam_thickness
/
2.
,
cross_thickness
/
2.
);
Box
cross_s2_box
((
cross_trd_x2
-
cross_trd_x1
)
/
4
.
,
beam_thickness
/
2.
,
cross_thickness
/
2.
);
SubtractionSolid
cross_s2
(
cross_s2_trd
,
cross_s2_box
,
Position
((
cross_trd_x
1
+
cross_trd_x
2
)
/
4.
,
0.
,
0.
));
SubtractionSolid
cross_s2
(
cross_s2_trd
,
cross_s2_box
,
Position
((
cross_trd_x
2
+
cross_trd_x
1
)
/
4.
,
0.
,
0.
));
Volume
cross_vol2
(
"cross_edge_beam"
,
cross_s2
,
desc
.
material
(
x_support
.
materialStr
()));
Volume
cross_vol2
(
"cross_edge_beam"
,
cross_s2
,
desc
.
material
(
x_support
.
materialStr
()));
cross_vol2
.
setVisAttributes
(
desc
,
x_support
.
visStr
());
cross_vol2
.
setVisAttributes
(
desc
,
x_support
.
visStr
());
env_vol
.
placeVolume
(
cross_vol2
,
Position
(
edge_pos_x
,
0.
,
0.
));
env_vol
.
placeVolume
(
cross_vol2
,
Position
(
edge_pos_x
,
0.
,
beam_pos_z
));
env_vol
.
placeVolume
(
cross_vol2
,
Transform3D
(
Translation3D
(
-
edge_pos_x
,
0.
,
0.
)
*
RotationZ
(
M_PI
)));
env_vol
.
placeVolume
(
cross_vol2
,
Transform3D
(
Translation3D
(
-
edge_pos_x
,
0.
,
beam_pos_z
)
*
RotationZ
(
M_PI
)));
for
(
int
j
=
1
;
j
<
n_cross_supports
;
j
++
)
{
for
(
int
j
=
1
;
j
<
n_cross_supports
;
j
++
)
{
env_vol
.
placeVolume
(
cross_vol2
,
Position
(
edge_pos_x
,
-
j
*
grid_size
,
0.
));
env_vol
.
placeVolume
(
cross_vol2
,
Position
(
edge_pos_x
,
-
j
*
grid_size
,
beam_pos_z
));
env_vol
.
placeVolume
(
cross_vol2
,
Position
(
edge_pos_x
,
j
*
grid_size
,
0.
));
env_vol
.
placeVolume
(
cross_vol2
,
Position
(
edge_pos_x
,
j
*
grid_size
,
beam_pos_z
));
env_vol
.
placeVolume
(
cross_vol2
,
Transform3D
(
Translation3D
(
-
edge_pos_x
,
-
j
*
grid_size
,
0.
)
*
RotationZ
(
M_PI
)));
env_vol
.
placeVolume
(
cross_vol2
,
Transform3D
(
Translation3D
(
-
edge_pos_x
,
-
j
*
grid_size
,
beam_pos_z
)
*
RotationZ
(
M_PI
)));
env_vol
.
placeVolume
(
cross_vol2
,
Transform3D
(
Translation3D
(
-
edge_pos_x
,
j
*
grid_size
,
0.
)
*
RotationZ
(
M_PI
)));
env_vol
.
placeVolume
(
cross_vol2
,
Transform3D
(
Translation3D
(
-
edge_pos_x
,
j
*
grid_size
,
beam_pos_z
)
*
RotationZ
(
M_PI
)));
}
}
mod_vol
.
placeVolume
(
env_vol
,
Position
(
0.0
,
0.0
,
l_pos_z
+
support_thickness
/
2.
));
mod_vol
.
placeVolume
(
env_vol
,
Position
(
0.0
,
0.0
,
l_pos_z
+
support_thickness
/
2.
));
...
...
This diff is collapsed.
Click to expand it.
Chao Peng
@cpeng
mentioned in commit
cbb785c5
·
3 years ago
mentioned in commit
cbb785c5
mentioned in commit cbb785c5cf5db964ed9fee4c9ba50a14ec4e37e7
Toggle commit list
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