ATLAS Offline Software
Loading...
Searching...
No Matches
SiWidthCnv_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: SiWidthCnv_p1.cxx
8//
9//-----------------------------------------------------------------------------
10
13
15 InDet::SiWidth *transObj, MsgStream &log )
16{
17// if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "in SiWidthCnv_p1::persToTrans" << endmsg;
18 transObj->setColumn (persObj->x);
19 transObj->setRow (persObj->y);
20 Amg::Vector2D phirzwidth;
21 fillTransFromPStore( &m_localPosCnv, persObj->m_phirzWidth, &phirzwidth, log );
22 transObj->setPhirzWidth (phirzwidth);
23}
24
25
27 InDet::SiWidth_p1 *persObj, MsgStream &log )
28{
29// if (log.level() <= MSG::DEBUG) log<< MSG::DEBUG << "in SiWidthCnv_p1::transToPERS" << endmsg;
30 persObj->x = (float) transObj->colRow()[Trk::locX];
31 persObj->y = (float) transObj->colRow()[Trk::locY];
32 persObj->m_phirzWidth = toPersistent( &m_localPosCnv, &transObj->widthPhiRZ(), log );
33}
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
TPObjRef m_phirzWidth
Definition SiWidth_p1.h:26
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
void transToPers(const InDet::SiWidth *, InDet::SiWidth_p1 *, MsgStream &)
void persToTrans(const InDet::SiWidth_p1 *, InDet::SiWidth *, MsgStream &)
LocalPositionCnv_p1 * m_localPosCnv
Eigen::Matrix< double, 2, 1 > Vector2D
@ locY
local cartesian
Definition ParamDefs.h:38
@ locX
Definition ParamDefs.h:37