29 std::cout <<
"Destructor of " <<
name() << std::endl;
42 info() <<
"Executing event " << ctx.evt() + 1 <<
endmsg;
81 if (
m_mode ==
"exception" ) {
83 }
else if (
m_mode ==
"stopRun" ) {
89 if (
auto sc = ep->stopRun(); !sc )
return sc;
102 "Number of events to let go before breaking the event loop" };
104 "Type of interruption ['exception', 'stopRun', 'failure']" };
115 error() <<
"The incident type (property Incident) must be declared." <<
endmsg;
131 info() <<
"keep processing events..." <<
endmsg;
143 "Number of events to let go before firing the incident." };
186 this,
"Paths", {},
"List of paths in the transient store to load" };
210 bool missing =
false;
216 warning() <<
"Cannot retrieve object '" << p <<
"'" <<
endmsg;
231 this,
"Paths", {},
"List of paths in the transient store to load" };
234 "if True, missing objects will not beconsidered an error" };
256 using OddEventsFilter::OddEventsFilter;
273 for (
auto& tool :
toolSvc()->getTools() ) {
info() <<
" " << tool->name() <<
endmsg; }
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
#define DECLARE_COMPONENT(type)
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
MsgStream & warning() const
shortcut for the method msgStream(MSG::WARNING)
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
A DataObject is the base class of any identifiable object on any data store.
This class represents an entry point to all the event specific data.
Base class from which all concrete algorithm classes should be derived.
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
StatusCode initialize() override
the default (empty) implementation of IStateful::initialize() method
StatusCode finalize() override
the default (empty) implementation of IStateful::finalize() method
SmartIF< ISvcLocator > & serviceLocator() const override
The standard service locator.
const std::string & name() const override
The identifying name of the algorithm object.
SmartIF< IService > service(std::string_view name, const bool createIf=true, const bool quiet=false) const
Return a pointer to the service identified by name (or "type/name")
SmartIF< IToolSvc > & toolSvc() const
The standard ToolSvc service, Return a pointer to the service if present.
Implementation of property with value of concrete type.
void setFilterPassed(bool state) const
Set the filter passed flag to the specified state.
Define general base for Gaudi exception.
SmartIF< IIncidentSvc > m_incidentSvc
Incident service.
StatusCode finalize() override
StatusCode execute() override
StatusCode initialize() override
Gaudi::Property< int > m_eventCount
Gaudi::Property< std::string > m_incident
StatusCode execute() override
~DestructorCheckAlg() override
StatusCode execute() override
Simple algorithm that retrieves objects from the transient store.
Gaudi::Property< std::vector< std::string > > m_paths
StatusCode finalize() override
Gaudi::Property< std::string > m_dataSvc
SmartIF< IDataProviderSvc > m_dataProvider
StatusCode execute() override
StatusCode initialize() override
Gaudi::Property< bool > m_ignoreMissing
StatusCode execute() override
StatusCode initialize() override
Simple algorithm that prints the memory usage every N events (property "Frequency").
StatusCode initialize() override
StatusCode execute() override
StatusCode finalize() override
Gaudi::Property< int > m_frequency
Simple algorithm that creates dummy objects in the transient store.
Gaudi::Property< std::string > m_dataSvc
StatusCode initialize() override
StatusCode finalize() override
StatusCode execute() override
Gaudi::Property< std::vector< std::string > > m_paths
SmartIF< IDataProviderSvc > m_dataProvider
Simple algorithm that raise a signal after N events.
StatusCode execute() override
Gaudi::Property< int > m_signal
Gaudi::Property< int > m_eventCount
Gaudi::Property< int > m_sleep
StatusCode execute(EventContext const &ctx) const override
Gaudi::Property< std::string > m_mode
StatusCode execute() override
Gaudi::Property< int > m_eventCount
The IEventProcessor is the interface to process events.
Base class for all Incidents (computing events).
Small smart pointer class with automatic reference counting for IInterface.
This class is used for returning status codes from appropriate routines.
constexpr static const auto SUCCESS
constexpr static const auto FAILURE
GAUDI_API void Sleep(int sec)
Simple sleep function.
GAUDI_API long mappedMemory(MemoryUnit unit=kByte, InfoType fetch=Memory, long pid=-1)
Basic Process Information: priority boost.
GAUDI_API const std::vector< std::string > cmdLineArgs()
Command line arguments including executable name as arg[0] as vector of strings.
GAUDI_API long virtualMemory(MemoryUnit unit=kByte, InfoType fetch=Memory, long pid=-1)
Basic Process Information: priority boost.