8 #ifndef _Q_FILEREADER_HH_
9 #define _Q_FILEREADER_HH_
35 bool Do(Diana::QEventAssembler& eva);
#define Q_BEGIN_NAMESPACE
error class with error type and description
Visitor class of QEvent that provides full handling of QEvent.
Abstract class for diana readers.
std::list< std::string >::const_iterator fFileListIter
virtual const QError & JumpToEvent(Long64_t event)
Jump to event.
void Init(QEventAssembler &eva)
Init method is called before event loop, getting the QEventAssembler as argument This method must be ...
std::string fFileListPath
file list path
virtual ~QFileReader()
destructor
virtual void Add(const std::string &fileName, QEventAssembler &eva)=0
Add objects to File, called only once in the Init phase.
void Done()
Done method is called after event loop. This method must be implemented by inheriting classes.
unsigned int GetReadNumber() const
Get read number (entry number in file being read, starting from 0)
virtual void Open(const std::string &fileName, QEventAssembler &eva)=0
Open File.
std::list< std::string > fFileList
list of files
unsigned int fFileEventNumber
last event read
QFileReader()
Mandatory constructor.
virtual bool Fill(QEventAssembler &eva)=0
Fill event, return false when file has no more events.
bool fReadFileList
read file list
bool Do(Diana::QEventAssembler &eva)
Base class for diana event readers.
Diana Reconstruction program.