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
58c29a77
Commit
58c29a77
authored
3 years ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
Frame as box with frame_thickness
parent
7404f5e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!188
Resolve "MRICH: Add carbon fiber frame for individual module"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/MRich_geo.cpp
+8
-1
8 additions, 1 deletion
src/MRich_geo.cpp
with
8 additions
and
1 deletion
src/MRich_geo.cpp
+
8
−
1
View file @
58c29a77
...
@@ -84,7 +84,14 @@ static Ref_t createDetector(Detector& description, xml::Handle_t e, SensitiveDet
...
@@ -84,7 +84,14 @@ static Ref_t createDetector(Detector& description, xml::Handle_t e, SensitiveDet
DetElement
mod_de
(
mod_name
+
std
::
string
(
"_mod_"
)
+
std
::
to_string
(
1
),
1
);
DetElement
mod_de
(
mod_name
+
std
::
string
(
"_mod_"
)
+
std
::
to_string
(
1
),
1
);
// todo module frame
// todo module frame
double
frame_thickness
=
getAttrOrDefault
(
x_frame
,
_U
(
thickness
),
2.0
*
mm
);
double
frame_thickness
=
getAttrOrDefault
(
x_frame
,
_U
(
thickness
),
2.0
*
mm
);
Box
frame_inside
(
mod_width
/
2.0
-
frame_thickness
,
mod_height
/
2.0
-
frame_thickness
,
mod_length
/
2.0
-
frame_thickness
);
SubtractionSolid
frame_solid
(
m_solid
,
frame_inside
);
Material
frame_mat
=
description
.
material
(
x_frame
.
materialStr
());
Volume
frame_vol
(
mod_name
+
"_frame"
,
frame_solid
,
frame_mat
);
auto
frame_vis
=
getAttrOrDefault
<
std
::
string
>
(
x_frame
,
_U
(
vis
),
std
::
string
(
"GrayVis"
));
frame_vol
.
setVisAttributes
(
description
.
visAttributes
(
frame_vis
));
m_volume
.
placeVolume
(
frame_vol
);
// aerogel box
// aerogel box
xml_comp_t
x_aerogel_frame
=
x_aerogel
.
child
(
_Unicode
(
frame
));
xml_comp_t
x_aerogel_frame
=
x_aerogel
.
child
(
_Unicode
(
frame
));
...
...
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