10 Point p_dz(0,0,-99999);
12 for(
auto const & vertex : vertices) {
13 size_t tracks = vertex.tracksSize();
14 if (tracks < minNtracks) {
17 float dz =
std::abs(trk.
dz(vertex.position()));
19 p_dz = vertex.position();
31 Point p_dz(0,0,-99999);
33 for(
auto const & vertex : vertices) {
34 size_t tracks = vertex.tracksSize();
35 if (tracks < minNtracks) {
38 float dz =
std::abs(trk.
dz(vertex.position()));
40 p_dz = vertex.position();
41 error.SetXYZ(vertex.xError(),vertex.yError(),vertex.zError());
std::vector< Vertex > VertexCollection
collection of Vertex objects
Point getBestVertex_withError(reco::Track const &trk, reco::VertexCollection const &vertices, Point &error, const size_t minNtracks=2)
Abs< T >::type abs(const T &t)
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
XYZPointD XYZPoint
point in space with cartesian internal representation
Point getBestVertex(reco::Track const &trk, reco::VertexCollection const &vertices, const size_t minNtracks=2)