|
ATLAS Offline Software
|
Go to the documentation of this file.
17 #include "AthLinks/ElementLink.h"
30 const std::string&
name,
49 return StatusCode::SUCCESS;
58 unsigned int count = ctx.eventID().event_number() + 1;
62 auto cinfo = std::make_unique<DMTest::C>();
63 auto info_store = std::make_unique<DMTest::CInfoAuxContainer>();
64 cinfo->setStore (info_store.get());
69 cinfo->setAnInt (
count * 1000);
70 cinfo->setAFloat ((
float)
count * 0.1);
71 anInt2(*cinfo) =
count * 2000;
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;
Helper class to provide type-safe access to aux data.
Class used for testing xAOD data reading/writing.
::StatusCode StatusCode
StatusCode definition for legacy code.
Class used for testing xAOD data reading/writing.
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.