Skip to content

Commit

Permalink
remove loop to set cellID values
Browse files Browse the repository at this point in the history
  • Loading branch information
fdplacido authored and vvolkl committed Oct 20, 2021
1 parent 9a5185c commit 9a10858
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,8 @@ StatusCode k4FWCoreTest_cellID_writer::execute() {
auto hit = simTrackerHits->create();
hit.setPosition({3, 4, 5});

auto* collids = m_podioDataSvc->getCollectionIDs();

for (auto& id : collids->ids()) {
auto& collmd = m_podioDataSvc->getProvider().getCollectionMetaData(id);
collmd.setValue("CellIDEncodingString", cellIDtest);
}
auto& collmd = m_podioDataSvc->getProvider().getCollectionMetaData(simTrackerHits->getID());
collmd.setValue("CellIDEncodingString", cellIDtest);

return StatusCode::SUCCESS;
}
Expand Down

0 comments on commit 9a10858

Please sign in to comment.