|
ATLAS Offline Software
|
Go to the documentation of this file.
18 #include "AthLinks/ElementLink.h"
32 ISvcLocator *pSvcLocator)
48 return StatusCode::SUCCESS;
70 std::vector<std::string>
names;
76 names.push_back (
r.getName(auxid));
78 std::ostringstream ost1;
79 ost1 <<
"cinfo aux items: ";
80 for (
const std::string&
n :
names)
84 std::ostringstream ost2;
86 <<
" anInt1 " << cinfo->
anInt()
87 <<
" aFloat: " << cinfo->
aFloat()
88 <<
" anInt2: " << anInt2(*cinfo)
89 <<
" dInt1: " << dInt1(*cinfo)
90 <<
" cEL: " << cEL(*cinfo).dataID()
91 <<
"[" << cEL(*cinfo).index() <<
"]";
93 ost2 <<
" dInt100: " << dInt100(*cinfo);
95 ost2 <<
" dInt150: " << dInt150(*cinfo);
97 ost2 <<
" dInt200: " << dInt200(*cinfo);
99 ost2 <<
" dInt250: " << dInt250(*cinfo);
101 ost2 <<
" anInt10: " << anInt10(*cinfo);
105 auto cnew = std::make_unique<DMTest::C>();
106 auto info_store = std::make_unique<DMTest::CInfoAuxContainer>();
107 cnew->setStore (info_store.get());
114 return StatusCode::SUCCESS;
SG::WriteHandleKey< DMTest::C > m_writeKey
static AuxTypeRegistry & instance()
Return the singleton registry instance.
Helper class to provide type-safe access to aux data.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Algorithm to test reading xAOD cinfo data.
xAODTestReadCInfo(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
An algorithm that can be simultaneously executed in multiple threads.
Handle mappings between names and auxid_t.
Class used for testing xAOD data reading/writing.
virtual StatusCode execute(const EventContext &ctx) const
Algorithm event processing.
size_t auxid_t
Identifier for a particular aux data item.
Class used for testing xAOD data reading/writing.
virtual StatusCode initialize()
Algorithm initialization; called at the beginning of the job.
::StatusCode StatusCode
StatusCode definition for legacy code.
Class used for testing xAOD data reading/writing.
SG::ReadHandleKey< DMTest::C > m_cinfoKey
const SG::auxid_set_t & getAuxIDs() const
Return a set of identifiers for existing data items for this object.
Helpers for checking error return status codes and reporting errors.
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.