1 #ifndef _io_EventFile_h_
2 #define _io_EventFile_h_
4 #include <io/IoCodes.h>
5 #include <utl/AugerException.h>
6 #include <io/StreamerSwitch.h>
EventFile(const Type type=eOffline, utl::Branch *const b=nullptr)
switches to allow excluding certain parts of Event from streaming
Status FindEvent(const unsigned int eventId)
seek Event id set cursor there
void Open(const std::string &filename, const Mode mode=eRead, utl::Branch *const b=nullptr)
static const io::StreamerSwitch kDefaultSwitch
Mode
Available open modes.
io::StreamerSwitch fStreamerSwitch
Class representing a document branch.
Status
Return code for seek operation.
Status Read(evt::Event &event)
read current event, advance cursor by 1
const std::string & GetFilename() const
EventFile & operator=(const EventFile &eventFile)
copy disallowed
Interface to file I/O objects.
io::VEventFile * fVEventFile
Status GotoPosition(const unsigned int position)
goto by position in the file
Type
The type of file that we are acutally opening.
static io::VEventFile * Factory(const std::string &filename, const Mode mode, const Type type, utl::Branch *const branch, const io::StreamerSwitch &streamerSwitch)
void Write(const evt::Event &event)