32 double D2 = dist[0]*dist[0] + dist[1]*dist[1];
33 double DcovD = ROOT::Math::Similarity(dist, vtx.
error());
51 if (vass.
isNull())
return false;
void setDistances(const AlgebraicVector3 &dist, const AlgebraicSymMatrix33 &err)
Set dz and dr given the distance and the 3x3 total covariance matrix of the distance.
virtual double vx() const =0
x coordinate of vertex position
double zError() const
error on z
double y() const
y coordinate
bool isNull() const
Return 'true' if this is a null association (that is, no vertex)
const Measurement1DFloat & dz() const
virtual double vy() const =0
y coordinate of vertex position
const Point & position() const
position
float significance() const
ROOT::Math::SVector< double, 3 > AlgebraicVector3
Abs< T >::type abs(const T &t)
double z() const
z coordinate
bool operator()(const pat::VertexAssociation &vass) const
check if this VertexAssociation is ok
pat::VertexAssociation simpleAssociation(const reco::Candidate &c, const reco::VertexRef &vtx) const
double x() const
x coordinate
const Measurement1DFloat & dr() const
Distance between the object and the vertex in the transverse plane, and it's error.
Error error() const
return SMatrix
float dZ
cuts on Z and transverse distance from the vertex, absolute values or significances ...
Analysis-level structure for vertex-related information.
virtual const Point & vertex() const =0
vertex position
virtual double vz() const =0
z coordinate of vertex position
VertexAssociationSelector()
an empty constructor is sometimes needed