39 LogFunc evalLog = [](
const std::string&) {};
49 auto handleException = [&](
const auto& err) {
50 LOGP(error,
"Encountered critical error in step {}, stopping further processing of this TF: {}", StateNames[mCurState], err.what());
51 if (!mVertParams[0].DropTFUponFailure) {
54 LOGP(error,
"Dropping this TF!");
59 float timeTracklet{0.f}, timeSelection{0.f}, timeVertexing{0.f}, timeInit{0.f};
61 for (
int iteration = 0; iteration < std::min(mVertParams[0].nIterations, (
int)mVertParams.size()); ++iteration) {
62 mMemoryPool->setMaxMemory(mVertParams[iteration].MaxMemory);
63 unsigned int nTracklets01{0}, nTracklets12{0};
64 logger(fmt::format(
"=== ITS {} Seeding vertexer iteration {} summary:", mTraits->
getName(), iteration));
74 timeInit += timeInitIteration;
75 timeTracklet += timeTrackletIteration;
76 timeSelection += timeSelectionIteration;
77 timeVertexing += timeVertexingIteration;
81 }
catch (
const std::bad_alloc& err) {
84 LOGP(fatal,
"Uncaught exception!");
87 return timeInit + timeTracklet + timeSelection + timeVertexing;
void printEpilog(LogFunc &logger, const unsigned int trackletN01, const unsigned int trackletN12, const unsigned selectedN, const unsigned int vertexN, const float initT, const float trackletT, const float selecT, const float vertexT)