17#include "TGo4LockGuard.h"
18#include "TGo4Thread.h"
20#include "TGo4Command.h"
23#include "TGo4AnalysisImp.h"
24#include "TGo4CommandInvoker.h"
25#include "TGo4EventErrorException.h"
26#include "TGo4EventTimeoutException.h"
27#include "TGo4EventStoreException.h"
28#include "TGo4AnalysisStepException.h"
29#include "TGo4UserException.h"
30#include "TGo4EventEndException.h"
31#include "TGo4DynamicListException.h"
59 GO4TRACE((12,
"TGo4AnalysisMainRunnable::PreRun()",__LINE__, __FILE__));
143 "Analysis %s TIMEOUT for event source %s:%s.",
151 "End of event source %s:\n %s - %s",
159 Int_t prio=ex.GetPriority();
164 "Event source %s:\n %s - %s",
171 "Analysis %s ERROR: %s from event source %s:%s",
195 "Event Store %s throws exception: %s - %s",
205 "Analysis %s ERROR: %s from dynamic list entry %s:%s",
207 ex.GetEntryName(), ex.GetEntryClass()));
217 "Analysis %s ERROR: %s in Analysis Step %s",
227 if(strlen(ex.GetMessage()) != 0)
228 fxAnalysisClient->SendStatusMessage(ex.GetPriority(),kTRUE, ex.GetMessage());
229 if(
fxAnalysis->IsErrorStopEnabled() && ex.GetPriority()>2)
234 catch(std::exception& ex)
237 "Analysis %s got standard exception %s",
TGo4Analysis * GetAnalysis() const
Int_t Run(void *) override
The working function which runs in the thread.
TGo4AnalysisMainRunnable()
Int_t PostRun(void *) override
Function which is called once after the Run()method on threadstop.
Int_t PreRun(void *) override
Function which is called once before the Run() method on threadstart.
virtual ~TGo4AnalysisMainRunnable()
static const UInt_t fguPOLLINTERVAL
frequency in ms for polling the run flag (server mode without command queue)
TGo4AnalysisClient * fxAnalysisClient
1
TGo4Analysis * fxAnalysis
1
static TGo4CommandInvoker * Instance()
virtual void Invoke(TGo4Command *com)
This is the Go4 Abstract Command Class; part of the Base command pattern.
Int_t GetCommandID() const
Exception to throw on event source timeout.
Exception to be thrown on error of event source.
Int_t Handle() override
This is a default handler function for the respective exception type.
const char * GetSourceClass() const
Name of the throwing event source.
const char * GetSourceName() const
Name of the throwing event source.
const char * GetErrMess() const
Status/ error message of the last event.
Exception to throw on event source timeout.
static Int_t GetIgnoreLevel()
Get threshold for output.
TGo4Runnable(const TGo4Runnable &right)
TGo4Thread * GetThread() const
static Int_t Get_fgiTERMID()
Bool_t Stop()
resets running flag for runnable
static void Sleep(UInt_t millisecs)
wrapper for gSystem->Sleep with consecutive TThread::CancelPoint - necessary for proper pthread termi...
Exception to be thrown by analysis user.