ATLAS Offline Software
Loading...
Searching...
No Matches
RpcPrepDataCnv_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//-----------------------------------------------------------------------------
6//
7// file: RpcPrepDataCnv_p1.cxx
8//
9//-----------------------------------------------------------------------------
10
13
15persToTrans( const Muon::RpcPrepData_p1 *persObj, Muon::RpcPrepData *transObj,MsgStream &log )
16{
17 log << MSG::DEBUG << "RpcPrepDataCnv_p1::persToTrans" << endmsg;
18
19 Amg::Vector2D locpos;
20 locpos.setZero();
21
22 *transObj = Muon::RpcPrepData (transObj->identify(),
23 transObj->collectionHash(),
24 locpos,
25 std::vector<Identifier>(),
26 {}, // locErrMat,
27 transObj->detectorElement(),
28 persObj->m_time,
29 persObj->m_triggerInfo,
30 persObj->m_ambiguityFlag);
31
32 fillTransFromPStore( &m_prdCnv, persObj->m_prd, transObj, log );
33}
34
36transToPers( const Muon::RpcPrepData *transObj, Muon::RpcPrepData_p1 *persObj, MsgStream &log )
37{
38 log << MSG::DEBUG << "RpcPrepDataCnv_p1::transToPers" << endmsg;
39 persObj->m_prd = baseToPersistent( &m_prdCnv, transObj, log );
40 persObj->m_time = transObj->time();
41 persObj->m_triggerInfo = transObj->triggerInfo();
42 persObj->m_ambiguityFlag = transObj->ambiguityFlag();
43}
44
45
#define endmsg
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Definition TPConverter.h:97
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
virtual IdentifierHash collectionHash() const
Returns the IdentifierHash corresponding to the PRD collection in the PRD container.
Class to represent RPC measurements.
Definition RpcPrepData.h:35
virtual const MuonGM::RpcReadoutElement * detectorElement() const override final
Returns the detector element corresponding to this PRD.
int triggerInfo() const
Returns the trigger coincidence - usually false, unless ijk>5 or highpt&&ijk==0.
int ambiguityFlag() const
Returns the number of ambiguities associated with this RpcPrepData.
float time() const
Returns the time.
void persToTrans(const Muon::RpcPrepData_p1 *persObj, Muon::RpcPrepData *transObj, MsgStream &log)
void transToPers(const Muon::RpcPrepData *transObj, Muon::RpcPrepData_p1 *persObj, MsgStream &log)
PrepRawDataCnv_p1 * m_prdCnv
Identifier identify() const
return the identifier
Eigen::Matrix< double, 2, 1 > Vector2D