Skip to content

Commit

Permalink
Also use non-deprecated version of SIOReader
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Apr 4, 2024
1 parent e19ec2f commit 50ca26e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/read_events_sio.cc
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
#include "read_events.h"

#include "podio/podioVersion.h"
#if PODIO_BUILD_VERSION >= PODIO_VERSION(0, 99, 0)
#include "podio/SIOReader.h"
#else
#include "podio/SIOFrameReader.h"
namespace podio {
using SIOReader = podio::SIOFrameReader;
}
#endif

int main(int, char**) {
read_events<podio::SIOFrameReader>("edm4hep_events.sio");
read_events<podio::SIOReader>("edm4hep_events.sio");

return 0;
}

0 comments on commit 50ca26e

Please sign in to comment.