ATLAS Offline Software
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 
17 
18 }
19 
24 void MuCTPI_RDOCnv_p1::persToTrans( const MuCTPI_RDO_p1* persObj, MuCTPI_RDO* transObj,
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 
42 void MuCTPI_RDOCnv_p1::transToPers( const MuCTPI_RDO* transObj, MuCTPI_RDO_p1* persObj,
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 }
TPConverterBase
Definition: TPConverter.h:738
MuCTPI_RDO::getAllCandidateMultiplicities
const std::vector< uint32_t > & getAllCandidateMultiplicities() const
Function returning all candidate multiplicities.
Definition: MuCTPI_RDO.h:117
MuCTPI_RDOCnv_p1.h
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
MuCTPI_RDOCnv_p1::persToTrans
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...
Definition: MuCTPI_RDOCnv_p1.cxx:24
MuCTPI_RDOCnv_p1::transToPers
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...
Definition: MuCTPI_RDOCnv_p1.cxx:42
MuCTPI_RDO_p1
Persistent representation of MuCTPI_RDO.
Definition: MuCTPI_RDO_p1.h:26
MuCTPI_RDO
Class representing the readout data of the MuCTPI hardware and simulation.
Definition: MuCTPI_RDO.h:41
MuCTPI_RDO_p1::m_dataWord
std::vector< uint32_t > m_dataWord
Definition: MuCTPI_RDO_p1.h:35
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
MuCTPI_RDO_p1::m_candidateMultiplicity
std::vector< uint32_t > m_candidateMultiplicity
Definition: MuCTPI_RDO_p1.h:34
MuCTPI_RDO::dataWord
const std::vector< uint32_t > & dataWord() const
Function returning the muon candidate data words.
Definition: MuCTPI_RDO.h:141
MuCTPI_RDOCnv_p1::MuCTPI_RDOCnv_p1
MuCTPI_RDOCnv_p1()
Default constructor.
Definition: MuCTPI_RDOCnv_p1.cxx:15