ATLAS Offline Software
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 }
SiWidth.h
InDet::SiWidth_p1::m_phirzWidth
TPObjRef m_phirzWidth
Definition: SiWidth_p1.h:26
Trk::locX
@ locX
Definition: ParamDefs.h:37
Trk::locY
@ locY
local cartesian
Definition: ParamDefs.h:38
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_p1::x
float x
Definition: SiWidth_p1.h:23
InDet::SiWidth::setRow
void setRow(const double row)
Definition: SiWidth.h:163
InDet::SiWidth_p1
Definition: SiWidth_p1.h:19
ITPConverterFor::fillTransFromPStore
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
Convert persistent object, stored in the the top-level persistent object and referenced by the TP Ref...
Definition: TPConverter.h:145
SiWidthCnv_p1.h
SiWidthCnv_p1::transToPers
void transToPers(const InDet::SiWidth *, InDet::SiWidth_p1 *, MsgStream &)
Definition: SiWidthCnv_p1.cxx:26
ITPConverterFor::toPersistent
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
Persistify an object and store the persistent represenation in the storage vector of the top-level pe...
Definition: TPConverter.h:119
SiWidthCnv_p1::persToTrans
void persToTrans(const InDet::SiWidth_p1 *, InDet::SiWidth *, MsgStream &)
Definition: SiWidthCnv_p1.cxx:14
InDet::SiWidth_p1::y
float y
Definition: SiWidth_p1.h:24
SiWidthCnv_p1::m_localPosCnv
LocalPositionCnv_p1 * m_localPosCnv
Definition: SiWidthCnv_p1.h:31
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
readCCLHist.float
float
Definition: readCCLHist.py:83