ATLAS Offline Software
Loading...
Searching...
No Matches
RpcPrepDataCnv_p2.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_p2.cxx
8//
9//-----------------------------------------------------------------------------
10
13
15persToTrans( const Muon::RpcPrepData_p2 *persObj, Muon::RpcPrepData *transObj,MsgStream &log )
16{
17 Amg::Vector2D locpos;
18 locpos.setZero();
19
20 *transObj = Muon::RpcPrepData (transObj->identify(),
21 transObj->collectionHash(),
22 locpos,
23 std::vector<Identifier>(),
24 {}, // locErrMat,
25 transObj->detectorElement(),
26 persObj->m_time,
27 persObj->m_triggerInfo,
28 persObj->m_ambiguityFlag);
29
30 fillTransFromPStore( &m_prdCnv, persObj->m_prd, transObj, log );
31}
32
34transToPers( const Muon::RpcPrepData *transObj, Muon::RpcPrepData_p2 *persObj, MsgStream &log )
35{
36 //log << MSG::DEBUG << "RpcPrepDataCnv_p2::transToPers" << endmsg;
37 persObj->m_prd = baseToPersistent( &m_prdCnv, transObj, log );
38 persObj->m_time = transObj->time();
39 persObj->m_triggerInfo = transObj->triggerInfo();
40 persObj->m_ambiguityFlag = transObj->ambiguityFlag();
41}
42
43
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.
PrepRawDataCnv_p1 * m_prdCnv
void transToPers(const Muon::RpcPrepData *transObj, Muon::RpcPrepData_p2 *persObj, MsgStream &log)
void persToTrans(const Muon::RpcPrepData_p2 *persObj, Muon::RpcPrepData *transObj, MsgStream &log)
Identifier identify() const
return the identifier
Eigen::Matrix< double, 2, 1 > Vector2D