36 #include "StThreeVectorD.hh"
37 #include "StThreeVectorF.hh"
38 #include "tofPathLength.hh"
45 x = (double)beginPoint->x();
46 y = (double)beginPoint->y();
47 z = (double)beginPoint->z();
49 x = (double)endPoint->x();
50 y = (double)endPoint->y();
51 z = (double)endPoint->z();
53 return tofPathLength(&bp,&ep,curvature);
59 x = (double)beginPoint->x();
60 y = (double)beginPoint->y();
61 z = (double)beginPoint->z();
63 x = (double)endPoint->x();
64 y = (double)endPoint->y();
65 z = (double)endPoint->z();
67 return tofPathLength(&bp,&ep,curvature);
73 x = (double)beginPoint->x();
74 y = (double)beginPoint->y();
75 z = (double)beginPoint->z();
77 x = (double)endPoint->x();
78 y = (double)endPoint->y();
79 z = (double)endPoint->z();
81 return tofPathLength(&bp,&ep,curvature);
86 x = (double)beginPoint->x();
87 y = (double)beginPoint->y();
88 z = (double)beginPoint->z();
90 x = (double)endPoint->x();
91 y = (double)endPoint->y();
92 z = (double)endPoint->z();
94 return tofPathLength(&bp,&ep,curvature);
100 double xdif = endPoint->x() - beginPoint->x();
101 double ydif = endPoint->y() - beginPoint->y();
103 double C = ::sqrt(xdif*xdif + ydif*ydif);
106 double R = 1/curvature;
107 s_perp = 2*R * asin(C/(2*R));
110 double s_z = fabs(endPoint->z() - beginPoint->z());
111 double value = ::sqrt(s_perp*s_perp + s_z*s_z);