diff --git a/algo/detectors/tof/Clusterizer.cxx b/algo/detectors/tof/Clusterizer.cxx index 537480d20fdf751a8640265f80f9054bcf5f4d66..531796551d49c46bef29200513ba4392628d6272 100644 --- a/algo/detectors/tof/Clusterizer.cxx +++ b/algo/detectors/tof/Clusterizer.cxx @@ -31,7 +31,7 @@ namespace cbm::algo::tof CbmTofDigi* pDigi = digisIn[iDigi].first; const int32_t index = digisIn[iDigi].second; const double chan = pDigi->GetChannel(); - result[chan].push_back(std::make_pair(new CbmTofDigi(*pDigi), index)); + result[chan].emplace_back(pDigi, index); } /// Sort channel-wise by time @@ -176,7 +176,6 @@ namespace cbm::algo::tof clustersOut.push_back(cluster); chanSizes.back()++; } - return result; }