Support RNTuple-based EDM4hep output from standalone executables - #159
Conversation
Switch the standalone Delphes-to-EDM4hep executables from a hardcoded podio::ROOTWriter to podio::makeWriter(), which lets any of them write RNTuple-based files by setting PODIO_DEFAULT_WRITE_RNTUPLE=1 instead of a TTree-based file, without any other change in usage.
|
It would be better if an argument could be passed to the executables for choosing rntuple since |
Addresses review feedback on PR key4hep#159: pass the writer type through to podio::makeWriter() based on an optional --rntuple flag (checked anywhere in argv and stripped before the reader's positional parsing), rather than only relying on the PODIO_DEFAULT_WRITE_RNTUPLE environment variable.
|
Good point, added a |
|
Note there's currently no |
Switch the standalone Delphes-to-EDM4hep executables from a hardcoded
podio::ROOTWritertopodio::makeWriter(), so any of them can write RNTuple-based files by settingPODIO_DEFAULT_WRITE_RNTUPLE=1instead of the default TTree-based file, with no other usage change.Link
podio::podioIOinstead ofpodio::podioRootIOsincemakeWriter()lives inlibpodioIO.so, and document the new env var in each executable's--helptext.