From e6d7080aa545a45b38fc30cdbcae25eb7e7d8d4b Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com> Date: Wed, 7 Feb 2024 10:23:59 +0100 Subject: [PATCH] Change ROOTFrame{Writer,Reader} to ROOT{Writer,Reader} when possible (#47) Co-authored-by: jmcarcell --- tests/compare_contents.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/compare_contents.cpp b/tests/compare_contents.cpp index abf265f6..12b4739f 100644 --- a/tests/compare_contents.cpp +++ b/tests/compare_contents.cpp @@ -2,7 +2,16 @@ #include "ObjectMapping.h" #include "ComparisonUtils.h" +#include "podio/podioVersion.h" +#if PODIO_BUILD_VERSION >= PODIO_VERSION(0, 99, 0) +#include "podio/ROOTReader.h" +#else #include "podio/ROOTFrameReader.h" +namespace podio { + using ROOTReader = podio::ROOTFrameReader; +} +#endif + #include "podio/Frame.h" #include @@ -22,7 +31,7 @@ int main(int argc, char* argv[]) auto lcreader = IOIMPL::LCFactory::getInstance()->createLCReader(); lcreader->open(argv[1]); - auto edmreader = podio::ROOTFrameReader(); + auto edmreader = podio::ROOTReader(); edmreader.openFile(argv[2]); // loop going over every name of the lcio collection and checking if a