ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
BoundCylinderSurfaceCnv_p2 Class Reference

#include <BoundSurfaceCnv_p2.h>

Inheritance diagram for BoundCylinderSurfaceCnv_p2:
Collaboration diagram for BoundCylinderSurfaceCnv_p2:

Public Member Functions

void persToTrans (const Trk::BoundSurface_p2 *, Trk::CylinderSurface *, MsgStream &)
 
void transToPers (const Trk::CylinderSurface *, Trk::BoundSurface_p2 *, MsgStream &)
 
Trk::CylinderSurfacecreateTransient (const Trk::BoundSurface_p2 *persObj, MsgStream &log)
 

Private Attributes

SurfaceCnv_p2< Trk::CylinderSurfacem_surfaceCnv
 
CylinderBoundsCnv_p1m_boundsCnv
 

Detailed Description

Definition at line 68 of file BoundSurfaceCnv_p2.h.

Member Function Documentation

◆ createTransient()

Trk::CylinderSurface * BoundSurfaceCnv_p2< Trk::CylinderSurface >::createTransient ( const Trk::BoundSurface_p2 persObj,
MsgStream &  log 
)
inherited

Definition at line 42 of file BoundSurfaceCnv_p2.cxx.

31 {
32  SURFACE* transObj = m_surfaceCnv.createTransient( persObj, log );
33  typename BOUNDS_CNV::Trans_t* bounds = this->createTransFromPStore( &m_boundsCnv, persObj->m_bounds, log );
34  transObj->m_bounds = Trk::SharedObject<typename BOUNDS_CNV::Trans_t>(bounds);
35  return transObj;
36 }

◆ persToTrans()

void BoundSurfaceCnv_p2< Trk::CylinderSurface >::persToTrans ( const Trk::BoundSurface_p2 ,
Trk::CylinderSurface ,
MsgStream &   
)
inherited

Definition at line 40 of file BoundSurfaceCnv_p2.cxx.

24 {
25  throw std::runtime_error("BoundSurfaceCnv_p2::persToTrans shouldn't be called any more!");
26 }

◆ transToPers()

void BoundSurfaceCnv_p2< Trk::CylinderSurface >::transToPers ( const Trk::CylinderSurface transObj,
Trk::BoundSurface_p2 persObj,
MsgStream &  log 
)
inherited

Definition at line 41 of file BoundSurfaceCnv_p2.cxx.

43 {
44  m_surfaceCnv.transToPers( transObj, persObj, log );
45  if ((transObj->m_bounds).get() && !dynamic_cast<const Trk::NoBounds*>((transObj->m_bounds).get()))
46  persObj->m_bounds = this->toPersistent( &m_boundsCnv, (transObj->m_bounds).get(), log );
47 }

Member Data Documentation

◆ m_boundsCnv

Definition at line 46 of file BoundSurfaceCnv_p2.h.

◆ m_surfaceCnv

Definition at line 45 of file BoundSurfaceCnv_p2.h.


The documentation for this class was generated from the following file:
BoundSurfaceCnv_p2< Trk::CylinderSurface, CylinderBoundsCnv_p1 >::m_surfaceCnv
SurfaceCnv_p2< Trk::CylinderSurface > m_surfaceCnv
Definition: BoundSurfaceCnv_p2.h:45
SurfaceCnv_p2::createTransient
SURFACE * createTransient(const Trk::Surface_p2 *persObj, MsgStream &log)
Definition: SurfaceCnv_p2.cxx:23
SurfaceCnv_p2::transToPers
void transToPers(const SURFACE *, Trk::Surface_p2 *, MsgStream &)
Definition: SurfaceCnv_p2.cxx:52
BoundSurfaceCnv_p2< Trk::CylinderSurface, CylinderBoundsCnv_p1 >::m_boundsCnv
CylinderBoundsCnv_p1 * m_boundsCnv
Definition: BoundSurfaceCnv_p2.h:46
Trk::BoundSurface_p2::m_bounds
TPObjRef m_bounds
Definition: BoundSurface_p2.h:23
Trk::NoBounds
Definition: NoBounds.h:30
Trk::SharedObject
std::shared_ptr< T > SharedObject
Definition: SharedObject.h:24
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20