ATLAS Offline Software
Loading...
Searching...
No Matches
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"
9
10
11void
12RpcCoinMatrixCnv_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
26void
27RpcCoinMatrixCnv_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
#define endmsg
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current RpcCoinMatrix
value_type get_compact() const
Get the compact id.
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
virtual void transToPers(const RpcCoinMatrix *transColl, RpcCoinMatrix_p1 *persColl, MsgStream &log)
Converts vector of TRANS::value_type objects to vector of PERS::value_type objects,...
virtual void persToTrans(const RpcCoinMatrix_p1 *persColl, RpcCoinMatrix *transColl, MsgStream &log)
Converts vector of PERS::value_type objects to vector of TRANS::value_type objects,...
Persistent representation of RpcCoinMatrix class.
Identifier identify() const
ubit16 crc() const
ubit16 fel1Id() const
ubit16 onlineId() const
ubit16 febcId() const
virtual void persToTrans(const PERS *persVect, TRANS *transVect, MsgStream &log)
Converts vector of PERS::value_type objects to vector of TRANS::value_type objects,...
virtual void transToPers(const TRANS *transVect, PERS *persVect, MsgStream &log)
Converts vector of TRANS::value_type objects to vector of PERS::value_type objects,...