From 734555aa9cf82a3ca64dfc398098b40c6c759d92 Mon Sep 17 00:00:00 2001
From: Dominik Smith <smith@th.physik.uni-frankfurt.de>
Date: Fri, 3 Nov 2023 12:49:17 +0100
Subject: [PATCH] Minor cleanup in cbm::algo::tof::Clusterizer.

---
 algo/detectors/tof/Clusterizer.cxx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/algo/detectors/tof/Clusterizer.cxx b/algo/detectors/tof/Clusterizer.cxx
index 537480d20f..531796551d 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;
   }
 
-- 
GitLab