3 #include "GaudiKernel/Algorithm.h"
4 #include "GaudiKernel/IMessageSvc.h"
5 #include "GaudiKernel/IProperty.h"
6 #include "GaudiKernel/ContextSpecificPtr.h"
21 bool eventfailed=
false;
43 log <<
MSG::FATAL <<
".executeEvent(): Exception with tag=" << Exception.
tag()
46 }
catch (
const std::exception& Exception ) {
47 log <<
MSG::FATAL <<
".executeEvent(): Standard std::exception thrown by "
51 log <<
MSG::FATAL <<
".executeEvent(): UNKNOWN Exception thrown by "
58 eventContext->
setFail(eventfailed);
Definition of the MsgStream class used to transmit messages.
Define general base for Gaudi exception.
Helper class to set the application return code in case of early exit (e.g.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
bool isSuccess() const
Test for a status code of SUCCESS.
SmartIF< ISvcLocator > m_serviceLocator
SmartIF< IAlgorithm > m_algorithm
virtual tbb::task * execute()
This class represents an entry point to all the event specific data.
GAUDI_API void setCurrentContextId(ContextIdType newId)
Used by the framework to change the value of the current context id.
StatusCode promoteToExecuted(unsigned int iAlgo, int si, IAlgorithm *algo)
The call to this method is triggered only from within the AlgoExecutionTask.
virtual StatusCode sysExecute()=0
System execution. This method invokes the execute() method of a concrete algorithm.
constexpr int UnhandledException
TYPE * get() const
Get interface pointer.
SmartIF< ForwardSchedulerSvc > m_schedSvc
const unsigned int m_algoIndex
This class is used for returning status codes from appropriate routines.
void setFail(const bool &b=true)
virtual const std::string & tag() const
name tag for the exception, or exception type
tbb::concurrent_bounded_queue< action > m_actionsQueue
Queue where closures are stored and picked for execution.
Base class from which all concrete algorithm classes should be derived.
GAUDI_API void setCurrentContextEvt(long int evtN)
EventContext * getContext()
get the context