ATLAS Offline Software
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 
7 
8 
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 
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 
PixelRDOElemLinkVec_p1
Definition: PixelRDOElemLinkVec_p1.h:13
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
PixelRDOElemLinkVec
vector containing element links to pixel RDOs
Definition: PixelRDOElemLinkVec.h:40
lumiFormat.i
int i
Definition: lumiFormat.py:92
PixelRDOElemLinkVec_p1::m_linkNames
ElementLinkContNames_p2 m_linkNames
Definition: PixelRDOElemLinkVec_p1.h:20
PixelRDOElemLinkVec.h
Class definition for PixelRDOElemLinkVec.
PixelRDOElemLinkVec_p1::m_pixelRDOs
std::vector< ElementLinkInt_p2 > m_pixelRDOs
Definition: PixelRDOElemLinkVec_p1.h:17
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
PixelRDOElemLinkVecCnv_p1::persToTrans
virtual void persToTrans(const PixelRDOElemLinkVec_p1 *, PixelRDOElemLinkVec *, MsgStream &log) override
Definition: PixelRDOElemLinkVecCnv_p1.cxx:9
PixelRDOElemLinkVecCnv_p1.h
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
PixelRDOElemLinkVec::pixelRDOs
const std::vector< elem_type > & pixelRDOs() const
Definition: PixelRDOElemLinkVec.h:79