32 #ifndef _MQ_READER_HH_
33 #define _MQ_READER_HH_
148 #undef REGISTER_MODULE
149 #define REGISTER_MODULE(clazz) REGISTER_MOD(clazz,Diana::QReader)
#define Q_BEGIN_NAMESPACE
error class with error type and description
Visitor class of QEvent that provides full handling of QEvent.
list of references to const QEvent (s)
Base class for diana event readers.
virtual bool Do(QEventAssembler &eva)=0
Do method is called for each event, getting the QEventAssembler as argument. This method must be impl...
unsigned int fProcessedNumber
events processed
std::map< unsigned int, std::string > fReadNumberAtFileOpen
QNeighboursFiller * fNeighboursFiller
Neighbours filler.
virtual void Done()=0
Done method is called after event loop. This method must be implemented by inheriting classes.
bool fReadFileList
read file list
QRWCommon * fRWCommon
object to share file names with QWriter
bool fNeighboursOn
Neighbours are on.
void InitFileManager()
Initialize multiple and single file management.
Long64_t fReadNumber
last event read
static std::list< std::string > fFullPathFilesList
list of files
std::vector< std::string >::const_iterator fFileListIter
Iterator on file names
bool Process(QEventAssembler &eva, QEventList &neigh, const bool exec, QEventList &oneigh)
Process method is called for each event, and calls Do()
std::string fFileListPath
file list path
static std::list< std::string > GetFilesList()
list of input files
void ReadFilesList(std::string path)
Parse the file that contain the files list.
void OpenNewFile(const std::string &fileName)
Call it when opening new file.
std::string fNextFileName
void Begin(QEventAssembler &eva)
Begin method is called before event loop, and calls Init()
virtual void Init(QEventAssembler &eva)=0
Init method is called before event loop, getting the QEventAssembler as argument This method must be ...
int fEventNumberPrintStep
print event number step
QError fErr
Error returned by methods.
bool DoBase(QEventAssembler &eva)
DoBase executes Do, and is called by QNeighboursFiller.
const int & GetFileNumber()
Get Current file number, used by QWriter (throug QSequence)
const QError & BaseJumpToEvent(Long64_t eventnumber)
Called when another module ask for a specific event number in the next Do(), calls JumpToEvent()
std::vector< std::string > fFileList
list of files
QReaderEventGeneratorFiller * fReaderEventGeneratorFiller
Event generator
virtual const QError & JumpToEvent(Long64_t eventnumber)
Called when another module ask for a specific eventnumber in the next Do(). Implementation of this me...
void NotifyOpenNewFile(const std::string &fileName)
Call it when opening new file.
virtual ~QReader()
destructor
int fFileNumber
current file number read
void End()
End method is called after event loop, and calls Done()
Diana Reconstruction program.