1 #ifndef __JROOT__JTREEREADER__
2 #define __JROOT__JTREEREADER__
4 #pragma GCC diagnostic push
5 #pragma GCC diagnostic ignored "-Wall"
8 #include "TDictionary.h"
9 #pragma GCC diagnostic pop
22 namespace JPP {
using namespace JROOT; }
41 virtual bool load(TFile* file) = 0;
83 virtual bool load(TFile* file)
override
89 this->
set(
dynamic_cast<TTree*
>(file->Get(this->getTreeName())));
110 return TDictionary::GetDictionary(T::Class_Name());
bool is_valid() const
Check validity of pointer.
Template implementation of class that holds pointer to object(s).
virtual JClass_t * get() const override
Get pointer.
virtual void set(JClass_t *p) override
Set pointer.
Class responsible to setup TTree branch addresses for reading objects of type T.
void setBranchAddress(TTree &tree)
Data structure for TTree parameters.
Auxiliary class for template TTree reading.
virtual const TDictionary * getDictionary() override
Get ROOT dictionary.
JTreeReader(const JTreeParameters ¶meters=JROOT::getTreeParameters< T >())
Constructor.
virtual bool load(TFile *file) override
Load TTree from given file.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for ROOT I/O.
Interface for TTree reading.
virtual const TDictionary * getDictionary()=0
Get ROOT dictionary.
virtual bool load(TFile *file)=0
Load TTree from given file.
void release()
Release memory.