Skip to content

Commit

Permalink
Use the new overload of convertObjectParameters in k4EDM4hep2LcioConv
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Jan 17, 2025
1 parent 80e92fc commit b6cee81
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions k4MarlinWrapper/src/components/Lcio2EDM4hep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,12 @@ namespace {

StatusCode Lcio2EDM4hepTool::convertCollections(lcio::LCEventImpl* the_event) {
// Convert event parameters
std::optional<std::reference_wrapper<podio::Frame>> frame;
if (m_podioDataSvc) {
frame = m_podioDataSvc->m_eventframe;
LCIO2EDM4hepConv::convertObjectParameters<lcio::LCEventImpl>(the_event, m_podioDataSvc->m_eventframe);
} else {
LCIO2EDM4hepConv::convertObjectParameters<lcio::LCEventImpl>(
the_event, [](const std::string& key, const auto& value) { k4FWCore::putParameter(key, value); });
}
LCIO2EDM4hepConv::convertObjectParameters<lcio::LCEventImpl>(the_event, frame);

// Convert Event Header outside the collections loop
if (!collectionExist(edm4hep::labels::EventHeader)) {
Expand Down

0 comments on commit b6cee81

Please sign in to comment.