6 #define ON_DEBUG if ( msgLevel( MSG::DEBUG ) ) 7 #define DEBUG_MSG ON_DEBUG debug() 9 #define ON_VERBOSE if ( msgLevel( MSG::VERBOSE ) ) 10 #define VERBOSE_MSG ON_VERBOSE verbose() 60 fatal() <<
"Unable to load AvalancheSchedulerSvc" <<
endmsg;
68 info() <<
"Running in whole event context" <<
endmsg;
76 for (
unsigned int viewIndex = 0; viewIndex <
m_viewNumber; ++viewIndex ) {
78 auto viewContext = std::make_unique<EventContext>(
context.evt(),
context.slot() );
86 error() <<
"Unable to attach view " << viewName <<
" to node " <<
m_viewNodeName.toString() <<
" for " 97 if ( !outputHandle->isValid() )
continue;
100 outputHandle->put(
std::move( std::make_unique<DataObject>() ) );
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_outputHandles
constexpr static const auto FAILURE
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
void setFilterPassed(bool state) const override
Set the filter passed flag to the specified state.
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
StatusCode initialize() override
standard initialization method
StatusCode initialize() override
Its initialization.
StatusCode finalize() override
the finalization of the algorithm
const std::string & context() const
Returns the "context" string. Used to identify different processing states.
Gaudi::Property< std::string > m_baseViewName
virtual StatusCode scheduleEventView(const EventContext *sourceContext, const std::string &nodeName, std::unique_ptr< EventContext > viewContext)=0
Method to inform the scheduler about event views.
#define DECLARE_COMPONENT(type)
Gaudi::Property< std::string > m_viewNodeName
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
Gaudi::Property< std::vector< std::string > > m_inpKeys
This class is used for returning status codes from appropriate routines.
StatusCode finalize() override
standard finalization method
const EventContext & getContext() const override
get the context
The useful base class for data processing algorithms.
Gaudi::Property< std::vector< std::string > > m_outKeys
StatusCode execute() override
the execution of the algorithm
SmartIF< ISvcLocator > & serviceLocator() const override
The standard service locator.
constexpr static const auto SUCCESS
ViewTester()
the default constructor is disabled
Gaudi::Details::PropertyBase * declareProperty(const std::string &name, ToolHandle< T > &hndl, const std::string &doc="none")
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_inputHandles
StatusCode service(const std::string &name, T *&psvc, bool createIf=true) const
Access a service by name, creating it if it doesn't already exist.
MsgStream & fatal() const
shortcut for the method msgStream(MSG::FATAL)
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Gaudi::Property< unsigned int > m_viewNumber