14 #include "StThreeVectorD.hh"
15 #include "StThreeVectorF.hh"
16 #include "tofPathLength.hh"
23 x = (double)beginPoint->x();
24 y = (double)beginPoint->y();
25 z = (double)beginPoint->z();
27 x = (double)endPoint->x();
28 y = (double)endPoint->y();
29 z = (double)endPoint->z();
31 return tofPathLength(&bp,&ep,curvature);
37 x = (double)beginPoint->x();
38 y = (double)beginPoint->y();
39 z = (double)beginPoint->z();
41 x = (double)endPoint->x();
42 y = (double)endPoint->y();
43 z = (double)endPoint->z();
45 return tofPathLength(&bp,&ep,curvature);
51 x = (double)beginPoint->x();
52 y = (double)beginPoint->y();
53 z = (double)beginPoint->z();
55 x = (double)endPoint->x();
56 y = (double)endPoint->y();
57 z = (double)endPoint->z();
59 return tofPathLength(&bp,&ep,curvature);
64 x = (double)beginPoint->x();
65 y = (double)beginPoint->y();
66 z = (double)beginPoint->z();
68 x = (double)endPoint->x();
69 y = (double)endPoint->y();
70 z = (double)endPoint->z();
72 return tofPathLength(&bp,&ep,curvature);
78 double xdif = endPoint->x() - beginPoint->x();
79 double ydif = endPoint->y() - beginPoint->y();
81 double C = ::sqrt(xdif*xdif + ydif*ydif);
84 double R = 1/curvature;
85 s_perp = 2*R * asin(C/(2*R));
88 double s_z = fabs(endPoint->z() - beginPoint->z());
89 double value = ::sqrt(s_perp*s_perp + s_z*s_z);