Skip to content

Commit

Permalink
Try setting as edm4hep::ObjectID directly
Browse files Browse the repository at this point in the history
  • Loading branch information
simonge committed Aug 26, 2024
1 parent 3cf07f2 commit abfe475
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/algorithms/fardetectors/FarDetectorTrackerCluster.cc
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ FarDetectorTrackerCluster::ClusterHits(const edm4eic::RawTrackerHitCollection& i

ROOT::VecOps::RVec<unsigned long> clusterList = {maxIndex};
ROOT::VecOps::RVec<float> clusterT;
std::vector<podio::ObjectID> clusterHits;
std::vector<edm4hep::ObjectID> clusterHits;

// Loop over hits, adding neighbouring hits as relevant
while (clusterList.size()) {
Expand All @@ -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];
Expand Down

0 comments on commit abfe475

Please sign in to comment.