12 #include <tracking/trackFindingCDC/hough/boxes/Box.h>
13 #include <tracking/trackFindingCDC/topology/ILayer.h>
23 namespace TrackFindingCDC {
55 const std::array<DiscretePhi0, 2>& phi0Vec = houghBox.getBounds<
DiscretePhi0>();
57 std::array<float, 2> xRot;
58 xRot[0] = x * phi0Vec[0]->x() + y * phi0Vec[0]->y();
59 xRot[1] = x * phi0Vec[1]->x() + y * phi0Vec[1]->y();
62 if (onlyPositiveArm) {
64 if (xRot[0] < 0 and xRot[1] < 0)
return ESign::c_Invalid;
67 std::array<float, 2> yRotPlusL;
68 yRotPlusL[0] = -x * phi0Vec[0]->y() + y * phi0Vec[0]->x() - l;
69 yRotPlusL[1] = -x * phi0Vec[1]->y() + y * phi0Vec[1]->x() - l;
71 std::array<float, 2> dist;
72 dist[0] = - yRotPlusL[0];
73 dist[1] = - yRotPlusL[1];