1 #ifndef __JROOTFILEREADER__
2 #define __JROOTFILEREADER__
24 namespace JPP {
using namespace JROOT; }
45 file->GetObject(key, ps);
119 virtual void open(
const char* file_name)
override
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)
override
241 if (this->
get() != NULL) {
242 actionAtFileOpen<T>(this->
get()->GetCurrentFile());
virtual skip_type skip(const skip_type ns) override
Skip items.
TObject * getObject(const JRootObjectID &id)
Get first TObject with given identifier.
Interface for object iteration with rewinding.
then set_variable PMT_FILE set_variable DAQ_FILE set_variable OUTPUT_FILE set_variable DETECTOR else fatal Wrong number of arguments fi set_variable RUNBYRUN file
virtual const pointer_type & next() override
Get next element.
JRootFileReader()
Default constructor.
unsigned int skip_type
Type definition for number of objects to skip.
then echo Enter input within $TIMEOUT_S seconds echo n User name
JRootFileReader(const char *file_name, const char *key=getName(JType< T >()))
Constructor.
virtual void open(const char *file_name) override
Open file.
virtual bool hasNext() override
Check availability of next element.
Auxiliary class for a type holder.
T * open(const std::string &file_name)
Open file.
std::ostream & rewind(std::ostream &out)
Rewind character.
TFile * getFile(const std::string &file_name, const std::string &option="exist")
Get TFile pointer corresponding to give file name.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
Data type dependent action methods for customised ROOT version management.
virtual void rewind() override
Rewind.
virtual void open(const char *file_name) override
Open file.
Interface for object iteration with named access.
const char * getName()
Get ROOT name of given data type.
JTemplateTreeReader object iterator.
virtual void open(const char *file_name) override
Open file.
JAccessibleObjectIterator< T >::pointer_type pointer_type
virtual void reset() override
Reset pointer.
Short_t getCycle() const
Get cycle number of last read object.