17#include "Gaudi/Property.h"
33 ISvcLocator* pSvcLocator ) :
43 "Output location of 'Data' objects" );
47 "Number of 'Data' objects to be stored each event" );
63 msg().setLevel( msgLevel() );
67 return StatusCode::SUCCESS;
73 return StatusCode::SUCCESS;
89 for ( std::size_t iObj = 0; iObj !=
m_nObjs; ++iObj ) {
90 std::ostringstream outName;
94 if ( !
evtStore()->retrieve( dv, outName.str() ).isSuccess() ) {
100 if (
data->m_data.empty() ) {
106 return allGood ? StatusCode::SUCCESS : StatusCode::FAILURE;
char data[hepevt_bytes_allocation_ATLAS]
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
StatusCode readData()
Retrieve data.
std::size_t m_nObjs
Number of payload objects.
SgStressConsumer()
Default constructor:
virtual StatusCode execute()
std::string m_dataName
Name of the input data.
virtual ~SgStressConsumer()
Destructor:
virtual StatusCode initialize()
virtual StatusCode finalize()
is a very simple class to exercize the basic features of the StoreGateSvc class: publishing and retri...