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"));
Exception for opening of file.
void do_open(const char *file_name)
Open file.
JRootOutputFile(const char *file_name)
Constructor.
Auxiliary base class for controling the throwing of exceptions.
void do_close()
Close file.
virtual void reset() override
Reset pointer.
JRootFile & operator=(const JRootFile &)
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.
JRootOutputFile()
Default constructor.
JRootFile()
Default constructor.
~JRootOutputFile()
Destructor.
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.