Skip to content

Commit

Permalink
Switch to ROOTWriter from deprecated ROOTFrameWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Feb 6, 2024
1 parent ada6c79 commit 33baba7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion standalone/lcio2edm4hep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@
#include <IOIMPL/LCFactory.h>
#include <UTIL/CheckCollections.h>

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

#include <fstream>
#include <iostream>
Expand Down Expand Up @@ -156,7 +164,7 @@ int main(int argc, char* argv[])
std::cout << "Number of events in file: " << lcreader->getNumberOfEvents() << '\n';
std::cout << "Number of runs in file: " << lcreader->getNumberOfRuns() << '\n';

podio::ROOTFrameWriter writer(args.outputFile);
podio::ROOTWriter writer(args.outputFile);

for (auto j = 0u; j < lcreader->getNumberOfRuns(); ++j) {
if (j % 1 == 0) {
Expand Down

0 comments on commit 33baba7

Please # to comment.