Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:27

0001 #include "DataFormats/PatCandidates/interface/Vertexing.h"
0002 
0003 using pat::VertexAssociation;
0004 
0005 void VertexAssociation::setDistances(const AlgebraicVector3 &dist, const AlgebraicSymMatrix33 &err) {
0006   setDz(Measurement1DFloat(std::abs(dist[2]), std::sqrt(err(2, 2))));
0007 
0008   AlgebraicVector3 dist2D(dist[0], dist[1], 0);
0009   float d2 = dist2D[0] * dist2D[0] + dist2D[1] * dist2D[1];
0010   setDr(Measurement1DFloat(sqrt(d2), sqrt(ROOT::Math::Similarity(dist2D, err) / d2)));
0011 }