11 Panic(
"Missing method: \"Action Init(QEvent& ev)\" or \"Action Init(QEventAssembler& eva)\" not implemented");
18 Panic(
"Missing method: \"void Do(QEvent& ev)\" or \"void Do(QEvent& ev, const QEventList& neigh)\" not implemented");
33 Info(
"Skip events set to false");
38 Error(
"go to previous event not supported before the event loop start");
67 if(
fSkip)
return false;
86 Error(
"Error on go to previous event: %s",
err.GetDescription().c_str());
#define Q_BEGIN_NAMESPACE
void Info(const char *descr,...) const
Send an info message (information) with printf syntax.
void Error(const char *descr,...) const
Send an error message (an error that the framework cannot recover) with printf syntax.
void Panic(const char *descr,...) const
Send a panic message (stops the framework) with printf syntax.
bool GetBool(const std::string &parname, bool defVal, bool warnCfg=true) const
Get a bool parameter from config file ( see GetDouble() )
void SetRunAgain(bool b)
Set that the sequence will be reiterated.
void SetNeedNeighbours(bool need)
set wheter this module needs neighbours
bool wrapped into a QObject
class to store ActionId and fEventNumber (in case fActionId=ACT_GOTOEV)
void End()
End method is called after event loop and calls Done()
bool fStopRun
stop run or not
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)
const QError & JumpToEvent(Long64_t event)
next iteration diana will jump to event
void HandleAction(Action action)
internal method to handle action returned by inheriting classes
bool fSkipEvents
skip filtered events
Action fLastAction
last action performed
error class with error type and description
Visitor class of QEvent that provides full handling of QEvent.
QEvent & GetEvent()
Get the QEvent.
list of references to const QEvent (s)
void Get(const char *owner, ReadHandle< Q > &handle) const
Get a QObject Handle in read mode.
unsigned int GetReadNumber() const
return the event number as read by the current reader.
void Add(WriteHandle< Q > &handle)
Add a QObject to the event.