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;
88 assert (pos < cvec.
size());
90 links.emplace_back (key, pos);
97 return StatusCode::SUCCESS;
107 for (
size_t i = 0; i < cvec.
size(); i++) {
108 vel.emplace_back (key, i);
113 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
For testing thinning of xAOD objects.
For testing thinning of xAOD objects.
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
For testing thinning of AOD objects.
void setVel(const std::vector< ElementLink< CVec > > &vel)
void setElv(const ElementLinkVector< CVec > &elv)
void setLinks(const std::vector< ElementLink< CVec > > &l)
void setLink(const ElementLink< CVec > &l)
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
SG::WriteHandleKey< DMTest::CLinksContainer > m_clinksContainerKey
SG::WriteHandleKey< DMTest::CLinks > m_clinksKey
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
StatusCode fillCLinksAOD(const std::string &key, const CVec &cvec, CLinksAOD &clinks) const
SG::ReadHandleKey< DMTest::CVec > m_cvecKey
SG::WriteHandleKey< DMTest::CLinksAOD > m_clinksAODKey
StatusCode fillCLinks(const std::string &key, const CVec &cvec, size_t ndx, CLinks &clinks) const
size_type size() const noexcept
Returns the number of elements in the collection.
bool empty() const noexcept
Returns true if the collection is empty.
ElementLinkVector implementation for standalone ROOT.
void push_back(const ElemLink &link)
ElementLink implementation for ROOT usage.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Create CLinks/CLinksAOD objects.