10 const size_t minNtracks = 2) {
11 Point p_dz(0, 0, -99999);
13 for (
auto const& vertex : vertices) {
14 size_t tracks = vertex.tracksSize();
15 if (tracks < minNtracks) {
20 p_dz = vertex.position();
31 const size_t minNtracks = 2) {
32 Point p_dz(0, 0, -99999);
34 for (
auto const& vertex : vertices) {
35 size_t tracks = vertex.tracksSize();
36 if (tracks < minNtracks) {
41 p_dz = vertex.position();
42 error.SetXYZ(vertex.xError(), vertex.yError(), vertex.zError());
std::vector< Vertex > VertexCollection
collection of Vertex objects
auto const & tracks
cannot be loose
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
Structure Point Contains parameters of Gaussian fits to DMRs.
Point getBestVertex(reco::Track const &trk, reco::VertexCollection const &vertices, const size_t minNtracks=2)