ATLAS Offline Software
RpcCoinMatrixCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "GaudiKernel/MsgStream.h"
8 #include "RpcCoinMatrixCnv_p1.h"
9 
10 
11 void
12 RpcCoinMatrixCnv_p1::transToPers(const RpcCoinMatrix* transColl, RpcCoinMatrix_p1* persColl, MsgStream &log)
13 {
14  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << " *** Writing out RpcCoinMatrix" << endmsg;
15 
16  persColl->m_id = transColl->identify().get_identifier32().get_compact();
17  persColl->m_onlineId = transColl->onlineId();
18  persColl->m_crc = transColl->crc();
19  persColl->m_fel1Id = transColl->fel1Id();
20  persColl->m_febcId = transColl->febcId();
21 
22  // Invoke vector converter from the base template
23  RpcCoinMatrixCnv_p1_basetype::transToPers( transColl, persColl, log );
24 }
25 
26 void
27 RpcCoinMatrixCnv_p1::persToTrans(const RpcCoinMatrix_p1* persColl, RpcCoinMatrix* transColl, MsgStream &log)
28 {
29  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << " *** Reading RpcCoinMatrix" << endmsg;
30 
31  *transColl = RpcCoinMatrix (Identifier(Identifier32(persColl->m_id)),
32  persColl->m_onlineId,
33  persColl->m_crc,
34  persColl->m_fel1Id,
35  persColl->m_febcId);
36 
37  // Invoke vector converter from the base template
38  RpcCoinMatrixCnv_p1_basetype::persToTrans( persColl, transColl, log );
39 }
40 
41 
42 
RpcCoinMatrix_p1
Persistent representation of RpcCoinMatrix class.
Definition: RpcCoinMatrix_p1.h:18
Identifier32
Definition: Identifier32.h:25
RpcCoinMatrix::crc
ubit16 crc() const
Definition: RpcCoinMatrix.h:69
RpcCoinMatrix_p1::m_id
uint32_t m_id
Definition: RpcCoinMatrix_p1.h:44
RpcCoinMatrix_p1.h
TPCnvVector::persToTrans
virtual void persToTrans(const PERS *persVect, TRANS *transVect, MsgStream &log)
Converts vector of PERS::value_type objects to vector of TRANS::value_type objects,...
Identifier::get_identifier32
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
RpcCoinMatrix::identify
Identifier identify() const
Definition: RpcCoinMatrix.h:64
RpcCoinMatrix
Definition: RpcCoinMatrix.h:20
Identifier32::get_compact
value_type get_compact() const
Get the compact id.
Definition: Identifier32.h:44
TPCnvVector::transToPers
virtual void transToPers(const TRANS *transVect, PERS *persVect, MsgStream &log)
Converts vector of TRANS::value_type objects to vector of PERS::value_type objects,...
RpcCoinMatrix_p1::m_onlineId
uint16_t m_onlineId
Definition: RpcCoinMatrix_p1.h:45
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
RpcCoinMatrix::onlineId
ubit16 onlineId() const
Definition: RpcCoinMatrix.h:67
RpcCoinMatrixCnv_p1::persToTrans
virtual void persToTrans(const RpcCoinMatrix_p1 *persColl, RpcCoinMatrix *transColl, MsgStream &log)
Definition: RpcCoinMatrixCnv_p1.cxx:27
RpcCoinMatrixCnv_p1.h
RpcCoinMatrixCnv_p1::transToPers
virtual void transToPers(const RpcCoinMatrix *transColl, RpcCoinMatrix_p1 *persColl, MsgStream &log)
Definition: RpcCoinMatrixCnv_p1.cxx:12
RpcCoinMatrix
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current RpcCoinMatrix
Definition: MuonEventAthenaPoolTPCnv.cxx:134
RpcCoinMatrix::fel1Id
ubit16 fel1Id() const
Definition: RpcCoinMatrix.h:71
RpcCoinMatrix_p1::m_fel1Id
uint16_t m_fel1Id
Definition: RpcCoinMatrix_p1.h:47
RpcCoinMatrix_p1::m_febcId
uint16_t m_febcId
Definition: RpcCoinMatrix_p1.h:48
DEBUG
#define DEBUG
Definition: page_access.h:11
RpcCoinMatrix_p1::m_crc
uint16_t m_crc
Definition: RpcCoinMatrix_p1.h:46
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
RpcCoinMatrix::febcId
ubit16 febcId() const
Definition: RpcCoinMatrix.h:73
RpcCoinMatrix.h
Identifier
Definition: IdentifierFieldParser.cxx:14