1#ifndef __JROOTFILEWRITER__ 
    2#define __JROOTFILEWRITER__ 
   22namespace JPP { 
using namespace JROOT; }
 
   43    return dir.WriteTObject(&
object) > 0;
 
 
   57    return dir.WriteObject(&
object, T::Class_Name()) > 0;
 
 
   70    return (dir != NULL && 
putObject(*dir, 
object));
 
 
   84    return (dir != NULL && 
putObject(*dir, 
object));
 
 
   91  template<class T, bool = JTreeParametersAvailable<T>::result>
 
  120      this->directory = dir;
 
 
  133    virtual bool put(
const T& 
object)
 override  
  135      if (directory != NULL)
 
 
 
  171  template<
class JHead_t, 
class JTail_t>
 
  195  template<
class JHead_t>
 
  240    virtual void open(
const char* file_name)
 override  
 
 
Interface for object output with named access.
 
virtual bool is_open() const =0
Check is device is open.
 
Template interface of object output for single data type.
 
void SetDirectory(TDirectory *dir)
Set directory.
 
Implementation of object output to ROOT file for single data type.
 
JRootFileWriter()
Default constructor.
 
JRootFileWriter(const char *file_name)
Constructor.
 
virtual void open(const char *file_name) override
Open file.
 
TFile * getFile() const
Get file.
 
JRootObjectOutput()
Default constructor.
 
void SetDirectory(TDirectory *dir)
Set directory.
 
virtual bool put(const T &object) override
Object output.
 
Template definition of ROOT object output.
 
virtual void open(const char *file_name) override
Open file.
 
JTreeWriter object output.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Auxiliary classes and methods for ROOT I/O.
 
bool putObject(TDirectory &dir, const TObject &object)
Write object to ROOT directory.
 
Generation of compiler error.
 
Template class test for polymorphism.
 
Auxiliary class for no type definition.