ATLAS Offline Software
Loading...
Searching...
No Matches
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
14void 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
24void 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
Bounds for a cylindrical Surface.