Skip to content

Commit

Permalink
Don't check type for SIO
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed May 12, 2024
1 parent 53dfc25 commit 5cc1e39
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,13 @@ Writer makeWriter(const std::string& filename, const std::string& type) {

if ((type == "default" && endsWith(filename, ".root")) || lower(type) == "root") {
return Writer{std::make_unique<ROOTWriter>(filename)};
}
if (lower(type) == "rntuple") {
} else if (lower(type) == "rntuple") {
#if PODIO_ENABLE_RNTUPLE
return Writer{std::make_unique<RNTupleWriter>(filename)};
#else
throw std::runtime_error("ROOT RNTuple writer not available. Please recompile with ROOT RNTuple support.");
#endif
}
if ((type == "default" && endsWith(filename, ".sio")) || lower(type) == "sio") {
} else if (endsWith(filename, ".sio")) {
#if PODIO_ENABLE_SIO
return Writer{std::make_unique<SIOWriter>(filename)};
#else
Expand Down

0 comments on commit 5cc1e39

Please sign in to comment.