Go to the documentation of this file.
14 if ((momentum.
x() *
diff.x() + momentum.
y() *
diff.y()) < 0)
16 return unsignedDistance;
32 double err2 = ROOT::Math::Similarity(
error, vDiff);
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);
ROOT::Math::SVector< double, 3 > AlgebraicVector3
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33
Measurement1D signedDistance(const reco::Vertex &primVtx, const reco::Vertex &secVtx, const GlobalVector &momentum) const override
float compatibility(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
const Point & position() const
position
const AlgebraicSymMatrix33 matrix() const
ROOT::Math::SVector< double, 2 > AlgebraicVector2
Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
Power< A, B >::type pow(const A &a, const B &b)
ROOT::Math::SMatrix< double, 2, 2, ROOT::Math::MatRepSym< double, 2 > > AlgebraicSymMatrix22