DataFormats
PatCandidates
src
Vertexing.cc
Go to the documentation of this file.
1
#include "
DataFormats/PatCandidates/interface/Vertexing.h
"
2
3
using
pat::VertexAssociation
;
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
}
AlgebraicVector3
ROOT::Math::SVector< double, 3 > AlgebraicVector3
Definition:
AlgebraicROOTObjects.h:12
AlgebraicSymMatrix33
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33
Definition:
AlgebraicROOTObjects.h:21
pat::VertexAssociation::setDz
void setDz(const Measurement1DFloat &dz)
Definition:
Vertexing.h:68
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:19
pat::VertexAssociation::setDr
void setDr(const Measurement1DFloat &dr)
Definition:
Vertexing.h:69
Measurement1DFloat
Definition:
Measurement1DFloat.h:9
Vertexing.h
submitPVResolutionJobs.err
err
Definition:
submitPVResolutionJobs.py:85
pat::VertexAssociation
Analysis-level structure for vertex-related information.
Definition:
Vertexing.h:25
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
Generated for CMSSW Reference Manual by
1.8.16