ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCnv
MuonEventTPCnv
src
MuonPrepRawData
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
11
#include "
MuonPrepRawData/RpcPrepData.h
"
12
#include "
MuonEventTPCnv/MuonPrepRawData/RpcPrepDataCnv_p2.h
"
13
14
void
RpcPrepDataCnv_p2::
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
33
void
RpcPrepDataCnv_p2::
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.h
RpcPrepData.h
ITPConverterFor< TRANS_BASE >::baseToPersistent
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Definition
TPConverter.h:97
ITPConverterFor< TRANS_BASE >::fillTransFromPStore
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
Definition
TPConverter.h:145
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:97
Muon::RpcPrepData_p2
Definition
RpcPrepData_p2.h:19
Muon::RpcPrepData_p2::m_time
float m_time
Definition
RpcPrepData_p2.h:28
Muon::RpcPrepData_p2::m_ambiguityFlag
int m_ambiguityFlag
Definition
RpcPrepData_p2.h:30
Muon::RpcPrepData_p2::m_prd
TPObjRef m_prd
Definition
RpcPrepData_p2.h:23
Muon::RpcPrepData_p2::m_triggerInfo
int m_triggerInfo
Definition
RpcPrepData_p2.h:29
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:201
Muon::RpcPrepData::triggerInfo
int triggerInfo() const
Returns the trigger coincidence - usually false, unless ijk>5 or highpt&&ijk==0.
Definition
RpcPrepData.h:206
Muon::RpcPrepData::ambiguityFlag
int ambiguityFlag() const
Returns the number of ambiguities associated with this RpcPrepData.
Definition
RpcPrepData.h:211
Muon::RpcPrepData::time
float time() const
Returns the time.
Definition
RpcPrepData.h:196
RpcPrepDataCnv_p2::m_prdCnv
PrepRawDataCnv_p1 * m_prdCnv
Definition
RpcPrepDataCnv_p2.h:35
RpcPrepDataCnv_p2::transToPers
void transToPers(const Muon::RpcPrepData *transObj, Muon::RpcPrepData_p2 *persObj, MsgStream &log)
Definition
RpcPrepDataCnv_p2.cxx:34
RpcPrepDataCnv_p2::persToTrans
void persToTrans(const Muon::RpcPrepData_p2 *persObj, Muon::RpcPrepData *transObj, MsgStream &log)
Definition
RpcPrepDataCnv_p2.cxx:15
Trk::PrepRawData::identify
Identifier identify() const
return the identifier
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition
GeoPrimitives.h:48
Generated on
for ATLAS Offline Software by
1.17.0