|
ATLAS Offline Software
|
Go to the documentation of this file.
17 #include "AthLinks/ElementLink.h"
29 ISvcLocator *pSvcLocator)
48 return StatusCode::SUCCESS;
62 auto cinfo = std::make_unique<DMTest::C>();
63 auto info_store = std::make_unique<DMTest::CInfoAuxContainer>();
64 cinfo->setStore (info_store.get());
74 cEL(*cinfo).toIndexedElement (*cvec,
count % cvec->
size());
78 std::unique_ptr<const DMTest::C> cinfo_c (std::move (cinfo));
79 std::unique_ptr<const DMTest::CInfoAuxContainer> info_store_c (std::move (info_store));
80 if (cinfoH.
put (std::move(cinfo_c), std::move(info_store_c)) ==
nullptr) {
82 return StatusCode::FAILURE;
85 return StatusCode::SUCCESS;
94 return StatusCode::SUCCESS;
uint64_t eventNumber() const
The current event's event number.
Helper class to provide type-safe access to aux data.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
SG::WriteHandleKey< DMTest::C > m_cinfoKey
xAODTestWriteCInfo(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
virtual StatusCode finalize() override
Algorithm finalization; called at the end of the job.
An algorithm that can be simultaneously executed in multiple threads.
Class used for testing xAOD data reading/writing.
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
::StatusCode StatusCode
StatusCode definition for legacy code.
Class used for testing xAOD data reading/writing.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Algorithm to test writing xAOD classes with auxiliary data (cinfo).
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
SG::ReadHandleKey< DMTest::CVec > m_cvecKey
const_pointer_type put(std::unique_ptr< T > data, bool returnExisting=false) const
Record an object to the store.
size_type size() const noexcept
Returns the number of elements in the collection.
bool empty() const noexcept
Returns true if the collection is empty.