diff --git a/src/algorithms/fardetectors/FarDetectorTrackerCluster.cc b/src/algorithms/fardetectors/FarDetectorTrackerCluster.cc index b12a61b738..627d36fd00 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 = static_cast((inputHits)[index].getObjectID()); + clusterHits.push_back(hitID); // Energy auto hitE = e[index]; diff --git a/src/algorithms/fardetectors/FarDetectorTrackerCluster.h b/src/algorithms/fardetectors/FarDetectorTrackerCluster.h index 6ac60e5067..32f63a9b47 100644 --- a/src/algorithms/fardetectors/FarDetectorTrackerCluster.h +++ b/src/algorithms/fardetectors/FarDetectorTrackerCluster.h @@ -26,7 +26,7 @@ struct FDTrackerCluster { double energy{0.0}; double time{0.0}; double timeError{0.0}; - std::vector rawHits; + std::vector rawHits; }; namespace eicrecon {