ATLAS Offline Software
RotatedTrapezoidBoundsCnv_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: RotatedTrapezoidBoundsCnv_p1.cxx
8 //
9 //-----------------------------------------------------------------------------
10 
13 
14 void RotatedTrapezoidBoundsCnv_p1 :: persToTrans( const Trk :: RotatedTrapezoidBounds_p1 *persObj,
15  Trk :: RotatedTrapezoidBounds *transObj,
16  MsgStream & )
17 {
18  using namespace Trk;
19  transObj->m_boundValues.resize(3);
20  assert(static_cast<int>(RotatedTrapezoidBounds::bv_length)==3);
21  transObj->m_boundValues[RotatedTrapezoidBounds::bv_minHalfY] = persObj->m_minHalfY;
22  transObj->m_boundValues[RotatedTrapezoidBounds::bv_maxHalfY] = persObj->m_maxHalfY;
23  transObj->m_boundValues[RotatedTrapezoidBounds::bv_halfX] = persObj->m_halfX;
24  transObj->m_kappa = persObj->m_kappa;
25  transObj->m_delta = persObj->m_delta;
26 }
27 
28 void RotatedTrapezoidBoundsCnv_p1 :: transToPers( const Trk :: RotatedTrapezoidBounds *transObj,
29  Trk :: RotatedTrapezoidBounds_p1 *persObj,
30  MsgStream & )
31 {
32  persObj->m_minHalfY = transObj->minHalflengthY();
33  persObj->m_maxHalfY = transObj->maxHalflengthY();
34  persObj->m_halfX = transObj->halflengthX();
35  persObj->m_kappa = transObj->m_kappa;
36  persObj->m_delta = transObj->m_delta;
37 }
RotatedTrapezoidBoundsCnv_p1.h
RotatedTrapezoidBoundsCnv_p1::transToPers
void transToPers(const Trk::RotatedTrapezoidBounds *, Trk::RotatedTrapezoidBounds_p1 *, MsgStream &)
Definition: RotatedTrapezoidBoundsCnv_p1.cxx:28
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
RotatedTrapezoidBoundsCnv_p1::persToTrans
void persToTrans(const Trk::RotatedTrapezoidBounds_p1 *, Trk::RotatedTrapezoidBounds *, MsgStream &)
Definition: RotatedTrapezoidBoundsCnv_p1.cxx:14
RotatedTrapezoidBounds.h