ATLAS Offline Software
RpcPadCnv_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 
5 #include "MuonRDO/RpcPad.h"
6 #include "GaudiKernel/MsgStream.h"
8 #include "RpcPadCnv_p1.h"
9 
10 
11 void
12 RpcPadCnv_p1::transToPers(const RpcPad* transColl, RpcPad_p1* persColl, MsgStream &log)
13 {
14  //log << MSG::DEBUG << " *** Writing out RpcPad" << endmsg;
15 
16  persColl->m_id = transColl->identify().get_identifier32().get_compact();
17  persColl->m_idHash = transColl->identifyHash();
18  persColl->m_onlineId = transColl->onlineId();
19  persColl->m_status = transColl->status();
20  persColl->m_errorCode = transColl->errorCode();
21  persColl->m_sector = transColl->sector();
22 
23  // Invoke vector converter from the base template
24  RpcPadCnv_p1_basetype::transToPers( transColl, persColl, log );
25 }
26 
27 void
28 RpcPadCnv_p1::persToTrans(const RpcPad_p1* persColl, RpcPad* transColl, MsgStream &log)
29 {
30  *transColl = RpcPad (Identifier(Identifier32(persColl->m_id)),
31  persColl->m_idHash,
32  persColl->m_onlineId,
33  persColl->m_status,
34  persColl->m_errorCode,
35  persColl->m_sector);
36 
37  // Invoke vector converter from the base template
38  RpcPadCnv_p1_basetype::persToTrans( persColl, transColl, log );
39 }
40 
41 
42 
RpcPad_p1::m_errorCode
uint16_t m_errorCode
Definition: RpcPad_p1.h:38
Identifier32
Definition: Identifier32.h:25
RpcPad::identify
Identifier identify() const
Definition: RpcPad.h:100
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,...
RpcPad
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Current RpcPad
Definition: MuonEventAthenaPoolTPCnv.cxx:146
RpcPadCnv_p1.h
RpcPad::status
ubit16 status() const
Definition: RpcPad.h:105
RpcPad_p1::m_status
uint16_t m_status
Definition: RpcPad_p1.h:37
RpcPad_p1
Definition: RpcPad_p1.h:14
RpcPad_p1::m_idHash
uint32_t m_idHash
Definition: RpcPad_p1.h:35
RpcPad.h
RpcPad::errorCode
ubit16 errorCode() const
Definition: RpcPad.h:106
Identifier32::get_compact
value_type get_compact(void) const
Get the compact id.
Definition: Identifier32.h:171
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,...
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
RpcPad::onlineId
ubit16 onlineId() const
Definition: RpcPad.h:107
RpcPad::identifyHash
IdentifierHash identifyHash() const
Returns the OFFLINE identifier hash for this collection.
Definition: RpcPad.h:103
RpcPad
Definition: RpcPad.h:21
RpcPadCnv_p1::transToPers
virtual void transToPers(const RpcPad *transColl, RpcPad_p1 *persColl, MsgStream &log)
Definition: RpcPadCnv_p1.cxx:12
RpcPad::sector
int sector() const
Definition: RpcPad.h:112
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
RpcPad_p1::m_sector
int m_sector
@TODO why is this an int? EJWM
Definition: RpcPad_p1.h:40
RpcPad_p1::m_id
uint32_t m_id
Definition: RpcPad_p1.h:34
Identifier::get_identifier32
Identifier32 get_identifier32(void) const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
RpcPad_p1::m_onlineId
uint16_t m_onlineId
Definition: RpcPad_p1.h:36
RpcPadCnv_p1::persToTrans
virtual void persToTrans(const RpcPad_p1 *persColl, RpcPad *transColl, MsgStream &log)
Definition: RpcPadCnv_p1.cxx:28