Go to the documentation of this file. 1 #ifndef __JROOTFILEWRITER__
2 #define __JROOTFILEWRITER__
20 namespace JPP {
using namespace JROOT; }
38 inline bool putObject(TDirectory* dir,
const T&
object)
40 return (dir != NULL && dir->WriteTObject(&
object) > 0);
76 this->directory = dir;
89 virtual bool put(
const T&
object)
91 if (directory != NULL)
127 template<
class JHead_t,
class JTail_t>
151 template<
class JHead_t>
183 virtual void open(
const char* file_name)
virtual void open(const char *file_name)
Open file.
Auxiliary classes and methods for ROOT I/O.
virtual void open(const char *file_name)
Open file.
Auxiliary class for no type definition.
virtual bool is_open() const =0
Check is device is open.
Template definition of ROOT object output.
void SetDirectory(TDirectory *dir)
Set directory.
Forward declarations for definitions of I/O redirect and pipe operators.
bool putObject(TDirectory *dir, const T &object)
Write object to ROOT directory.
TFile * getFile() const
Get file.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
void SetDirectory(TDirectory *dir)
Set directory.
virtual bool put(const T &object)
Object output.
JTreeWriter object output.
Implementation of object output to ROOT file for single data type.
Interface for object output with named access.
JRootObjectOutput()
Default constructor.
JRootFileWriter()
Default constructor.