17 if ((momentum.
x()*diff.
x() + momentum.
y()*diff.
y()) < 0 )
19 return unsignedDistance;
31 + vtx2PositionError.
matrix();
40 double err2 = error.similarity(vDiff);
42 if( dist != 0) err =
sqrt(err2)/dist;
58 error[0][0] = err1[0][0] + err2[0][0];
59 error[0][1] = err1[0][1] + err2[0][1];
60 error[1][1] = err1[1][1] + err2[1][1];
61 if (error == theNullMatrix)
return FLT_MAX;
73 throw cms::Exception(
"VertexDistanceXY::matrix inversion problem");
76 return error.similarity(vDiff);
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
const Point & position() const
position
AlgebraicSymMatrix matrix() const
virtual Measurement1D signedDistance(const reco::Vertex &primVtx, const reco::Vertex &secVtx, const GlobalVector &momentum) const
virtual Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const
CLHEP::HepVector AlgebraicVector
CLHEP::HepSymMatrix AlgebraicSymMatrix
virtual float compatibility(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const
Power< A, B >::type pow(const A &a, const B &b)