ATLAS Offline Software
CylinderBoundsCnv_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: CylinderBounds_p1.cxx
8 // author: Lukasz Janyst <ljanyst@cern.ch>
9 //
10 //-----------------------------------------------------------------------------
13 
14 void CylinderBoundsCnv_p1 :: persToTrans( const Trk :: CylinderBounds_p1 *persObj,
15  Trk :: CylinderBounds *transObj,
16  MsgStream & )
17 {
18  *transObj = Trk::CylinderBounds (persObj->m_radius,
19  persObj->m_halfPhiSector,
20  persObj->m_averagePhi,
21  persObj->m_halfZ);
22 }
23 
24 void CylinderBoundsCnv_p1 :: transToPers( const Trk :: CylinderBounds *transObj,
25  Trk :: CylinderBounds_p1 *persObj,
26  MsgStream & )
27 {
28  persObj->m_radius = transObj->r();
29  persObj->m_averagePhi = transObj->averagePhi();
30  persObj->m_halfPhiSector = transObj->halfPhiSector();
31  persObj->m_halfZ = transObj->halflengthZ();
32 }
33 
Trk::CylinderBounds
Definition: CylinderBounds.h:46
CylinderBoundsCnv_p1::transToPers
void transToPers(const Trk::CylinderBounds *, Trk::CylinderBounds_p1 *, MsgStream &)
Definition: CylinderBoundsCnv_p1.cxx:24
CylinderBoundsCnv_p1::persToTrans
void persToTrans(const Trk::CylinderBounds_p1 *, Trk::CylinderBounds *, MsgStream &)
Definition: CylinderBoundsCnv_p1.cxx:14
CylinderBounds.h
CylinderBoundsCnv_p1.h