ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCnv
MuonEventTPCnv
src
MuonPrepRawData
RpcPrepDataCnv_p3.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
//-----------------------------------------------------------------------------
6
//
7
// file: RpcPrepDataCnv_p3.cxx
8
//
9
//-----------------------------------------------------------------------------
10
11
#include "
MuonPrepRawData/RpcPrepData.h
"
12
#include "
MuonEventTPCnv/MuonPrepRawData/RpcPrepDataCnv_p3.h
"
13
14
Muon::RpcPrepData
15
RpcPrepDataCnv_p3::
16
createRpcPrepData
(
const
Muon::RpcPrepData_p3
*persObj,
17
const
Identifier
&
id
,
18
const
MuonGM::RpcReadoutElement
* detEl,
19
MsgStream & )
20
{
21
Amg::Vector2D
localPos;
22
localPos[
Trk::locX
] = persObj->
m_locX
;
23
localPos[
Trk::locY
] = 0.0;
24
25
std::vector<Identifier> rdoList(1);
26
rdoList[0]=id;
27
28
auto
cmat =
Amg::MatrixX
(1,1);
29
cmat(0,0) =
static_cast<
double
>
(persObj->
m_errorMat
);
30
31
Muon::RpcPrepData
data (
id
,
32
0,
// collectionHash
33
localPos,
34
rdoList,
35
cmat,
36
detEl,
37
persObj->
m_time
,
38
persObj->
m_triggerInfo
,
39
persObj->
m_ambiguityFlag
);
40
return
data;
41
}
42
43
void
RpcPrepDataCnv_p3::
44
persToTrans
(
const
Muon::RpcPrepData_p3
*persObj,
Muon::RpcPrepData
*transObj,MsgStream & log )
45
{
46
*transObj =
createRpcPrepData
(persObj,
47
transObj->
identify
(),
48
transObj->
detectorElement
(),
49
log);
50
}
51
52
void
RpcPrepDataCnv_p3::
53
transToPers
(
const
Muon::RpcPrepData
*transObj,
Muon::RpcPrepData_p3
*persObj, MsgStream & )
54
{
55
//log << MSG::DEBUG << "RpcPrepDataCnv_p3::transToPers" << endmsg;
56
persObj->
m_locX
= transObj->
localPosition
()[
Trk::locX
];
57
persObj->
m_errorMat
= transObj->
localCovariance
()(0,0);
58
59
//RpcPrepData - specific
60
persObj->
m_time
= transObj->
time
();
61
persObj->
m_triggerInfo
= transObj->
triggerInfo
();
62
persObj->
m_ambiguityFlag
= transObj->
ambiguityFlag
();
63
}
64
65
RpcPrepDataCnv_p3.h
RpcPrepData.h
MuonGM::RpcReadoutElement
An RpcReadoutElement corresponds to a single RPC module; therefore typicaly a barrel muon station con...
Definition
MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/RpcReadoutElement.h:55
Muon::RpcPrepData_p3
We don't write out (from Trk::PrepRawData) m_indexAndHash (can be recomputed), m_clusId (can be recom...
Definition
RpcPrepData_p3.h:24
Muon::RpcPrepData_p3::m_ambiguityFlag
int m_ambiguityFlag
Definition
RpcPrepData_p3.h:40
Muon::RpcPrepData_p3::m_time
float m_time
Definition
RpcPrepData_p3.h:38
Muon::RpcPrepData_p3::m_errorMat
float m_errorMat
1-d ErrorMatrix in the base class.
Definition
RpcPrepData_p3.h:33
Muon::RpcPrepData_p3::m_triggerInfo
int m_triggerInfo
Definition
RpcPrepData_p3.h:39
Muon::RpcPrepData_p3::m_locX
float m_locX
Equivalent to localPosition (locX) in the base class.
Definition
RpcPrepData_p3.h:32
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_p3::transToPers
void transToPers(const Muon::RpcPrepData *transObj, Muon::RpcPrepData_p3 *persObj, MsgStream &log)
Definition
RpcPrepDataCnv_p3.cxx:53
RpcPrepDataCnv_p3::persToTrans
void persToTrans(const Muon::RpcPrepData_p3 *persObj, Muon::RpcPrepData *transObj, MsgStream &log)
Definition
RpcPrepDataCnv_p3.cxx:44
RpcPrepDataCnv_p3::createRpcPrepData
static Muon::RpcPrepData createRpcPrepData(const Muon::RpcPrepData_p3 *persObj, const Identifier &id, const MuonGM::RpcReadoutElement *detEl, MsgStream &log)
Definition
RpcPrepDataCnv_p3.cxx:16
Trk::PrepRawData::localPosition
const Amg::Vector2D & localPosition() const
return the local position reference
Trk::PrepRawData::identify
Identifier identify() const
return the identifier
Trk::PrepRawData::localCovariance
const Amg::MatrixX & localCovariance() const
return const ref to the error matrix
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition
EventPrimitives.h:27
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition
GeoPrimitives.h:48
Identifier
Definition
IdentifierFieldParser.cxx:14
Trk::locY
@ locY
local cartesian
Definition
ParamDefs.h:38
Trk::locX
@ locX
Definition
ParamDefs.h:37
Generated on
for ATLAS Offline Software by
1.17.0