35 return StatusCode::SUCCESS;
49 for (
const P* p : *
pvec) {
50 std::ostringstream ost;
51 ost <<
" pInt: " << p->pInt()
52 <<
" pFloat: " << std::format (
"{:.2f}", p->pFloat());
54 ost <<
" dpInt1: " << dpInt1(*p);
58 const std::vector<int>& pvi = p->pvInt();
66 const std::vector<float>& pvf = p->pvFloat();
69 ost << std::format (
"{:.3f}", f) <<
" ";
75 const std::vector<float>& pvf = dpvFloat(*p);
76 ost <<
" dpvFloat: [";
78 ost << std::format (
"{:.3f}", f) <<
" ";
86 auto vecnew = std::make_unique<PVec>();
87 auto store = std::make_unique<PAuxContainer>();
88 vecnew->setStore (store.get());
89 for (
size_t i = 0; i <
pvec->size(); i++) {
90 vecnew->push_back (
new P);
91 *vecnew->back() = *(*pvec)[i];
97 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Helper class to provide constant type-safe access to aux data.
Class used for testing xAOD data reading/writing with packed containers.
Class used for testing xAOD data reading/writing with packed containers.
Class used for testing xAOD data reading/writing with packed containers.
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.
SG::WriteHandleKey< DMTest::PVec > m_writeKey
SG::ReadHandleKey< DMTest::PVec > m_pvecKey
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
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.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.