From 7400198fa6f0360a511d872ddbe730993bfab4eb Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 25 Sep 2023 15:24:04 +0200 Subject: [PATCH] Fix the map insertion --- k4FWCore/include/k4FWCore/PodioDataSvc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k4FWCore/include/k4FWCore/PodioDataSvc.h b/k4FWCore/include/k4FWCore/PodioDataSvc.h index 5e8b493e..2dbc0b06 100644 --- a/k4FWCore/include/k4FWCore/PodioDataSvc.h +++ b/k4FWCore/include/k4FWCore/PodioDataSvc.h @@ -106,7 +106,7 @@ class PodioDataSvc : public DataSvc { if (!collection) { error() << "Collection " << token << " does not exist." << endmsg; } - (*map)[collName] = collection; + (*map)[token] = collection; } auto wrapper = new DataWrapper; wrapper->setData(map);