Skip to content
Snippets Groups Projects

KalmanVertexUpdator performance tuning for use in AMVF

@@ -68,24 +68,9 @@ namespace Trk{
}
//trying to find requested track
std::vector<Trk::VxTrackAtVertex>::iterator lintracksBegin = tracksAtVertex->begin();
std::vector<Trk::VxTrackAtVertex>::iterator lintracksEnd = tracksAtVertex->end();
auto righttrack = std::find(tracksAtVertex->begin(), tracksAtVertex->end(), trk);
std::vector<Trk::VxTrackAtVertex>::iterator righttrack = lintracksBegin;
//to be replaced with faster/smarter search
bool found(false);
for (std::vector<Trk::VxTrackAtVertex>::iterator iter=lintracksBegin;iter!=lintracksEnd;++iter)
{
if (trk == *iter)
{
found = true;
righttrack = iter;
break;
}
}//end for loop
if (!found)
if (righttrack == tracksAtVertex->end())
{
ATH_MSG_VERBOSE ("The track requested for removal or adding is not found in the vector of tracks");
if (sign<0) {
Loading