Skip to content

Commit

Permalink
RawTimeSeriesCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvbrt committed Sep 21, 2023
1 parent b247fb4 commit d1a452f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/include/edm4hep2json.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ nlohmann::json processEvent(const podio::Frame& frame, std::vector<std::string>&
{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<edm4hep::RawTimeSeriesCollection>(collList[i]);
nlohmann::json jsonColl{
{collList[i], {{"collection", rtsCollection}, {"collID", coll->getID()}, {"collType", coll->getTypeName()}}}};
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit d1a452f

Please sign in to comment.