64 double max_ell = bchk.lCovariance(0, 0) > bchk.lCovariance(1, 1)
65 ? bchk.lCovariance(0, 0)
66 : bchk.lCovariance(1, 1);
67 double limit = bchk.
nSigmas * sqrt(max_ell);
71 double min_ell = bchk.lCovariance(0, 0) < bchk.lCovariance(1, 1)
72 ? bchk.lCovariance(0, 0)
73 : bchk.lCovariance(1, 1);
74 limit = bchk.
nSigmas * sqrt(min_ell);
79 std::vector<KDOP> elementKDOP(4);
80 std::vector<Amg::Vector2D> elementP(4);
82 (bchk.lCovariance(1, 0) != 0 &&
83 (bchk.lCovariance(1, 1) - bchk.lCovariance(0, 0)) != 0)
84 ? .5 * bchk.
FastArcTan(2 * bchk.lCovariance(1, 0) /
85 (bchk.lCovariance(1, 1) - bchk.lCovariance(0, 0)))
95 elementP[0] = (rotMatrix * (p - locpo));
98 elementP[1] = (rotMatrix * (p - locpo));
101 elementP[2] = (rotMatrix * (p - locpo));
104 elementP[3] = (rotMatrix * (p - locpo));
105 std::vector<Amg::Vector2D> axis = { elementP[0] - elementP[1],
106 elementP[0] - elementP[2],
107 elementP[0] - elementP[3],
108 elementP[1] - elementP[2] };
111 std::vector<KDOP> errelipseKDOP(4);
void ComputeKDOP(const std::vector< Amg::Vector2D > &v, const std::vector< Amg::Vector2D > &KDOPAxes, std::vector< KDOP > &kdop) const
Each Bounds has a method inside, which checks if a LocalPosition is inside the bounds.
virtual bool inside(const Amg::Vector2D &locpo, double tol1=0., double tol2=0.) const override final
This method checks if the provided local coordinates are inside the surface bounds.