ATLAS Offline Software
Loading...
Searching...
No Matches
CTP_RDOCnv_p1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6// Gaudi/Athena include(s):
7#include "GaudiKernel/MsgStream.h"
8
9// Local include(s):
11
19
24void CTP_RDOCnv_p1::persToTrans( const CTP_RDO_p1* persObj, CTP_RDO* transObj,
25 MsgStream& log ) {
26
27 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converting CTP_RDO from persistent state..." << endmsg;
28
29 *transObj = CTP_RDO (0, std::vector<uint32_t>(persObj->m_dataWords)); //manual copy of dataWords
30
31 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converting CTP_RDO from persistent state [OK]" << endmsg;
32
33 return;
34
35}
36
41void CTP_RDOCnv_p1::transToPers( const CTP_RDO* transObj, CTP_RDO_p1* persObj,
42 MsgStream& log ) {
43
44 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Creating persistent state of CTP_RDO..." << endmsg;
45
46 // not needed, will be recalculated
47 // persObj->m_numberOfBunches = transObj->m_numberOfBunches;
48 // not needed, will be taken as default
49 // persObj->m_activeBunch = transObj->m_activeBunch;
50
51 persObj->m_dataWords = transObj->getDataWords();
52
53 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Creating persistent state of CTP_RDO [OK]" << endmsg;
54
55 return;
56
57}
#define endmsg
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
virtual void transToPers(const CTP_RDO *transObj, CTP_RDO_p1 *persObj, MsgStream &log)
Function transferring the information from a transient CTP_RDO object to a persistent CTP_RDO_p1 obje...
CTP_RDOCnv_p1()
Default constructor.
virtual void persToTrans(const CTP_RDO_p1 *persObj, CTP_RDO *transObj, MsgStream &log)
Function transferring the information from a persistent CTP_RDO_p1 object to a transient CTP_RDO obje...
Persistent representation of CTP_RDO.
Definition CTP_RDO_p1.h:26
std::vector< uint32_t > m_dataWords
Definition CTP_RDO_p1.h:34
const std::vector< uint32_t > & getDataWords() const
Definition CTP_RDO.h:39