From d1a452fdf348713dd4b1689d14416e830bb65e37 Mon Sep 17 00:00:00 2001 From: Juraj Smiesko Date: Thu, 21 Sep 2023 10:40:28 +0200 Subject: [PATCH] RawTimeSeriesCollection --- tools/include/edm4hep2json.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/include/edm4hep2json.hxx b/tools/include/edm4hep2json.hxx index c5e03b2dd..5bfe205a5 100644 --- a/tools/include/edm4hep2json.hxx +++ b/tools/include/edm4hep2json.hxx @@ -124,7 +124,7 @@ nlohmann::json processEvent(const podio::Frame& frame, std::vector& {collList[i], {{"collection", hitPlaneCollection}, {"collID", coll->getID()}, {"collType", coll->getTypeName()}}}}; jsonDict.insert(jsonColl.begin(), jsonColl.end()); - } else if (coll->getTypeName() == "edm4hep::RawTimeSeries") { + } else if (coll->getTypeName() == "edm4hep::RawTimeSeriesCollection") { auto& rtsCollection = frame.get(collList[i]); nlohmann::json jsonColl{ {collList[i], {{"collection", rtsCollection}, {"collID", coll->getID()}, {"collType", coll->getTypeName()}}}}; @@ -425,7 +425,7 @@ int read_frames(const std::string& filename, const std::string& jsonFile, const std::cout << "INFO: Reading event " << i << std::endl; } - auto frame = podio::Frame(reader.readNextEntry(frameName)); + auto frame = podio::Frame(reader.readEntry(frameName, i)); auto eventDict = processEvent(frame, collList, verboser, reader.currentFileVersion()); allEventsDict["Event " + std::to_string(i)] = eventDict; }