20#include "AthLinks/ElementLink.h"
23#include "GaudiKernel/System.h"
45 return StatusCode::SUCCESS;
57 std::ostringstream ost;
59 for (
const C* c : *cvec) {
60 ost << c->anInt() <<
" ";
63 return StatusCode::SUCCESS;
81 std::vector<std::string> names;
83 names.push_back (
r.getName(auxid));
85 std::ostringstream ost1;
86 ost1 <<
m_cvecKey.key() <<
" aux items: ";
87 for (
const std::string& n : names)
93 << System::typeinfoName (
typeid (*auxstore)));
96 for (
const C* c : *cvec) {
97 std::ostringstream ost;
98 ost <<
" anInt1 " << c->anInt()
99 <<
" aFloat: " << c->aFloat();
101 ost <<
" anInt2: " << anInt2(*c);
103 ost <<
" dInt1: " << dInt1(*c);
106 ost <<
" dVar1: " << dVar1SE(*c);
110 ost <<
" dVar1: " << dVar1NoSE(*c);
113 ost <<
" dInt100: " << dInt100(*c);
115 ost <<
" dInt150: " << dInt150(*c);
117 ost <<
" dInt200: " << dInt200(*c);
119 ost <<
" dInt250: " << dInt250(*c);
121 ost <<
" anInt10: " << anInt10(*c);
123 ost <<
" cEL: " << cEL(*c).dataID()
124 <<
"[" << cEL(*c).index() <<
"]";
131 auto vecnew = std::make_unique<CVec>();
132 auto store = std::make_unique<CAuxContainer>();
133 vecnew->setStore (store.get());
134 for (
size_t i = 0; i < cvec->size(); i++) {
135 vecnew->push_back (
new C);
136 *vecnew->back() = *(*cvec)[i];
142 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Handle mappings between names and auxid_t.
Class used for testing xAOD data reading/writing.
Class used for testing xAOD data reading/writing.
Class used for testing xAOD data reading/writing.
Helper class to provide constant type-safe access to aux data.
Helpers for checking error return status codes and reporting errors.
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
BooleanProperty m_testDecorSE
SG::ReadHandleKey< DMTest::CVec > m_cvecKey
SG::WriteHandleKey< DMTest::CVec > m_writeKey
Handle mappings between names and auxid_t.
static AuxTypeRegistry & instance()
Return the singleton registry instance.
Helper class to provide constant type-safe access to aux data.
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
Interface for const operations on an auxiliary store.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
static void hideErrorLocus(bool flag=true)
If set to true, hide the source file and line number in the output.
size_t auxid_t
Identifier for a particular aux data item.
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.
Algorithm to test reading xAOD data (CVec)