6 : _id(std::numeric_limits<unsigned int>::max())
7 , _bco(std::numeric_limits<unsigned int>::max())
13 ,_bco(std::numeric_limits<unsigned int>::max())
19 os <<
"---GlobalVertexv2-----------------------" << std::endl;
21 os <<
" list of vtx ids: " << std::endl;
24 os <<
" Vertex type " << iter->first <<
" has " << iter->second.size()
25 <<
" vertices associated to it" << std::endl;
26 for(
auto&
vertex : iter->second)
32 os <<
"-----------------------------------------------" << std::endl;
52 vector.push_back(vertex);
53 _vtxs.insert(std::make_pair(type, vector));
57 it->second.push_back(vertex);
69 return it->second.size();
80 return it->second[0]->get_t();
91 return it->second[0]->get_t_err();
108 auto svtxit =
_vtxs.find(GlobalVertex::VTXTYPE::SVTX);
109 if(svtxit ==
_vtxs.end())
112 if(mbdit ==
_vtxs.end())
116 return mbdit->second[0]->get_position(coor);
120 size_t mosttracks = 0;
122 for(
auto vertex : trackvertices)
124 if(
vertex->size_tracks() > mosttracks)
126 mosttracks =
vertex->size_tracks();
127 pos =
vertex->get_position(coor);
136 auto svtxit =
_vtxs.find(GlobalVertex::VTXTYPE::SVTX);
137 if(svtxit ==
_vtxs.end())
143 size_t mosttracks = 0;
145 for(
auto vertex : trackvertices)
147 if(
vertex->size_tracks() > mosttracks)
149 mosttracks =
vertex->size_tracks();
150 chisq =
vertex->get_chisq();
159 auto svtxit =
_vtxs.find(GlobalVertex::VTXTYPE::SVTX);
160 if(svtxit ==
_vtxs.end())
162 return std::numeric_limits<unsigned int>::max();
166 size_t mosttracks = 0;
167 unsigned int ndf = std::numeric_limits<unsigned int>::max();
168 for(
auto vertex : trackvertices)
170 if(
vertex->size_tracks() > mosttracks)
172 mosttracks =
vertex->size_tracks();
182 auto svtxit =
_vtxs.find(GlobalVertex::VTXTYPE::SVTX);
183 if(svtxit ==
_vtxs.end())
186 if(mbdit ==
_vtxs.end())
193 return mbdit->second[0]->get_z_err();
202 size_t mosttracks = 0;
204 for(
auto vertex : trackvertices)
206 if(
vertex->size_tracks() > mosttracks)
208 mosttracks =
vertex->size_tracks();
209 err =
vertex->get_error(i, j);