|
ATLAS Offline Software
|
Go to the documentation of this file.
34 return StatusCode::SUCCESS;
46 auto clinks = std::make_unique<CLinks>();
47 auto clinksaux = std::make_unique<CLinksAuxInfo>();
48 clinks->setStore (clinksaux.get());
51 ATH_CHECK( clinksH.
record (std::move (clinks), std::move (clinksaux)) );
55 auto clinkscont = std::make_unique<CLinksContainer>();
56 auto clinkscontaux = std::make_unique<CLinksAuxContainer>();
57 clinkscont->setStore (clinkscontaux.get());
58 for (
size_t i = 0;
i < 5;
i++) {
59 clinkscont->push_back (std::make_unique<CLinks>());
64 std::move (clinkscontaux)) );
68 auto clinksaod = std::make_unique<CLinksAOD>();
74 return StatusCode::SUCCESS;
86 std::vector<EL>
links;
97 return StatusCode::SUCCESS;
107 for (
size_t i = 0;
i < cvec.
size();
i++) {
108 vel.emplace_back (
key,
i);
113 return StatusCode::SUCCESS;
SG::WriteHandleKey< DMTest::CLinksContainer > m_clinksContainerKey
void setLinks(const std::vector< ElementLink< CVec > > &l)
StatusCode fillCLinks(const std::string &key, const CVec &cvec, size_t ndx, CLinks &clinks) const
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
void setElv(const ElementLinkVector< CVec > &elv)
ElementLinkVector implementation for standalone ROOT.
void setVel(const std::vector< ElementLink< CVec > > &vel)
bool empty() const
Test if the key is blank.
Handle class for recording to StoreGate.
SG::WriteHandleKey< DMTest::CLinksAOD > m_clinksAODKey
For testing thinning of xAOD objects.
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::WriteHandleKey< DMTest::CLinks > m_clinksKey
This module defines the arguments passed from the BATCH driver to the BATCH worker.
void setLink(const ElementLink< CVec > &l)
For testing thinning of AOD objects.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Create CLinks/CLinksAOD objects.
void push_back(const ElemLink &link)
ElementLink implementation for ROOT usage.
SG::ReadHandleKey< DMTest::CVec > m_cvecKey
For testing thinning of xAOD objects.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
StatusCode fillCLinksAOD(const std::string &key, const CVec &cvec, CLinksAOD &clinks) const
For testing thinning of xAOD objects.
Handle class for reading from StoreGate.
size_type size() const noexcept
Returns the number of elements in the collection.
bool empty() const noexcept
Returns true if the collection is empty.