Skip to content

Commit

Permalink
Use non-deprecated versions of SIO Reader/Writer
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Apr 4, 2024
1 parent f3efa0a commit e19ec2f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/write_events_sio.cc
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
#include "write_events.h"

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

int main(int, char**) {
write<podio::SIOFrameWriter>("edm4hep_events.sio");
write<podio::SIOWriter>("edm4hep_events.sio");
return 0;
}

0 comments on commit e19ec2f

Please sign in to comment.