1 #include <io/VROOTFile.h>
3 #include <utl/ErrorLogger.h>
4 #include <utl/SaveCurrentTDirectory.h>
28 "Unable to create in-memory image of ROOT file " +
fFilename;
31 }
else if (result == -2) {
34 "In-memory file image created corresponds to zombie ROOT file " +
fFilename;
61 error <<
"Cannot open root file: " <<
filename;
81 if (
fFile->IsZombie())
107 fTree =
dynamic_cast<TTree*
>(
fFile->Get(name.c_str()));
112 fat <<
"Cannot find Tree " << name;
static std::string GetRootMode(const Mode mode)
Open file for write, fail if exists.
Mode
Available open modes.
#define FATAL(message)
Macro for logging fatal messages.
Base class to report exceptions in IO.
int DefaultOpen(const std::string &filename, const Mode mode=eRead)
Class representing a document branch.
int GetTree(const std::string &name)
virtual void Open(const std::string &filename, const Mode mode=eRead, utl::Branch *const b=nullptr)
Overwrite if exist and open for write.