28 for (
auto& rval_truth : rval.
m_truth) {
29 m_truth[rval_truth.first] += rval_truth.second;
52 if (rval.
m_truth.empty())
return;
57 for (
const auto & rval_truth : rval.
m_truth)
59 if (rval_truth.second > maxweight)
61 maxweight = rval_truth.second;
62 maxweight_barcode = rval_truth.first;
66 maximize(maxweight_barcode, maxweight);
76 size_t count = std::count_if(mt.
begin(), mt.
end(), [](
auto){return true;});
77 o <<
"FPGATrackSimMultiTruth (event index,barcode) <=> weight, entries: " <<
count <<
"\n";
79 if (
count == 0)
return o;
81 for (
auto& truth : mt)
82 o <<
" " << (truth.first).
first <<
"," << (truth.first).second <<
" <=> " << truth.second <<
"\n";
90 else o <<
code.first <<
"," <<
code.second <<
" " <<
weight <<
"\n";