132 #undef REGISTER_MODULE
133 #define REGISTER_MODULE(clazz) REGISTER_MOD(clazz,Diana::QDriver)
#define Q_BEGIN_NAMESPACE
const std::string & GetName() const
Get Module name.
class to store ActionId and fEventNumber (in case fActionId=ACT_GOTOEV)
Base class for diana drivers.
void End()
End method is called after event loop and calls Done()
void SetModulesList(const std::vector< QBaseModule * > &modList)
method used by QSequence to set the list of modules in the QSequence
bool fStopRun
stop run or not
QSequence & GetSequence() const
get non-const reference to this sequence
std::map< std::string, QVdt * > GetModuleParameters(const std::string &name, int occ)
get list of parameters for a given QBaseModule with name name and occurrence occ
virtual Action Done()=0
Done method is called after event loop.
void Begin(QEventAssembler &eva)
Begin method is called before event loop, and calls Init()
virtual Action Do(QEventAssembler &eva)
Do method is called for each event, getting the QEventAssembler as argument.
virtual Action Init(QEventAssembler &eva)
Init method is called before event loop.
bool Process(QEventAssembler &eva, QEventList &neigh, const bool exec, QEventList &oneigh)
Process method is called for each event, getting the QEventAssembler as argument and calls Do()
int fCurrentEventNumber
current event number to make ACT_PREV use JumpToEvent(fCurrentEventNumber-1)
bool StopRun()
method used by QSequence to check if the run should be stopped
const QError & JumpToEvent(Long64_t event)
next iteration diana will jump to event
std::vector< QBaseModule * > fModules
list of current modules
void HandleAction(Action action)
internal method to handle action returned by inheriting classes
bool fSkipEvents
skip filtered events
ActionId
actions that the driver can perform
const std::vector< QBaseModule * > & GetModulesList() const
get const list of QBaseModule (s) in the QSequence
Action fLastAction
last action performed
error class with error type and description
Visitor class of QEvent that provides full handling of QEvent.
list of references to const QEvent (s)
std::map< std::string, QVdt * > GetModuleParameters(const std::string &seq, const std::string &mod, size_t occ)
static QOptions & GetInstance()
Diana Reconstruction program.
const QError & JumpToEvent(Long64_t event, QBaseModule *caller)
Jump to an event in a particular in a module.