60 "Views to be named this, plus a numerical index" };
69#define ON_DEBUG if ( msgLevel( MSG::DEBUG ) )
70#define DEBUG_MSG ON_DEBUG debug()
72#define ON_VERBOSE if ( msgLevel( MSG::VERBOSE ) )
73#define VERBOSE_MSG ON_VERBOSE verbose()
119 fatal() <<
"Unable to load AvalancheSchedulerSvc" <<
endmsg;
126 if ( !context.hasExtension<std::string>() )
127 info() <<
"Running in whole event context" <<
endmsg;
129 info() <<
"Running in view " << context.getExtension<std::string>() <<
endmsg;
135 for (
unsigned int viewIndex = 0; viewIndex <
m_viewNumber; ++viewIndex ) {
137 auto viewContext = std::make_unique<EventContext>( context.evt(), context.slot() );
138 const std::string& viewName = viewContext->setExtension(
m_baseViewName + std::to_string( viewIndex ) );
150 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)
constexpr _OI move(_II __first, _II __last, _OI __result)
constexpr const_reference back() const noexcept
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").
Implementation of property with value of concrete type.
const ValueType & value() const
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
ViewTester(const ViewTester &)
the copy constructor is disabled
Gaudi::Property< unsigned int > m_viewNumber
bool isClonable() const override
Gaudi::Property< std::vector< std::string > > m_outKeys
ViewTester()
the default constructor is disabled
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_inputHandles
ViewTester(const std::string &name, ISvcLocator *pSvc)
StatusCode initialize() override
Its initialization.
ViewTester & operator=(const ViewTester &)
the assignement operator is disabled
StatusCode execute() override
the execution of the algorithm