diff --git a/k4EDM4hep2LcioConv/include/k4EDM4hep2LcioConv/k4EDM4hep2LcioConv.h b/k4EDM4hep2LcioConv/include/k4EDM4hep2LcioConv/k4EDM4hep2LcioConv.h index a28b4697..e79ca652 100644 --- a/k4EDM4hep2LcioConv/include/k4EDM4hep2LcioConv/k4EDM4hep2LcioConv.h +++ b/k4EDM4hep2LcioConv/include/k4EDM4hep2LcioConv/k4EDM4hep2LcioConv.h @@ -402,10 +402,17 @@ namespace EDM4hep2LCIOConv { /** * Convert an edm4hep event to an LCEvent */ - std::unique_ptr convEvent( + std::unique_ptr convertEvent( const podio::Frame& edmEvent, const podio::Frame& metadata = podio::Frame {}); + [[deprecated("Use convertEvent")]] std::unique_ptr convEvent( + const podio::Frame& edmEvent, + const podio::Frame& metadata = podio::Frame {}) + { + return convertEvent(edmEvent, metadata); + } + } // namespace EDM4hep2LCIOConv #include "k4EDM4hep2LcioConv/k4EDM4hep2LcioConv.ipp" diff --git a/k4EDM4hep2LcioConv/src/k4EDM4hep2LcioConv.cpp b/k4EDM4hep2LcioConv/src/k4EDM4hep2LcioConv.cpp index fddd26e3..5faedfc6 100644 --- a/k4EDM4hep2LcioConv/src/k4EDM4hep2LcioConv.cpp +++ b/k4EDM4hep2LcioConv/src/k4EDM4hep2LcioConv.cpp @@ -29,7 +29,7 @@ namespace EDM4hep2LCIOConv { return std::find(coll->begin(), coll->end(), collection_name) != coll->end(); } - std::unique_ptr convEvent(const podio::Frame& edmEvent, const podio::Frame& metadata) + std::unique_ptr convertEvent(const podio::Frame& edmEvent, const podio::Frame& metadata) { auto lcioEvent = std::make_unique(); auto objectMappings = CollectionsPairVectors {}; diff --git a/tests/edm4hep_roundtrip.cpp b/tests/edm4hep_roundtrip.cpp index e666ee72..0438a6b4 100644 --- a/tests/edm4hep_roundtrip.cpp +++ b/tests/edm4hep_roundtrip.cpp @@ -17,7 +17,7 @@ int main() { const auto origEvent = createExampleEvent(); - const auto lcioEvent = EDM4hep2LCIOConv::convEvent(origEvent); + const auto lcioEvent = EDM4hep2LCIOConv::convertEvent(origEvent); const auto roundtripEvent = LCIO2EDM4hepConv::convertEvent(lcioEvent.get()); ASSERT_SAME_OR_ABORT(edm4hep::CalorimeterHitCollection, "caloHits"); diff --git a/tests/edm4hep_to_lcio.cpp b/tests/edm4hep_to_lcio.cpp index 67358719..fb072dd2 100644 --- a/tests/edm4hep_to_lcio.cpp +++ b/tests/edm4hep_to_lcio.cpp @@ -12,7 +12,7 @@ int main() { const auto edmEvent = createExampleEvent(); - const auto lcioEvent = EDM4hep2LCIOConv::convEvent(edmEvent); + const auto lcioEvent = EDM4hep2LCIOConv::convertEvent(edmEvent); if (!compareEventHeader(lcioEvent.get(), &edmEvent)) { return 1;