ATLAS Offline Software
DiamondBoundsCnv_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: DiamondBoundsCnv_p1.cxx
8 // author: Lukasz Janyst <ljanyst@cern.ch>
9 //
10 //-----------------------------------------------------------------------------
11 
14 
15 void DiamondBoundsCnv_p1 :: persToTrans( const Trk :: DiamondBounds_p1 *persObj,
16  Trk :: DiamondBounds *transObj,
17  MsgStream & )
18 {
19  using namespace Trk;
20  transObj->m_boundValues.resize(5);
21  assert(static_cast<int>(DiamondBounds::bv_length)==5);
22  transObj->m_boundValues[DiamondBounds::bv_minHalfX] = persObj->m_minHalfX;
23  transObj->m_boundValues[DiamondBounds::bv_medHalfX] = persObj->m_medHalfX;
24  transObj->m_boundValues[DiamondBounds::bv_maxHalfX] = persObj->m_maxHalfX;
25  transObj->m_boundValues[DiamondBounds::bv_halfY1] = persObj->m_halfY1;
26  transObj->m_boundValues[DiamondBounds::bv_halfY2] = persObj->m_halfY2;
27  transObj->m_alpha1 = persObj->m_alpha1;
28  transObj->m_alpha2 = persObj->m_alpha2;
29 }
30 
31 void DiamondBoundsCnv_p1 :: transToPers( const Trk :: DiamondBounds *transObj,
32  Trk :: DiamondBounds_p1 *persObj,
33  MsgStream & )
34 {
35  persObj->m_minHalfX = transObj->minHalflengthX();
36  persObj->m_medHalfX = transObj->medHalflengthX();
37  persObj->m_maxHalfX = transObj->maxHalflengthX();
38  persObj->m_halfY1 = transObj->halflengthY1();
39  persObj->m_halfY2 = transObj->halflengthY2();
40  persObj->m_alpha1 = transObj->alpha1();
41  persObj->m_alpha2 = transObj->alpha2();
42 }
DiamondBoundsCnv_p1.h
DiamondBoundsCnv_p1::transToPers
void transToPers(const Trk::DiamondBounds *, Trk::DiamondBounds_p1 *, MsgStream &)
Definition: DiamondBoundsCnv_p1.cxx:31
DiamondBounds.h
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
DiamondBoundsCnv_p1::persToTrans
void persToTrans(const Trk::DiamondBounds_p1 *, Trk::DiamondBounds *, MsgStream &)
Definition: DiamondBoundsCnv_p1.cxx:15