ATLAS Offline Software
MuonClusterOnTrackCnv_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: MuonClusterOnTrackCnv_p1.cxx
8 //
9 //-----------------------------------------------------------------------------
10 
12 
14 
15 
18  Muon::MuonClusterOnTrack *transObj, MsgStream &log )
19 {
20  //std::cout<<"MuonClusterOnTrackCnv_p1::persToTrans start "<<std::endl;
21  fillTransFromPStore( &m_RIOCnv, persObj->m_RIO, transObj, log );
22  transObj->m_positionAlongStrip = persObj->m_positionAlongStrip;
23  //std::cout<<"MuonClusterOnTrackCnv_p1::persToTrans end"<<std::endl;
24 }
25 
26 
28 transToPers( const Muon::MuonClusterOnTrack *transObj,
29  Muon::MuonClusterOnTrack_p1 *persObj, MsgStream &log )
30 {
31  //std::cout<<"MuonClusterOnTrackCnv_p1::transToPers start"<<std::endl;
32  persObj->m_RIO = baseToPersistent( &m_RIOCnv, static_cast<const Trk::RIO_OnTrack*>(transObj), log );
33  persObj->m_positionAlongStrip = transObj->positionAlongStrip();
34  //std::cout<<"MuonClusterOnTrackCnv_p1::transToPers end"<<std::endl;
35 }
36 
37 
MuonClusterOnTrackCnv_p1::transToPers
void transToPers(const Muon ::MuonClusterOnTrack *transObj, Muon ::MuonClusterOnTrack_p1 *persObj, MsgStream &log)
Definition: MuonClusterOnTrackCnv_p1.cxx:28
Muon::MuonClusterOnTrack_p1
Version 1 of the persistent class representing the transient class Muon::MuonClusterOnTrack.
Definition: MuonClusterOnTrack_p1.h:26
Trk::RIO_OnTrack
Definition: RIO_OnTrack.h:70
MuonClusterOnTrackCnv_p1::m_RIOCnv
RIO_OnTrackCnv_p1 * m_RIOCnv
Definition: MuonClusterOnTrackCnv_p1.h:40
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
Muon::MuonClusterOnTrack_p1::m_positionAlongStrip
float m_positionAlongStrip
Hashed ID - needed for fast lookup of e.g.
Definition: MuonClusterOnTrack_p1.h:36
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
Muon::MuonClusterOnTrack_p1::m_RIO
TPObjRef m_RIO
Link to base RIO_OnTrack_p1.
Definition: MuonClusterOnTrack_p1.h:31
MuonClusterOnTrackCnv_p1.h
MuonClusterOnTrackCnv_p1::persToTrans
void persToTrans(const Muon ::MuonClusterOnTrack_p1 *persObj, Muon ::MuonClusterOnTrack *transObj, MsgStream &log)
Definition: MuonClusterOnTrackCnv_p1.cxx:17
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Muon::MuonClusterOnTrack::positionAlongStrip
virtual double positionAlongStrip() const
Definition: MuonClusterOnTrack.h:68
MuonClusterOnTrack.h
Muon::MuonClusterOnTrack
Base class for Muon cluster RIO_OnTracks.
Definition: MuonClusterOnTrack.h:34
Muon::MuonClusterOnTrack::m_positionAlongStrip
double m_positionAlongStrip
The position along the strip - used to calculate the GlobalPosition.
Definition: MuonClusterOnTrack.h:97