22 namespace JPP {
using namespace JROOT; }
56 gErrorIgnoreLevel = kError;
149 virtual void open(
const char* file_name)
override
151 set(TFile::Open(file_name,
"READ"));
157 if (
getFile()->TestBit(TFile::kRecovered)) {
161 if (value != NULL && strcmp(value,
"0") != 0) {
204 virtual void open(
const char* file_name)
override
206 set(TFile::Open(file_name,
"CREATE"));
Exception for opening of file.
JRootOutputFile(const char *file_name)
Constructor.
Auxiliary base class for controling the throwing of exceptions.
virtual void reset() override
Reset pointer.
JRootFile & operator=(const JRootFile &)
bool is_valid() const
Check validity of pointer.
virtual bool is_open() const override
Check is file is open.
TFile * getFile() const
Get file.
static const char *const ROOT_FILE_RECOVERY_DISABLE
Environment variable to disable ROOT file recovery.
#define MAKE_EXCEPTION(JException_t, A)
Make exception.
virtual void close() override
Close file.
JRootOutputFile()
Default constructor.
JRootFile()
Default constructor.
virtual void close() override
Close file.
Exception for recovery of file.
virtual void open(const char *file_name) override
Open file.
Interface for named access of a device.
virtual void set(JClass_t *p) override
Set pointer.
static void Throw(const bool option)
Enable/disable throw option.