ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
AtlasTest
DatabaseTest
AthenaPoolTestAthenaPool
src
PixelRDOElemLinkVecCnv_p1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
AthenaPoolTestData/PixelRDOElemLinkVec.h
"
6
#include "
PixelRDOElemLinkVecCnv_p1.h
"
7
8
9
void
PixelRDOElemLinkVecCnv_p1::persToTrans
(
const
PixelRDOElemLinkVec_p1
* pers,
10
PixelRDOElemLinkVec
* trans,
11
MsgStream &log) {
12
13
// reset element link converters, and provide container name lookup table
14
m_elementLinkCnv
.resetForCnv(pers->
m_linkNames
);
15
16
trans->
pixelRDOs
().resize(pers->
m_pixelRDOs
.size());
17
for
(
unsigned
int
i = 0; i < pers->
m_pixelRDOs
.size(); ++i) {
18
// log << MSG::ERROR
19
// << "persToTrans: index " << pers->m_pixelRDOs[i].m_contIndex << " "
20
// << pers->m_pixelRDOs[i].m_elementIndex
21
// << endmsg;
22
m_elementLinkCnv
.persToTrans(&pers->
m_pixelRDOs
[i], &trans->
pixelRDOs
()[i], log);
23
}
24
}
25
26
27
void
PixelRDOElemLinkVecCnv_p1::transToPers
(
const
PixelRDOElemLinkVec
* trans,
28
PixelRDOElemLinkVec_p1
* pers,
29
MsgStream &log) {
30
31
// reset element link converters, and provide container name lookup table
32
m_elementLinkCnv
.resetForCnv(pers->
m_linkNames
);
33
34
pers->
m_pixelRDOs
.resize(trans->
pixelRDOs
().size());
35
for
(
unsigned
int
i = 0; i < trans->
pixelRDOs
().
size
(); ++i) {
36
// log << MSG::ERROR
37
// << "transToPers: index " << MSG::hex
38
// << trans->m_pixelRDOs[i].index() << " " << MSG::dec
39
// << endmsg;
40
m_elementLinkCnv
.transToPers( &trans->
pixelRDOs
()[i], &pers->
m_pixelRDOs
[i], log);
41
}
42
}
43
44
45
46
PixelRDOElemLinkVecCnv_p1.h
PixelRDOElemLinkVec.h
Class definition for PixelRDOElemLinkVec.
size
size_t size() const
Number of registered mappings.
PixelRDOElemLinkVecCnv_p1::persToTrans
virtual void persToTrans(const PixelRDOElemLinkVec_p1 *, PixelRDOElemLinkVec *, MsgStream &log) override
Definition
PixelRDOElemLinkVecCnv_p1.cxx:9
PixelRDOElemLinkVecCnv_p1::transToPers
virtual void transToPers(const PixelRDOElemLinkVec *, PixelRDOElemLinkVec_p1 *, MsgStream &log) override
Definition
PixelRDOElemLinkVecCnv_p1.cxx:27
PixelRDOElemLinkVecCnv_p1::m_elementLinkCnv
ElementLinkCnv_p2< PixelRDOElemLinkVec::elem_type > m_elementLinkCnv
Definition
PixelRDOElemLinkVecCnv_p1.h:31
PixelRDOElemLinkVec_p1
Definition
PixelRDOElemLinkVec_p1.h:13
PixelRDOElemLinkVec_p1::m_linkNames
ElementLinkContNames_p2 m_linkNames
Definition
PixelRDOElemLinkVec_p1.h:20
PixelRDOElemLinkVec_p1::m_pixelRDOs
std::vector< ElementLinkInt_p2 > m_pixelRDOs
Definition
PixelRDOElemLinkVec_p1.h:17
PixelRDOElemLinkVec
vector containing element links to pixel RDOs
Definition
PixelRDOElemLinkVec.h:40
PixelRDOElemLinkVec::pixelRDOs
const std::vector< elem_type > & pixelRDOs() const
Definition
PixelRDOElemLinkVec.h:79
Generated on
for ATLAS Offline Software by
1.17.0