|
ATLAS Offline Software
|
Go to the documentation of this file.
20 #include "AthLinks/ElementLink.h"
23 #include "GaudiKernel/System.h"
43 return StatusCode::SUCCESS;
55 std::ostringstream
ost;
57 for (
const C*
c : *cvec) {
58 ost <<
c->anInt() <<
" ";
61 return StatusCode::SUCCESS;
76 std::vector<std::string>
names;
78 names.push_back (
r.getName(auxid));
80 std::ostringstream ost1;
81 ost1 <<
m_cvecKey.key() <<
" aux items: ";
82 for (
const std::string&
n :
names)
88 << System::typeinfoName (
typeid (*auxstore)));
91 for (
const C*
c : *cvec) {
92 std::ostringstream
ost;
93 ost <<
" anInt1 " <<
c->anInt()
94 <<
" aFloat: " <<
c->aFloat();
96 ost <<
" anInt2: " << anInt2(*
c);
98 ost <<
" dInt1: " << dInt1(*
c);
100 ost <<
" dVar1: " << dVar1(*
c);
102 ost <<
" dInt100: " << dInt100(*
c);
104 ost <<
" dInt150: " << dInt150(*
c);
106 ost <<
" dInt200: " << dInt200(*
c);
108 ost <<
" dInt250: " << dInt250(*
c);
110 ost <<
" anInt10: " << anInt10(*
c);
112 ost <<
" cEL: " << cEL(*c).dataID()
113 <<
"[" << cEL(*c).index() <<
"]";
120 auto vecnew = std::make_unique<CVec>();
121 auto store = std::make_unique<CAuxContainer>();
122 vecnew->setStore (
store.get());
123 for (
size_t i = 0;
i < cvec->size();
i++) {
124 vecnew->push_back (
new C);
125 *vecnew->back() = *(*cvec)[
i];
131 return StatusCode::SUCCESS;
static AuxTypeRegistry & instance()
Return the singleton registry instance.
Class used for testing xAOD data reading/writing.
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
Handle mappings between names and auxid_t.
Handle class for recording to StoreGate.
size_t auxid_t
Identifier for a particular aux data item.
Class used for testing xAOD data reading/writing.
SG::WriteHandleKey< DMTest::CVec > m_writeKey
::StatusCode StatusCode
StatusCode definition for legacy code.
Class used for testing xAOD data reading/writing.
static void hideErrorLocus(bool flag=true)
If set to true, hide the source file and line number in the output.
Helpers for checking error return status codes and reporting errors.
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
Algorithm to test reading xAOD data (CVec)
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
Handle mappings between names and auxid_t.
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
Helper class to provide constant type-safe access to aux data.
Handle class for reading from StoreGate.
Interface for const operations on an auxiliary store.
SG::ReadHandleKey< DMTest::CVec > m_cvecKey