ATLAS Offline Software
TrapezoidBoundsCnv_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: TrapezoidBoundsCnv_p1.cxx
8 // author: Lukasz Janyst <ljanyst@cern.ch>
9 //
10 //-----------------------------------------------------------------------------
11 
14 
15 void TrapezoidBoundsCnv_p1 :: persToTrans( const Trk :: TrapezoidBounds_p1 *persObj,
16  Trk :: TrapezoidBounds *transObj,
17  MsgStream & )
18 {
19  using namespace Trk;
20  transObj->m_boundValues.resize(3);
21  assert(static_cast<int>(TrapezoidBounds::bv_length)==3);
22  transObj->m_boundValues[TrapezoidBounds::bv_minHalfX] = persObj->m_minHalfX;
23  transObj->m_boundValues[TrapezoidBounds::bv_maxHalfX] = persObj->m_maxHalfX;
24  transObj->m_boundValues[TrapezoidBounds::bv_halfY] = persObj->m_halfY;
25  transObj->m_alpha = persObj->m_alpha;
26  transObj->m_beta = persObj->m_beta;
27 }
28 
29 void TrapezoidBoundsCnv_p1 :: transToPers( const Trk :: TrapezoidBounds *transObj,
30  Trk :: TrapezoidBounds_p1 *persObj,
31  MsgStream & )
32 {
33  persObj->m_minHalfX = transObj->minHalflengthX();
34  persObj->m_maxHalfX = transObj->maxHalflengthX();
35  persObj->m_halfY = transObj->halflengthY();
36  persObj->m_alpha = transObj->m_alpha;
37  persObj->m_beta = transObj->m_beta;
38 }
TrapezoidBounds.h
TrapezoidBoundsCnv_p1.h
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
TrapezoidBoundsCnv_p1::persToTrans
void persToTrans(const Trk::TrapezoidBounds_p1 *, Trk::TrapezoidBounds *, MsgStream &)
Definition: TrapezoidBoundsCnv_p1.cxx:15
TrapezoidBoundsCnv_p1::transToPers
void transToPers(const Trk::TrapezoidBounds *, Trk::TrapezoidBounds_p1 *, MsgStream &)
Definition: TrapezoidBoundsCnv_p1.cxx:29