22 namespace JPP {
using namespace JROOT; }
56 gErrorIgnoreLevel = kError;
136 virtual void open(
const char* file_name)
override
160 set(TFile::Open(file_name,
"READ"));
166 if (
getFile()->TestBit(TFile::kRecovered)) {
170 if (value != NULL && strcmp(value,
"0") != 0) {
237 virtual void open(
const char* file_name)
override
262 set(TFile::Open(file_name,
"CREATE"));
#define MAKE_EXCEPTION(JException_t, A)
Make exception.
Interface for named access of a device.
Exception for opening of file.
Exception for recovery of file.
virtual JClass_t * get() const override
Get pointer.
virtual void set(JClass_t *p) override
Set pointer.
virtual void reset() override
Reset pointer.
Auxiliary base class for controling the throwing of exceptions.
static void Throw(const bool option)
Enable/disable throw option.
JRootFile & operator=(JRootFile &&)
TFile * getFile() const
Get file.
JRootFile(const JRootFile &)
virtual bool is_open() const override
Check is file is open.
JRootFile & operator=(const JRootFile &)
JRootFile()
Default constructor.
~JRootOutputFile()
Destructor.
virtual void open(const char *file_name) override
Open file.
virtual void close() override
Close file.
JRootOutputFile()
Default constructor.
void do_open(const char *file_name)
Open file.
JRootOutputFile(const char *file_name)
Constructor.
void do_close()
Close file.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for ROOT I/O.
static const char *const ROOT_FILE_RECOVERY_DISABLE
Environment variable to disable ROOT file recovery.