ATLAS Offline Software
Loading...
Searching...
No Matches
ConeBoundsCnv_p1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5//-----------------------------------------------------------------------------
6//
7// file: ConeBoundsCnv_p1.cxx
8// author: Lukasz Janyst <ljanyst@cern.ch>
9//
10//-----------------------------------------------------------------------------
11
14
15void ConeBoundsCnv_p1 :: persToTrans( const Trk :: ConeBounds_p1 *persObj,
16 Trk :: ConeBounds *transObj,
17 MsgStream & )
18{
19 *transObj = Trk::ConeBounds (persObj->m_alpha,
20 persObj->m_minZ,
21 persObj->m_maxZ,
22 persObj->m_avePhi,
23 persObj->m_halfPhiSector);
24}
25
26void ConeBoundsCnv_p1 :: transToPers( const Trk :: ConeBounds *transObj,
27 Trk :: ConeBounds_p1 *persObj,
28 MsgStream & )
29{
30 persObj->m_alpha = transObj->alpha();
31 persObj->m_minZ = transObj->minZ();
32 persObj->m_maxZ = transObj->maxZ();
33 persObj->m_avePhi = transObj->averagePhi();
34 persObj->m_halfPhiSector = transObj->halfPhiSector();
35}
Bounds for a conical Surface, the opening angle is stored in and always positively defined.
Definition ConeBounds.h:44