12 #include "GaudiKernel/MsgStream.h"
40 if (minhalex > maxhalex)
73 double max_ell = bchk.lCovariance(0, 0) > bchk.lCovariance(1, 1)
74 ? bchk.lCovariance(0, 0)
75 : bchk.lCovariance(1, 1);
84 double fabsX = std::abs(locpo[
Trk::locY]);
88 double min_ell = bchk.lCovariance(0, 0) < bchk.lCovariance(1, 1)
89 ? bchk.lCovariance(0, 0)
90 : bchk.lCovariance(1, 1);
104 std::vector<KDOP> elementKDOP(5);
105 std::vector<Amg::Vector2D> elementP(6);
107 (bchk.lCovariance(1, 0) != 0 &&
108 (bchk.lCovariance(1, 1) - bchk.lCovariance(0, 0)) != 0)
109 ? .5 * bchk.
FastArcTan(2 * bchk.lCovariance(1, 0) /
110 (bchk.lCovariance(1, 1) - bchk.lCovariance(0, 0)))
117 normal << 0, -1, 1, 0;
126 elementP[0] = (rotMatrix * (
p - locpoF));
128 elementP[1] = (rotMatrix * (
p - locpoF));
131 elementP[2] = (rotMatrix * (
p - locpoF));
134 elementP[3] = (rotMatrix * (
p - locpoF));
136 elementP[4] = (rotMatrix * (
p - locpoF));
139 elementP[5] = (rotMatrix * (
p - locpoF));
140 std::vector<Amg::Vector2D>
axis = { normal * (elementP[1] - elementP[0]),
141 normal * (elementP[2] - elementP[1]),
142 normal * (elementP[3] - elementP[2]),
143 normal * (elementP[4] - elementP[3]),
144 normal * (elementP[5] - elementP[4]) };
147 std::vector<KDOP> errelipseKDOP(5);
157 return this->insideFull(locpo, tol1, tol2);
171 double absY = std::abs(locpo[
Trk::locY]);
183 double k = halfH ? 0.5*(halfBaseUp - halfBaseLo)/halfH : 0.;
184 double sign = (
k < 0) ? -1. : 1.;
213 double Y[6] = { -
y1, 0.,
y2,
y2, 0., -
y1 };
219 for (
int i = 0;
i != Np; ++
i) {
221 int j = (
i == Np-1 ? 0 :
i+1);
226 double dx =
X[j] -
X[
i];
227 double dy =
Y[j] -
Y[
i];
232 double d =
x *
x +
y *
y;
238 double d = (
A *
A) /
a;
243 if (
i && in && Ao *
A < 0.)
257 sl << std::setiosflags(std::ios::fixed);
258 sl << std::setprecision(7);
259 sl <<
"Trk::RotatedDiamondBounds: (minHlenghtX, medHlengthX, maxHlengthX, hlengthY1, hlengthY2 ) = ";
264 sl << std::setprecision(-1);
271 sl << std::setiosflags(std::ios::fixed);
272 sl << std::setprecision(7);
273 sl <<
"Trk::RotatedDiamondBounds: (minHlenghtX, medHlengthX, maxHlengthX, hlengthY1, hlengthY2 ) = ";
278 sl << std::setprecision(-1);