diff --git a/test/k4FWCoreTest/src/components/k4FWCoreTest_cellID_writer.cpp b/test/k4FWCoreTest/src/components/k4FWCoreTest_cellID_writer.cpp index 668b1871..16d07d56 100644 --- a/test/k4FWCoreTest/src/components/k4FWCoreTest_cellID_writer.cpp +++ b/test/k4FWCoreTest/src/components/k4FWCoreTest_cellID_writer.cpp @@ -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; }