1 #ifndef _OfflineROOTFile_h_
2 #define _OfflineROOTFile_h_
4 #include <io/VROOTFile.h>
5 #include <io/StreamerSwitch.h>
49 void Close()
override;
std::string GetConfig()
Return a string with the configuration corresponding to the run.
int GetNEvents() override
std::ofstream * fConfigOut
ROOT streamer for top level offline format.
switches to allow excluding certain parts of Event from streaming
Holds the run configuration data from CentralConfig.
Status GotoPosition(const unsigned int evNo) override
goto by position in the file
Mode
Available open modes.
OfflineROOTFile()=default
Event Class being actually streamed when using ROOT IO.
io::StreamerSwitch fStreamerSwitch
Class representing a document branch.
Status
Return code for seek operation.
virtual ~OfflineROOTFile()
void Write(const evt::Event &event) override
static const std::string kConfigBranchName
void Open(const std::string &filename, const Mode mode, utl::Branch *const b=nullptr) override
static const std::string kOfflineTreeName
Status FindEvent(const unsigned int eventId) override
On success returns event number in the file.
static const std::string kOfflineBranchName
io::Event_ROOT * fCurEvent
io::Config_ROOT * fConfig
static const io::StreamerSwitch fgDefaultSwitch
Status Read(evt::Event &event) override
Returns -1 if End Of File.