ATLAS Offline Software
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 
15 persToTrans( 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 
34 transToPers( 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 
RpcPrepDataCnv_p2::m_prdCnv
PrepRawDataCnv_p1 * m_prdCnv
Definition: RpcPrepDataCnv_p2.h:35
Muon::RpcPrepData_p2
Definition: RpcPrepData_p2.h:19
RpcPrepDataCnv_p2::transToPers
void transToPers(const Muon::RpcPrepData *transObj, Muon::RpcPrepData_p2 *persObj, MsgStream &log)
Definition: RpcPrepDataCnv_p2.cxx:34
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
Muon::MuonCluster::collectionHash
virtual IdentifierHash collectionHash() const
Returns the IdentifierHash corresponding to the PRD collection in the PRD container.
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/MuonPrepRawData/MuonCluster.h:104
Muon::RpcPrepData_p2::m_prd
TPObjRef m_prd
Definition: RpcPrepData_p2.h:23
Muon::RpcPrepData_p2::m_time
float m_time
Definition: RpcPrepData_p2.h:28
RpcPrepDataCnv_p2.h
ITPConverterFor< TRANS_BASE >::fillTransFromPStore
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
Convert persistent object, stored in the the top-level persistent object and referenced by the TP Ref...
Definition: TPConverter.h:145
RpcPrepDataCnv_p2::persToTrans
void persToTrans(const Muon::RpcPrepData_p2 *persObj, Muon::RpcPrepData *transObj, MsgStream &log)
Definition: RpcPrepDataCnv_p2.cxx:15
Muon::RpcPrepData::time
float time() const
Returns the time.
Definition: RpcPrepData.h:197
Muon::RpcPrepData
Class to represent RPC measurements.
Definition: RpcPrepData.h:35
Muon::RpcPrepData::detectorElement
virtual const MuonGM::RpcReadoutElement * detectorElement() const override final
Returns the detector element corresponding to this PRD.
Definition: RpcPrepData.h:202
Muon::RpcPrepData_p2::m_ambiguityFlag
int m_ambiguityFlag
Definition: RpcPrepData_p2.h:30
Muon::RpcPrepData::triggerInfo
int triggerInfo() const
Returns the trigger coincidence - usually false, unless ijk>5 or highpt&&ijk==0.
Definition: RpcPrepData.h:207
Trk::PrepRawData::identify
Identifier identify() const
return the identifier
ITPConverterFor< TRANS_BASE >::baseToPersistent
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Persistify bass class of a given object and store the persistent represenation in the storage vector ...
Definition: TPConverter.h:97
Muon::RpcPrepData_p2::m_triggerInfo
int m_triggerInfo
Definition: RpcPrepData_p2.h:29
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
RpcPrepData.h
Muon::RpcPrepData::ambiguityFlag
int ambiguityFlag() const
Returns the number of ambiguities associated with this RpcPrepData.
Definition: RpcPrepData.h:212