Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
atolosadelgado authored and BrieucF committed Dec 19, 2024
1 parent f95da24 commit 16d32b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions detector/tracker/DriftChamber_o1_v02.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ inline double Circumradius(double Apothem, double dphi){return Apothem/cos(0.5*d

/// Solid equivalent to a twisted tube, resulting from the intersection of an hyperboloid and a generic trapezoid
/// the hyperboloid provides the hyperboloidal surfaces, the trapezoid provides the other two types of surfaces
/// the generic trapezoid is built in such a manner that circumscribe the twisted tube
dd4hep::Solid CompositeTT(double twist_angle, double cell_rin_z0, double cell_rout_z0, double dz, double dphi, const dd4hep::rec::DCH_info & DCH_i)
{

Expand Down Expand Up @@ -552,6 +553,9 @@ dd4hep::Solid CompositeTT(double twist_angle, double cell_rin_z0, double cell_
face fZneg;
face fZpos;

// The generic trapezoid is built in such a manner as to circumscribe the twisted tube
// The following points correspond to the corners of the twisted tube

fZpos.A = { trap_rin*cos( poly_angle + twist_angle_half ), trap_rin*sin( poly_angle + twist_angle_half ) };
fZpos.B = { trap_rin*cos( -poly_angle + twist_angle_half ), trap_rin*sin( -poly_angle + twist_angle_half ) };

Expand Down

0 comments on commit 16d32b7

Please sign in to comment.