ATLAS Offline Software
Loading...
Searching...
No Matches
CTP_RDOCnv_p2.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_p2::persToTrans( const CTP_RDO_p2* 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));
31
32 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converting CTP_RDO from persistent state [OK]" << endmsg;
33
34 return;
35
36}
37
42void CTP_RDOCnv_p2::transToPers( const CTP_RDO* transObj, CTP_RDO_p2* persObj,
43 MsgStream& log ) {
44
45 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Creating persistent state of CTP_RDO..." << endmsg;
46
47 // not needed, will be recalculated
48 // persObj->m_numberOfBunches = transObj->m_numberOfBunches;
49 // not needed, will be taken as default
50 // persObj->m_activeBunch = transObj->m_activeBunch;
51
52 persObj->m_l1AcceptPosition = transObj->getL1AcceptBunchPosition();
53 persObj->m_dataWords = transObj->getDataWords();
54
55 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Creating persistent state of CTP_RDO [OK]" << endmsg;
56
57 return;
58
59}
#define endmsg
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
virtual void persToTrans(const CTP_RDO_p2 *persObj, CTP_RDO *transObj, MsgStream &log)
Function transferring the information from a persistent CTP_RDO_p2 object to a transient CTP_RDO obje...
CTP_RDOCnv_p2()
Default constructor.
virtual void transToPers(const CTP_RDO *transObj, CTP_RDO_p2 *persObj, MsgStream &log)
Function transferring the information from a transient CTP_RDO object to a persistent CTP_RDO_p2 obje...
Persistent representation of CTP_RDO.
Definition CTP_RDO_p2.h:26
uint8_t m_l1AcceptPosition
Definition CTP_RDO_p2.h:34
std::vector< uint32_t > m_dataWords
Definition CTP_RDO_p2.h:35
const std::vector< uint32_t > & getDataWords() const
Definition CTP_RDO.h:39
void setL1AcceptBunchPosition(const uint8_t)
Definition CTP_RDO.cxx:141
uint32_t getL1AcceptBunchPosition() const
Definition CTP_RDO.cxx:94