Go to the documentation of this file.    1 #ifndef __JROOTFILEREADER__ 
    2 #define __JROOTFILEREADER__ 
   24 namespace JPP { 
using namespace JROOT; }
 
   42   inline void getObject(TFile* file, 
const char* key, T*& ps)
 
   45       file->GetObject(key, ps);
 
  119     virtual void open(
const char* file_name)
 
  123       actionAtFileOpen<T>(this->
getFile());
 
  138         if (cycleOld != cycleNew) {
 
  150           actionAtFileRead<T>(__p);
 
  153         return (cycleOld == cycleNew && __p != NULL);
 
  195         cycleNew += (Short_t) ns;
 
  197         cycleNew  = numeric_limits<Short_t>::max();
 
  199       return cycleNew - cycleOld;
 
  237     virtual void open(
const char* file_name)
 
  241       if (this->
get() != NULL) {
 
  242         actionAtFileOpen<T>(this->
get()->GetCurrentFile());
 
 
Short_t getCycle() const
Get cycle number of last read object.
 
unsigned int skip_type
Type definition for number of objects to skip.
 
JAccessibleObjectIterator< T >::pointer_type pointer_type
 
Auxiliary class for a type holder.
 
Auxiliary classes and methods for ROOT I/O.
 
JRootFileReader(const char *file_name, const char *key=getName(JType< T >()))
Constructor.
 
std::ostream & rewind(std::ostream &out)
Rewind character.
 
virtual const pointer_type & next()
Get next element.
 
JRootFileReader()
Default constructor.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
virtual bool hasNext()
Check availability of next element.
 
Interface for object iteration with named access.
 
virtual void open(const char *file_name)
Open file.
 
virtual void reset()
Reset pointer.
 
virtual void open(const char *file_name)
Open file.
 
T * open(const std::string &file_name)
Open file.
 
Interface for object iteration with rewinding.
 
virtual skip_type skip(const skip_type ns)
Skip items.
 
TFile * getFile(const std::string &file_name, const std::string &option="exist")
Get TFile pointer.
 
void getObject(TFile *file, const char *key, T *&ps)
Read object from ROOT file.
 
virtual void rewind()
Rewind.
 
const char * getName()
Get ROOT name of given data type.
 
JTemplateTreeReader object iterator.
 
virtual void open(const char *file_name)
Open file.
 
T get(const JHead &header)
Get object from header.