30#include "GaudiKernel/MsgStream.h"
63 return StatusCode::SUCCESS;
66 const VEC*
vec =
nullptr;
68 std::ostringstream ost;
70 for (
unsigned i=0; i <
vec->size(); i++)
71 std::print (ost,
"{} ", (*
vec)[i]->m_x);
74 return StatusCode::SUCCESS;
82 std::vector<ElementLink<BVec> > el =
vec->m_el;
83 std::ostringstream ost;
84 std::print (ost,
"{}: ", key);
85 for (
size_t i = 0; i < el.size(); i++) {
88 std::print (ost,
"{} ", b->m_x);
91 return StatusCode::SUCCESS;
101 std::vector<ElementLink<BVec> > el2;
102 el2.resize (
vec->m_el2_p.size());
103 for (
size_t i=0; i <
vec->m_el2_p.size(); i++)
106 std::ostringstream ost1;
107 std::print (ost1,
"elv_remap: ");
108 for (
size_t i = 0; i < el2.size(); i++) {
110 std::print (ost1,
"{} ", b->m_x);
118 std::ostringstream ost2;
119 std::print (ost2,
"elv_remap v2: ");
120 for (
size_t i = 0; i < elv2.
size(); i++) {
122 std::print (ost2,
"{} ", b->m_x);
127 std::vector<DataLink<BVec> > dl2;
128 dl2.resize (
vec->m_dl2_p.size());
129 for (
size_t i=0; i <
vec->m_dl2_p.size(); i++)
132 const BVec* b3 =
nullptr;
134 assert (dl2[0].
cptr() == b3);
135 assert (dl2[1].
cptr() == b3);
137 return StatusCode::SUCCESS;
162 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
ElementConstPointer cptr() const
Return a pointer to the referenced element.
#define ATH_MSG_INFO(x,...)
std::vector< size_t > vec
Helpers for checking error return status codes and reporting errors.
This file contains the class definition for the DataLinkCnv_p1 class and DataLinkVectorCnv_p1 class.
Class used for testing the new DataVector inheritance scheme.
Class used for testing the new DataVector inheritance scheme.
Class used for testing the new DataVector inheritance scheme.
Class used for testing new ElementLink.
This file contains the class definition for the ElementLinkCnv_p3 class.
This file contains the class definition for the ElementLinkVectorCnv_p1 class.
Define macros for attributes used to control the static checker.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
ServiceHandle< StoreGateSvc > & evtStore()
static std::string name()
Return the name of class T as a string.
StatusCode remap_test() const
StatusCode print_elvec(const std::string &key) const
DMTestRead(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
virtual StatusCode execute(const EventContext &ctx) override
Algorithm event processing.
StatusCode print_vec(const std::string &key) const
Print out one of our test objects of type VEC from storegate.
virtual void persToTrans(const PersDLink_t *pers, DLink_t *trans, MsgStream &log) const override
void persToTrans(const PersLink_t &pers, Link_t &trans, MsgStream &log) const
void persToTrans(const PersLinkVect_t &pers, LinkVect_t &trans, MsgStream &log) const
ElementLinkVector implementation for standalone ROOT.
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring
DataVector< DMTest::B > BVec
A DataVector containing the base class, B.
Base contained class for DataVector tests.