CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Vertexing.cc
Go to the documentation of this file.
2 
4 
5 void VertexAssociation::setDistances(const AlgebraicVector3 &dist, const AlgebraicSymMatrix33 &err) {
6  setDz(Measurement1DFloat(std::abs(dist[2]), std::sqrt(err(2, 2))));
7 
8  AlgebraicVector3 dist2D(dist[0], dist[1], 0);
9  float d2 = dist2D[0] * dist2D[0] + dist2D[1] * dist2D[1];
10  setDr(Measurement1DFloat(sqrt(d2), sqrt(ROOT::Math::Similarity(dist2D, err) / d2)));
11 }
void setDr(const Measurement1DFloat &dr)
Definition: Vertexing.h:69
void setDz(const Measurement1DFloat &dz)
Definition: Vertexing.h:68
T sqrt(T t)
Definition: SSEVec.h:19
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
ROOT::Math::SVector< double, 3 > AlgebraicVector3
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33
Analysis-level structure for vertex-related information.
Definition: Vertexing.h:25