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
372f09bd
Commit
372f09bd
authored
10 months ago
by
Alvaro Tolosa Delgado
Committed by
Andre Sailer
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
fix missing unit conversion factors
parent
5344e6fe
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
DDRec/include/DDRec/DCH_info.h
+3
-3
3 additions, 3 deletions
DDRec/include/DDRec/DCH_info.h
with
3 additions
and
3 deletions
DDRec/include/DDRec/DCH_info.h
+
3
−
3
View file @
372f09bd
...
...
@@ -122,18 +122,18 @@ public:
/// tan(stereoangle) = R(z=0) / (L/2) * tan( twist_angle/2)
DCH_angle_t
stereoangle_z0
(
DCH_length_t
r_z0
)
const
{
return
atan
(
r_z0
/
Lhalf
*
tan
(
twist_angle
/
2
));
return
atan
(
r_z0
/
Lhalf
*
tan
(
twist_angle
/
2
/
dd4hep
::
rad
));
}
/// tan(stereoangle) = R(z=L/2) / (L/2) * sin( twist_angle/2)
DCH_angle_t
stereoangle_zLhalf
(
DCH_length_t
r_zLhalf
)
const
{
return
atan
(
r_zLhalf
/
Lhalf
*
sin
(
twist_angle
/
2
));
return
atan
(
r_zLhalf
/
Lhalf
*
sin
(
twist_angle
/
2
/
dd4hep
::
rad
));
}
/// WireLength = 2*dch_Lhalf/cos(atan(Pitch_z0(r_z0)/(2*dch_Lhalf)))/cos(stereoangle_z0(r_z0))
DCH_length_t
WireLength
(
int
nlayer
,
DCH_length_t
r_z0
)
const
{
auto
Pitch_z0
=
database
.
at
(
nlayer
).
Pitch_z0
(
r_z0
);
return
2
*
Lhalf
/
cos
(
atan
(
Pitch_z0
/
(
2
*
Lhalf
)))
/
cos
(
stereoangle_z0
(
r_z0
))
;
return
2
*
Lhalf
/
cos
(
atan
(
Pitch_z0
/
(
2
*
Lhalf
)))
/
cos
(
stereoangle_z0
(
r_z0
)
/
dd4hep
::
rad
)
;
};
/// Internal helper struct for defining the layer layout
...
...
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