|
ATLAS Offline Software
|
Go to the documentation of this file.
17 #include "Gaudi/Property.h"
38 ISvcLocator* pSvcLocator ) :
48 "Output location of 'Data' objects" );
52 "Number of 'Data' objects to be stored each event" );
56 "Size of each 'Data' objects to be stored each event" );
60 "Switch to use or not an arena (memory pool) to allocate "
76 msg().setLevel( msgLevel() );
79 return StatusCode::SUCCESS;
85 return StatusCode::SUCCESS;
94 return StatusCode::FAILURE;
97 return StatusCode::SUCCESS;
114 for ( std::size_t iObj = 0; iObj !=
m_nObjs; ++iObj ) {
135 if ( !
evtStore()->setConst(
dv).isSuccess() ) {
141 for ( std::size_t
i = 0;
i !=
static_cast<std::size_t
>(
m_dataSize); ++
i ) {
142 data->m_data.push_back(
i );
146 return allGood ? StatusCode::SUCCESS : StatusCode::FAILURE;
virtual StatusCode finalize()
char data[hepevt_bytes_allocation_ATLAS]
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StatusCode createData()
Create data.
virtual StatusCode execute()
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
@ OWN_ELEMENTS
this data object owns its elements
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode initialize()
SgStressProducer()
Default constructor:
bool allGood
Loop over the SDOs & Digits.
std::size_t m_nObjs
Number of payload objects.
std::size_t m_dataSize
Size of the payload objects.
DataPool< SgTests::PayLoad > PayLoadPool_t
virtual ~SgStressProducer()
Destructor:
#define ATH_MSG_WARNING(x)
std::string m_dataName
Name of the input data.
a typed memory pool that saves time spent allocation small object. This is typically used by containe...
bool m_useDataPool
switch to use or not an arena (memory pool) to allocate payload