1 #ifndef DISTANCEOFVERTICES_H
2 #define DISTANCEOFVERTICES_H
7 #include "CLHEP/Vector/ThreeVector.h"
40 double covDeltaXX = covDelta.
cxx() ;
41 double covDeltaYY = covDelta.
cyy() ;
42 double covDeltaXY = covDelta.
cyx() ;
44 return ( deltaX*deltaX * covDeltaXX +
45 deltaY*deltaY * covDeltaYY +
46 2*deltaX*deltaY * covDeltaXY ) ;
59 double covDeltaZZ = covDelta.
czz() ;
60 double covDeltaXZ = covDelta.
czx() ;
61 double covDeltaYZ = covDelta.
czy() ;
65 deltaZ*deltaZ * covDeltaZZ +
66 2*deltaX*deltaZ * covDeltaXZ +
67 2*deltaY*deltaZ * covDeltaYZ ) ;
GlobalError positionError() const
double terms2D(const TransientVertex &v1, const TransientVertex &v2)
CLHEP::Hep3Vector deltaV2V1(const TransientVertex &v1, const TransientVertex &v2)
virtual Measurement1D distance(const TransientVertex &, const TransientVertex &)=0
GlobalPoint position() const
double terms3D(const TransientVertex &v1, const TransientVertex &v2)
virtual Measurement1D signedDistance(const TransientVertex &, const TransientVertex &, const CLHEP::Hep3Vector &)=0
virtual ~DistanceOfVertices()