38 info() <<
":HiveTestAlgorithm::initialize " <<
endmsg;
64 info() <<
":HiveTestAlgorithm::getting inputs... " << evt <<
endmsg;
67 auto obj =
dynamic_cast<MyObject const*
>( handle->get() );
69 fatal() <<
"Unable to dcast inputHandles object" <<
endmsg;
72 info() <<
"Got data with value " << obj->getData() <<
endmsg;
75 info() <<
":HiveTestAlgorithm::registering outputs... " << evt <<
endmsg;
77 for (
auto& outputHandle :
m_outputHandles ) { outputHandle->put( std::make_unique<MyObject>( 1000 + evt ) ); }
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
#define DECLARE_COMPONENT(type)
MsgStream & fatal() const
shortcut for the method msgStream(MSG::FATAL)
MsgStream & debug() const
shortcut for the method msgStream(MSG::DEBUG)
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
DataObjectHandle.h GaudiKernel/DataObjectHandle.h.
DataObject()
Standard Constructor.
Gaudi::Details::PropertyBase * declareProperty(const std::string &name, ToolHandle< T > &hndl, const std::string &doc="none")
const std::string & name() const override
The identifying name of the algorithm object.
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_outputHandles
virtual const std::vector< std::string > get_outputs()
virtual const std::vector< std::string > get_inputs()
Gaudi::Property< std::vector< std::string > > m_inputs
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_inputHandles
int m_total
The total events seen.
StatusCode initialize() override
StatusCode finalize() override
Gaudi::Property< std::vector< std::string > > m_outputs
StatusCode execute() override
MyObject(const MyObject &o)
static atomic< int > c_instances
static atomic< int > d_instances
This class is used for returning status codes from appropriate routines.
constexpr static const auto SUCCESS
constexpr static const auto FAILURE
GAUDI_API const EventContext & currentContext()