CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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:71
#define abs(x)
Definition: mlp_lapack.h:159
void setDz(const Measurement1DFloat &dz)
Definition: Vertexing.h:70
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33
T sqrt(T t)
Definition: SSEVec.h:46
ROOT::Math::SVector< double, 3 > AlgebraicVector3
Analysis-level structure for vertex-related information.
Definition: Vertexing.h:27