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

#include <BoundSurfaceCnv_p2.h>

Inheritance diagram for BoundConeSurfaceCnv_p2:
Collaboration diagram for BoundConeSurfaceCnv_p2:

Public Member Functions

void persToTrans (const Trk::BoundSurface_p2 *, Trk::ConeSurface *, MsgStream &)
 
void transToPers (const Trk::ConeSurface *, Trk::BoundSurface_p2 *, MsgStream &)
 
Trk::ConeSurfacecreateTransient (const Trk::BoundSurface_p2 *persObj, MsgStream &log)
 

Private Attributes

SurfaceCnv_p2< Trk::ConeSurfacem_surfaceCnv
 
ConeBoundsCnv_p1m_boundsCnv
 

Detailed Description

Definition at line 77 of file BoundSurfaceCnv_p2.h.

Member Function Documentation

◆ createTransient()

Trk::ConeSurface * BoundSurfaceCnv_p2< Trk::ConeSurface >::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::ConeSurface >::persToTrans ( const Trk::BoundSurface_p2 ,
Trk::ConeSurface ,
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::ConeSurface >::transToPers ( const Trk::ConeSurface 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::ConeSurface, ConeBoundsCnv_p1 >::m_surfaceCnv
SurfaceCnv_p2< Trk::ConeSurface > 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::ConeSurface, ConeBoundsCnv_p1 >::m_boundsCnv
ConeBoundsCnv_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