14 if ((momentum.
x() * diff.
x() + momentum.
y() * diff.
y()) < 0)
16 return unsignedDistance;
32 double err2 = ROOT::Math::Similarity(error, vDiff);
35 err =
sqrt(err2) / dist;
48 error[0][0] = err1[0][0] + err2[0][0];
49 error[0][1] = err1[0][1] + err2[0][1];
50 error[1][1] = err1[1][1] + err2[1][1];
51 if (error == theNullMatrix)
61 bool ifail = !error.Invert();
63 throw cms::Exception(
"VertexDistanceXY::matrix inversion problem");
66 return ROOT::Math::Similarity(error, vDiff);
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
const AlgebraicSymMatrix33 matrix() const
const Point & position() const
position
ROOT::Math::SVector< double, 2 > AlgebraicVector2
ROOT::Math::SMatrix< double, 2, 2, ROOT::Math::MatRepSym< double, 2 > > AlgebraicSymMatrix22
Measurement1D signedDistance(const reco::Vertex &primVtx, const reco::Vertex &secVtx, const GlobalVector &momentum) const override
ROOT::Math::SVector< double, 3 > AlgebraicVector3
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33
Power< A, B >::type pow(const A &a, const B &b)
float compatibility(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override