1 #ifndef __JROOT__JTREEREADEROBJECTITERATOR__
2 #define __JROOT__JTREEREADEROBJECTITERATOR__
15 namespace JPP {
using namespace JROOT; }
65 return counter < this->
get()->GetEntries();
82 this->
get()->GetEvent(
counter++);
154 const TFile* file = this->
get()->GetCurrentFile();
156 return (file != NULL && file->IsOpen());
168 virtual void open(
const char* file_name)
170 this->
load(TFile::Open(file_name));
182 const TFile* file = this->
get()->GetCurrentFile();
JTreeReader object iterator.
virtual void open(const char *file_name)
Open file.
Interface for object iteration with rewinding.
JTreeReaderObjectIterator()
Default constructor.
unsigned int skip_type
Type definition for number of objects to skip.
virtual skip_type skip(const skip_type ns)
Skip items.
Long64_t counter_type
Type definition for counter.
TTree reading for template data type.
bool is_valid() const
Check validity of pointer.
const JTreeParameters & getTreeParameters() const
Get TTree parameters.
virtual void reset()
Reset pointer.
JTreeReaderAccessibleObjectIterator()
Default constructor.
counter_type getCounter() const
Get internal counter.
counter_type advance(counter_type &counter, const counter_type value, const counter_type limit=std::numeric_limits< counter_type >::max())
Advance counter.
Auxiliary class for template TTree reading.
Interface for object iteration with named access.
JRewindableObjectIterator< T >::pointer_type pointer_type
T * getAddress() const
Get address.
virtual bool hasNext()
Check availability of next element.
Type definition for counter for ROOT TTree and auxiliary methods.
virtual bool is_open() const
Check is file is open.
virtual void close()
Close file.
JTemplateTreeReader object iterator.
virtual const pointer_type & next()
Get next element.
virtual bool load(TFile *file)
Load TTree from given file.
virtual void rewind()
Rewind.