20#include "AthLinks/ElementLink.h"
45 return StatusCode::SUCCESS;
60 if (testobj->val() != 10) std::abort();
63 std::vector<SG::ReadHandle<MyDataObj> > vh =
m_dobjKeyArray.makeHandles (ctx);
64 for (
size_t i = 0; i < vh.size(); i++) {
65 assert (vh[i]->val() ==
static_cast<int> (100+i));
81 float time = obj->time();
91 for (
unsigned int it=0; it<pVec->size(); it++) {
100 return StatusCode::FAILURE;
112 for (
const VecElemLink& l : *pList) {
119 for (
const MapElemLink& l : *vectorHandle) {
121 (
"VectorMapLinks::linked element: key " << l.index()
122 <<
" - value " << (*l)
123 <<
" - stored as " << l);
126 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
std::vector< Identifier > ID
Helpers for checking error return status codes and reporting errors.
An STL vector of pointers that by default owns its pointed-to elements.
Testing reentrant algorithms.
A standard conforming forward iterator over items in StoreGate.
Handle class for reading from StoreGate.
ElementLink implementation for ROOT usage.
SG::ReadHandleKey< std::vector< ElementLink< MapStringFloat > > > m_linkVectorKey
SG::ReadHandleKey< std::vector< float > > m_vFloatKey
SG::ReadHandleKey< std::list< ElementLink< std::vector< float > > > > m_pLinkListKey
SG::ReadHandleKey< DataVector< MyContObj > > m_cobjKey
virtual StatusCode execute(const EventContext &ctx) const override final
SG::ReadHandleKeyArray< MyDataObj > m_dobjKeyArray
virtual StatusCode initialize() override final
SG::ReadHandleKey< MyDataObj > m_nonexistingKey
SG::ReadHandleKey< TestDataObject > m_testObjectKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
virtual bool isValid() override final
Can the handle be successfully dereferenced?
static void hideErrorLocus(bool flag=true)
If set to true, hide the source file and line number in the output.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())