ATLAS Offline Software
Loading...
Searching...
No Matches
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
16persToTrans( 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
24void 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
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Definition TPConverter.h:97
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
const InDet::SiWidth & width() const
return width class reference
SiWidthCnv_p1 * m_swCnv
void persToTrans(const InDet::SiCluster_p1 *, InDet::SiCluster *, MsgStream &)
PrepRawDataCnv_p1 * m_rawDataCnv
void transToPers(const InDet::SiCluster *, InDet::SiCluster_p1 *, MsgStream &)