ATLAS Offline Software
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 
17 
18 }
19 
24 void 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));
30  transObj->setL1AcceptBunchPosition (persObj->m_l1AcceptPosition);
31 
32  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converting CTP_RDO from persistent state [OK]" << endmsg;
33 
34  return;
35 
36 }
37 
42 void 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 }
CTP_RDO
CTP_RDO
Definition: TrigT1EventTPCnv.cxx:102
CTP_RDO_p2
Persistent representation of CTP_RDO.
Definition: CTP_RDO_p2.h:26
CTP_RDOCnv_p2::transToPers
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...
Definition: CTP_RDOCnv_p2.cxx:42
TPConverterBase
Definition: TPConverter.h:738
CTP_RDO::getDataWords
const std::vector< uint32_t > & getDataWords() const
Definition: CTP_RDO.h:39
CTP_RDOCnv_p2::persToTrans
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...
Definition: CTP_RDOCnv_p2.cxx:24
CTP_RDO_p2::m_l1AcceptPosition
uint8_t m_l1AcceptPosition
Definition: CTP_RDO_p2.h:34
CTP_RDO_p2::m_dataWords
std::vector< uint32_t > m_dataWords
Definition: CTP_RDO_p2.h:35
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
CTP_RDOCnv_p2::CTP_RDOCnv_p2
CTP_RDOCnv_p2()
Default constructor.
Definition: CTP_RDOCnv_p2.cxx:15
CTP_RDO::setL1AcceptBunchPosition
void setL1AcceptBunchPosition(const uint8_t)
Definition: CTP_RDO.cxx:141
CTP_RDO::getL1AcceptBunchPosition
uint32_t getL1AcceptBunchPosition() const
Definition: CTP_RDO.cxx:94
CTP_RDO
Definition: CTP_RDO.h:20
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
CTP_RDOCnv_p2.h