ATLAS Offline Software
LocalPositionCnv_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: LocalPositionCnv_p1.cxx
8 // author: Lukasz Janyst <ljanyst@cern.ch>
9 //
10 //-----------------------------------------------------------------------------
11 
12 
15 
16 void LocalPositionCnv_p1 :: persToTrans( const Trk :: LocalPosition_p1 *persObj,
17  Amg::Vector2D *transObj,
18  MsgStream&)
19 {
20  (*transObj)[Trk::locX] = persObj->m_x;
21  (*transObj)[Trk::locY] = persObj->m_y;
22 }
23 
25  Trk :: LocalPosition_p1 *persObj,
26  MsgStream&)
27 {
28  persObj->m_x = (*transObj)[Trk::locX];
29  persObj->m_y = (*transObj)[Trk::locY];
30 }
Trk::locX
@ locX
Definition: ParamDefs.h:37
Trk::locY
@ locY
local cartesian
Definition: ParamDefs.h:38
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
ParamDefs.h
LocalPositionCnv_p1::transToPers
virtual void transToPers(const Amg::Vector2D *transObj, Trk ::LocalPosition_p1 *persObj, MsgStream &log)
Definition: LocalPositionCnv_p1.cxx:24
LocalPositionCnv_p1.h
LocalPositionCnv_p1::persToTrans
virtual void persToTrans(const Trk ::LocalPosition_p1 *persObj, Amg::Vector2D *transObj, MsgStream &log)
Definition: LocalPositionCnv_p1.cxx:16