16#define ON_DEBUG if ( msgLevel( MSG::DEBUG ) )
17#define DEBUG_MSG ON_DEBUG debug()
19#define ON_VERBOSE if ( msgLevel( MSG::VERBOSE ) )
20#define VERBOSE_MSG ON_VERBOSE verbose()
66 fatal() <<
"Unable to load AvalancheSchedulerSvc" <<
endmsg;
73 if ( !context.hasExtension<std::string>() )
74 info() <<
"Running in whole event context" <<
endmsg;
76 info() <<
"Running in view " << context.getExtension<std::string>() <<
endmsg;
79 if ( !
m_viewNodeName.empty() && !context.hasExtension<std::string>() ) {
82 for (
unsigned int viewIndex = 0; viewIndex <
m_viewNumber; ++viewIndex ) {
84 auto viewContext = std::make_unique<EventContext>( context.evt(), context.slot() );
85 const std::string& viewName = viewContext->setExtension(
m_baseViewName + std::to_string( viewIndex ) );
89 info() <<
"Attached view " << viewName <<
" to node " <<
m_viewNodeName.value() <<
" for " << context
92 error() <<
"Unable to attach view " << viewName <<
" to node " <<
m_viewNodeName.value() <<
" for " << context
97 scheduler->scheduleEventView( &context,
m_viewNodeName,
nullptr ).ignore();
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 & fatal() const
shortcut for the method msgStream(MSG::FATAL)
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
DataObjectHandle.h GaudiKernel/DataObjectHandle.h.
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Gaudi::Details::PropertyBase * declareProperty(const std::string &name, ToolHandle< T > &hndl, const std::string &doc="none")
StatusCode initialize() override
the default (empty) implementation of IStateful::initialize() 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")
void setFilterPassed(bool state) const
Set the filter passed flag to the specified state.
const EventContext & getContext() const
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
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::Property< std::string > m_viewNodeName
Gaudi::Property< std::vector< std::string > > m_inpKeys
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_outputHandles
Gaudi::Property< std::string > m_baseViewName
Gaudi::Property< unsigned int > m_viewNumber
Gaudi::Property< std::vector< std::string > > m_outKeys
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_inputHandles
ViewTester(const std::string &name, ISvcLocator *pSvc)
StatusCode initialize() override
Its initialization.
StatusCode execute() override
the execution of the algorithm