Definition at line 118 of file PrimaryVertexResolution.cc.
◆ Resolution()
Definition at line 120 of file PrimaryVertexResolution.cc.
References avgx_, avgy_, avgz_, pullx_, pully_, pullz_, resx_, resy_, resz_, funct::sqr(), mathSSE::sqrt(), reco::Vertex::x(), reco::Vertex::xError(), reco::Vertex::y(), reco::Vertex::yError(), reco::Vertex::z(), and reco::Vertex::zError().
121 const double diffx = vertex1.
x() - vertex2.
x();
122 const double diffy = vertex1.
y() - vertex2.
y();
123 const double diffz = vertex1.
z() - vertex2.
z();
128 const double invSqrt2 = 1. /
std::sqrt(2.);
129 resx_ = diffx * invSqrt2;
130 resy_ = diffy * invSqrt2;
131 resz_ = diffz * invSqrt2;
137 avgx_ = (vertex1.
x() + vertex2.
x()) / 2.;
138 avgy_ = (vertex1.
y() + vertex2.
y()) / 2.;
139 avgz_ = (vertex1.
z() + vertex2.
z()) / 2.;
double z() const
z coordinate
double zError() const
error on z
double xError() const
error on x
double x() const
x coordinate
double y() const
y coordinate
double yError() const
error on y
Square< F >::type sqr(const F &f)
◆ avgx()
double PrimaryVertexResolution::Resolution::avgx |
( |
| ) |
const |
|
inline |
◆ avgy()
double PrimaryVertexResolution::Resolution::avgy |
( |
| ) |
const |
|
inline |
◆ avgz()
double PrimaryVertexResolution::Resolution::avgz |
( |
| ) |
const |
|
inline |
◆ pullx()
double PrimaryVertexResolution::Resolution::pullx |
( |
| ) |
const |
|
inline |
◆ pully()
double PrimaryVertexResolution::Resolution::pully |
( |
| ) |
const |
|
inline |
◆ pullz()
double PrimaryVertexResolution::Resolution::pullz |
( |
| ) |
const |
|
inline |
◆ resx()
double PrimaryVertexResolution::Resolution::resx |
( |
| ) |
const |
|
inline |
◆ resy()
double PrimaryVertexResolution::Resolution::resy |
( |
| ) |
const |
|
inline |
◆ resz()
double PrimaryVertexResolution::Resolution::resz |
( |
| ) |
const |
|
inline |
◆ avgx_
double PrimaryVertexResolution::Resolution::avgx_ |
|
private |
◆ avgy_
double PrimaryVertexResolution::Resolution::avgy_ |
|
private |
◆ avgz_
double PrimaryVertexResolution::Resolution::avgz_ |
|
private |
◆ pullx_
double PrimaryVertexResolution::Resolution::pullx_ |
|
private |
◆ pully_
double PrimaryVertexResolution::Resolution::pully_ |
|
private |
◆ pullz_
double PrimaryVertexResolution::Resolution::pullz_ |
|
private |
◆ resx_
double PrimaryVertexResolution::Resolution::resx_ |
|
private |
◆ resy_
double PrimaryVertexResolution::Resolution::resy_ |
|
private |
◆ resz_
double PrimaryVertexResolution::Resolution::resz_ |
|
private |