#include <VertexDistanceXY.h>
Public Member Functions | |
virtual VertexDistanceXY * | clone () const |
virtual Measurement1D | signedDistance (const reco::Vertex &primVtx, const reco::Vertex &secVtx, const GlobalVector &momentum) const |
VertexDistanceXY () | |
Public Member Functions inherited from VertexDistance | |
virtual float | compatibility (const reco::Vertex &, const reco::Vertex &) const |
virtual float | compatibility (const VertexState &, const VertexState &) const |
virtual float | compatibility (const reco::Vertex &, const VertexState &) const |
virtual float | compatibility (const VertexState &, const reco::Vertex &) const |
Measurement1D | distance (const reco::Vertex &, const reco::Vertex &) const |
Measurement1D | distance (const VertexState &, const VertexState &) const |
Measurement1D | distance (const reco::Vertex &, const VertexState &) const |
Measurement1D | distance (const VertexState &, const reco::Vertex &) const |
virtual | ~VertexDistance () |
Private Member Functions | |
virtual float | compatibility (const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const |
virtual Measurement1D | distance (const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const |
Private Attributes | |
AlgebraicSymMatrix22 | theNullMatrix |
Additional Inherited Members |
Computes the distance between two vertices as the chi-squared formed with their positions in the transverse plane.
Definition at line 11 of file VertexDistanceXY.h.
|
inline |
|
inlinevirtual |
Implements VertexDistance.
Definition at line 29 of file VertexDistanceXY.h.
References VertexDistanceXY().
|
privatevirtual |
Implements VertexDistance.
Definition at line 49 of file VertexDistanceXY.cc.
References diffTreeTool::diff, relativeConstraints::error, Exception, GlobalErrorBase< T, ErrorWeightType >::matrix(), PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
|
privatevirtual |
Implements VertexDistance.
Definition at line 25 of file VertexDistanceXY.cc.
References diffTreeTool::diff, relativeConstraints::error, GlobalErrorBase< T, ErrorWeightType >::matrix(), funct::pow(), mathSSE::sqrt(), PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by Onia2MuMuPAT::produce().
|
virtual |
The signed distance is computed using a vector from the primary to the secondary vertex and a given reference vector. The sign is determined by the scalar product of the x,y component of the vector connecting the vertices and the reference vector: if the scalar product is greater than zero, the sign is +1, else -1
Implements VertexDistance.
Definition at line 11 of file VertexDistanceXY.cc.
References diffTreeTool::diff, HLT_FULL_cff::distance, Measurement1D::error(), reco::Vertex::position(), Measurement1D::value(), PV3DBase< T, PVType, FrameType >::x(), Basic3DVector< T >::x(), PV3DBase< T, PVType, FrameType >::y(), and Basic3DVector< T >::y().
|
private |
Definition at line 40 of file VertexDistanceXY.h.