ATLAS Offline Software
SiClusterCnv_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: SiClusterCnv_p1.cxx
8 //
9 //-----------------------------------------------------------------------------
10 
13 
14 
16 persToTrans( const InDet::SiCluster_p1 *persObj, InDet::SiCluster *transObj, MsgStream &log)
17 {
18 // if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "In SiCluster::persToTrans" << endmsg;
19  fillTransFromPStore( &m_rawDataCnv, persObj->m_rawData, transObj, log );
20  fillTransFromPStore( &m_swCnv, persObj->m_width, &transObj->m_width, log );
21 }
22 
23 
24 void SiClusterCnv_p1::transToPers( const InDet::SiCluster *transObj, InDet::SiCluster_p1 *persObj, MsgStream &log )
25 {
26 // if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "In SiCluster::transToPers" << endmsg;
27  persObj->m_rawData = baseToPersistent( &m_rawDataCnv, transObj, log );
28  persObj->m_width = toPersistent( &m_swCnv, &transObj->width(), log );
29 }
30 
31 
SiClusterCnv_p1::m_rawDataCnv
PrepRawDataCnv_p1 * m_rawDataCnv
Definition: SiClusterCnv_p1.h:35
SiClusterCnv_p1::persToTrans
void persToTrans(const InDet::SiCluster_p1 *, InDet::SiCluster *, MsgStream &)
Definition: SiClusterCnv_p1.cxx:16
SiClusterCnv_p1.h
InDet::SiCluster::m_width
InDet::SiWidth m_width
col, row, and width in mm
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/SiCluster.h:137
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
InDet::SiCluster_p1
Definition: SiCluster_p1.h:19
SiClusterCnv_p1::m_swCnv
SiWidthCnv_p1 * m_swCnv
Definition: SiClusterCnv_p1.h:36
ITPConverterFor< TRANS_BASE >::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
InDet::SiCluster_p1::m_rawData
TPObjRef m_rawData
Definition: SiCluster_p1.h:24
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
SiCluster.h
InDet::SiCluster_p1::m_width
TPObjRef m_width
Definition: SiCluster_p1.h:27
InDet::SiCluster::width
const InDet::SiWidth & width() const
return width class reference
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
SiClusterCnv_p1::transToPers
void transToPers(const InDet::SiCluster *, InDet::SiCluster_p1 *, MsgStream &)
Definition: SiClusterCnv_p1.cxx:24
InDet::SiCluster
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/SiCluster.h:40