Closed veprbl closed 7 months ago
Thanks for reporting this. Given that the ROOTReader
and the EventStore
are deprecated now, we will probably not fix these. However, a similar issue exists in the new Frame based readers as well, where the only check that exists with a "nice" exception is whether the file exists.
This doesn't fix anything for you, but the python bindings deal with this slightly better as we have implemented some functionality there for detecting this:
from podio.reading import get_reader
reader = get_reader("<filename>")
# ...
Closing this since the EventStore
based Readers and Writers have been removed in #485
include <podio/EventStore.h>
include <podio/Frame.h>
include <podio/ROOTFrameWriter.h>
include <podio/ROOTReader.h>
include <datamodel/EventInfoCollection.h>
int main() { { auto col = EventInfoCollection();
}
{ auto reader = podio::ROOTReader(); reader.openFile("frames.root");
}
return EXIT_SUCCESS; }
Break segmentation violation [/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info) [] (no debug info)
[/Users/veprbl/podio/prefix/lib/libpodioRootIO.so] podio::ROOTReader::openFile(std::1::basic_string<char, std::__1::char_traits, std:: 1::allocator > const&) /Users/veprbl/podio/src/ROOTReader.cc:140
[/Users/veprbl/podio/build/tests/roundtrip] main /Users/veprbl/podio/tests/roundtrip.cpp:27
[/usr/lib/system/libdyld.dylib] start (no debug info)
[] (no debug info)