ATLAS Offline Software
Loading...
Searching...
No Matches
MuCTPI_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
25 MsgStream& log ) {
26
27 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converting MuCTPI_RDO from persistent state..." << endmsg;
28
29 *transObj = MuCTPI_RDO (std::vector< uint32_t >(persObj->m_candidateMultiplicity),
30 std::vector< uint32_t >(persObj->m_dataWord)); //manual copy
31
32 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converting MuCTPI_RDO from persistent state [OK]" << endmsg;
33
34 return;
35
36}
37
43 MsgStream& log ) {
44
45 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Creating persistent state of MuCTPI_RDO..." << endmsg;
46
48 persObj->m_dataWord = transObj->dataWord();
49
50 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Creating persistent state of MuCTPI_RDO [OK]" << endmsg;
51
52 return;
53
54}
#define endmsg
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
MuCTPI_RDOCnv_p1()
Default constructor.
virtual void persToTrans(const MuCTPI_RDO_p1 *persObj, MuCTPI_RDO *transObj, MsgStream &log)
Function transferring the information from a persistent MuCTPI_RDO_p1 object to a transient MuCTPI_RD...
virtual void transToPers(const MuCTPI_RDO *transObj, MuCTPI_RDO_p1 *persObj, MsgStream &log)
Function transferring the information from a transient MuCTPI_RDO object to a persistent MuCTPI_RDO_p...
Persistent representation of MuCTPI_RDO.
std::vector< uint32_t > m_candidateMultiplicity
std::vector< uint32_t > m_dataWord
Class representing the readout data of the MuCTPI hardware and simulation.
Definition MuCTPI_RDO.h:41
const std::vector< uint32_t > & getAllCandidateMultiplicities() const
Function returning all candidate multiplicities.
Definition MuCTPI_RDO.h:117
const std::vector< uint32_t > & dataWord() const
Function returning the muon candidate data words.
Definition MuCTPI_RDO.h:141