From abfe475d89737e072ba2149994b901e5c2b95165 Mon Sep 17 00:00:00 2001 From: simonge Date: Mon, 26 Aug 2024 17:17:51 +0100 Subject: [PATCH] Try setting as edm4hep::ObjectID directly --- src/algorithms/fardetectors/FarDetectorTrackerCluster.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/algorithms/fardetectors/FarDetectorTrackerCluster.cc b/src/algorithms/fardetectors/FarDetectorTrackerCluster.cc index b12a61b738..426287e712 100644 --- a/src/algorithms/fardetectors/FarDetectorTrackerCluster.cc +++ b/src/algorithms/fardetectors/FarDetectorTrackerCluster.cc @@ -112,7 +112,7 @@ FarDetectorTrackerCluster::ClusterHits(const edm4eic::RawTrackerHitCollection& i ROOT::VecOps::RVec clusterList = {maxIndex}; ROOT::VecOps::RVec clusterT; - std::vector clusterHits; + std::vector clusterHits; // Loop over hits, adding neighbouring hits as relevant while (clusterList.size()) { @@ -134,7 +134,8 @@ FarDetectorTrackerCluster::ClusterHits(const edm4eic::RawTrackerHitCollection& i clusterList.erase(clusterList.begin()); // Adds raw hit to TrackerHit contribution - clusterHits.push_back((inputHits)[index].getObjectID()); + edm4hep::ObjectID hitID = (inputHits)[index].getObjectID(); + clusterHits.push_back(hitID); // Energy auto hitE = e[index];