Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.
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
StatusCode initialize() override
Its initialization.
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")
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_inputHandles
Gaudi::Property< std::vector< std::string > > m_inpKeys
void setFilterPassed(bool state) const
Set the filter passed flag to the specified state.
StatusCode initialize() override
the default (empty) implementation of IStateful::initialize() method
Alias for backward compatibility.
Gaudi::Details::PropertyBase * declareProperty(const std::string &name, ToolHandle< T > &hndl, const std::string &doc="none")
SmartIF< ISvcLocator > & serviceLocator() const override
The standard service locator.
const EventContext & getContext() const
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_outputHandles
const ValueType & value() const
Gaudi::Property< std::vector< std::string > > m_outKeys
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Gaudi::Property< std::string > m_baseViewName
Gaudi::Property< unsigned int > m_viewNumber
Gaudi::Property< std::string > m_viewNodeName
StatusCode execute() override
the execution of the algorithm
constexpr static const auto SUCCESS
#define DECLARE_COMPONENT(type)
constexpr static const auto FAILURE
ViewTester()
the default constructor is disabled