ATLAS Offline Software
Loading...
Searching...
No Matches
LUCID_RawDataContainerCnv_p1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6#include "GaudiKernel/MsgStream.h"
7
9
11
12 log << MSG::DEBUG << "In LUCID_RawDataContainerCnv_p1::transToPers" << endmsg;
13
14 persObj->resize(transObj->size());
15
16 for (unsigned int i=0; i<transObj->size(); ++i) {
17
18 LUCID_RawData_p1& rawData = (*persObj)[i];
19
20 rawDataConv.transToPers((*transObj)[i], &rawData, log);
21 }
22}
23
25
26 log << MSG::DEBUG << "In LUCID_RawDataContainerCnv_p1::persToTrans" << endmsg;
27
28 transObj->reserve(persObj->size());
29
30 for (unsigned int i=0; i<persObj->size(); ++i) {
31
32 const LUCID_RawData_p1* rawData = &((*persObj)[i]);
33
34 transObj->push_back(rawDataConv.createTransientConst(rawData, log));
35 }
36}
37
#define endmsg
static const LUCID_RawDataCnv_p1 rawDataConv
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
virtual void transToPers(const LUCID_RawDataContainer *transObj, LUCID_RawDataContainer_p1 *persObj, MsgStream &log) const override
virtual void persToTrans(const LUCID_RawDataContainer_p1 *persObj, LUCID_RawDataContainer *transObj, MsgStream &log) const override