ATLAS Offline Software
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 }
InDet::SiWidthCnv_p2::transToPers
void transToPers(const InDet::SiWidth *, InDet::SiWidth_p2 *, MsgStream &)
Definition: SiWidthCnv_p2.cxx:27
SiWidth.h
Trk::locX
@ locX
Definition: ParamDefs.h:43
Trk::locY
@ locY
local cartesian
Definition: ParamDefs.h:44
SiWidthCnv_p2.h
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
InDet::SiWidth::widthPhiRZ
const Amg::Vector2D & widthPhiRZ() const
Definition: SiWidth.h:121
InDet::SiWidth::setColumn
void setColumn(const double col)
Definition: SiWidth.h:158
InDet::SiWidth::setRow
void setRow(const double row)
Definition: SiWidth.h:163
InDet::SiWidthCnv_p2::m_localPosCnv
LocalPositionCnv_p1 m_localPosCnv
Definition: SiWidthCnv_p2.h:34
LocalPositionCnv_p1::transToPers
virtual void transToPers(const Amg::Vector2D *transObj, Trk ::LocalPosition_p1 *persObj, MsgStream &log)
Definition: LocalPositionCnv_p1.cxx:24
InDet::SiWidth_p2
Definition: SiWidth_p2.h:22
LocalPositionCnv_p1::persToTrans
virtual void persToTrans(const Trk ::LocalPosition_p1 *persObj, Amg::Vector2D *transObj, MsgStream &log)
Definition: LocalPositionCnv_p1.cxx:16
InDet::SiWidth_p2::m_phirzWidth
Trk::LocalPosition_p1 m_phirzWidth
Definition: SiWidth_p2.h:28
InDet::SiWidth_p2::m_size
unsigned int m_size
Definition: SiWidth_p2.h:27
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
InDet::SiWidth
Definition: SiWidth.h:25
InDet::SiWidth::colRow
const Amg::Vector2D & colRow() const
Definition: SiWidth.h:115
InDet::SiWidth::setPhirzWidth
void setPhirzWidth(const Amg::Vector2D &phirzWidth)
Definition: SiWidth.h:181
InDet::SiWidthCnv_p2::persToTrans
void persToTrans(const InDet::SiWidth_p2 *, InDet::SiWidth *, MsgStream &)
Definition: SiWidthCnv_p2.cxx:15