ATLAS Offline Software
PixelClusterCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //-----------------------------------------------------------------------------
6 //
7 // file: PixelClusterCnv_p1.cxx
8 //
9 //-----------------------------------------------------------------------------
10 
13 
15 persToTrans( const InDet::PixelCluster_p1 *persObj, InDet::PixelCluster *transObj,MsgStream &log )
16 {
17  Amg::Vector2D localPos;
18  localPos.setZero();
19  *transObj =
20  InDet::PixelCluster (Identifier(), // RDOId
21  localPos,
22  std::vector<Identifier>(), // rdoList
23  0, // lvl1a
24  0, // totalToT
25  std::vector<float>(), // chargeList
26  0, // totalCharge
28  nullptr, //detEl
29  {}, // cmat
30  persObj->m_omegax,
31  persObj->m_omegay,
32  0 //splitInfo
33  );
34  fillTransFromPStore( &m_siClusterCnv, persObj->m_siCluster, transObj, log );
35 }
36 
38 transToPers( const InDet::PixelCluster *transObj, InDet::PixelCluster_p1 *persObj, MsgStream &log )
39 {
40 // if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "PixelClusterCnv_p1::transToPers" << endmsg;
41  persObj->m_siCluster = baseToPersistent( &m_siClusterCnv, transObj, log );
42  persObj->m_omegax = transObj->omegax();
43  persObj->m_omegay = transObj->omegay();
44 }
45 
46 
PixelClusterCnv_p1.h
InDet::PixelCluster::omegay
float omegay() const
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/PixelCluster.h:197
InDet::PixelCluster_p1
Definition: PixelCluster_p1.h:18
PixelCluster.h
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
PixelClusterCnv_p1::persToTrans
void persToTrans(const InDet::PixelCluster_p1 *persObj, InDet::PixelCluster *transObj, MsgStream &log)
Definition: PixelClusterCnv_p1.cxx:15
ITPConverterFor< TRANS_BASE >::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
PixelClusterCnv_p1::m_siClusterCnv
SiClusterCnv_p1 * m_siClusterCnv
Definition: PixelClusterCnv_p1.h:35
InDet::PixelCluster_p1::m_omegax
float m_omegax
Definition: PixelCluster_p1.h:23
PixelClusterCnv_p1::transToPers
void transToPers(const InDet::PixelCluster *transObj, InDet::PixelCluster_p1 *persObj, MsgStream &log)
Definition: PixelClusterCnv_p1.cxx:38
ITPConverterFor< TRANS_BASE >::baseToPersistent
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Persistify bass class of a given object and store the persistent represenation in the storage vector ...
Definition: TPConverter.h:97
InDet::PixelCluster_p1::m_siCluster
TPObjRef m_siCluster
Definition: PixelCluster_p1.h:22
InDet::PixelCluster
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/PixelCluster.h:49
InDet::PixelCluster::omegax
float omegax() const
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/PixelCluster.h:193
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
InDet::SiWidth
Definition: SiWidth.h:25
InDet::PixelCluster_p1::m_omegay
float m_omegay
Definition: PixelCluster_p1.h:24
Identifier
Definition: IdentifierFieldParser.cxx:14