ATLAS Offline Software
Loading...
Searching...
No Matches
SiWidthCnv_p2.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: SiWidthCnv_p2.cxx
8//
9//-----------------------------------------------------------------------------
10
12
14
16 InDet::SiWidth *transObj, MsgStream &log )
17{
18// if (log.level() <= MSG::VERBOSE) log << MSG::VERBOSE << "in SiWidthCnv_p2::persToTrans" << endmsg;
19 transObj->setColumn (persObj->m_size >> 8);
20 transObj->setRow (persObj->m_size & 0xFF );
21 Amg::Vector2D phirzwidth;
22 m_localPosCnv.persToTrans(&persObj->m_phirzWidth, &phirzwidth, log);
23 transObj->setPhirzWidth (phirzwidth);
24}
25
26
28 InDet::SiWidth_p2 *persObj, MsgStream &log )
29{
30// if (log.level() <= MSG::VERBOSE) log<< MSG::VERBOSE << "in SiWidthCnv_p2::transToPERS" << endmsg;
31 persObj->m_size = ( (unsigned int) transObj->colRow()[Trk::locX] << 8) | ( (unsigned int) transObj->colRow()[Trk::locY] );
32 m_localPosCnv.transToPers(&transObj->widthPhiRZ(), &persObj->m_phirzWidth, log);
33}
LocalPositionCnv_p1 m_localPosCnv
void persToTrans(const InDet::SiWidth_p2 *, InDet::SiWidth *, MsgStream &)
void transToPers(const InDet::SiWidth *, InDet::SiWidth_p2 *, MsgStream &)
Trk::LocalPosition_p1 m_phirzWidth
Definition SiWidth_p2.h:28
unsigned int m_size
Definition SiWidth_p2.h:27
void setRow(const double row)
Definition SiWidth.h:163
const Amg::Vector2D & widthPhiRZ() const
Definition SiWidth.h:121
const Amg::Vector2D & colRow() const
Definition SiWidth.h:115
void setColumn(const double col)
Definition SiWidth.h:158
void setPhirzWidth(const Amg::Vector2D &phirzWidth)
Definition SiWidth.h:181
Eigen::Matrix< double, 2, 1 > Vector2D
@ locY
local cartesian
Definition ParamDefs.h:38
@ locX
Definition ParamDefs.h:37