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

#include <BoundSurfaceCnv_p2.h>

Inheritance diagram for BoundPlaneSurfaceCnv_p2:
Collaboration diagram for BoundPlaneSurfaceCnv_p2:

Public Member Functions

void persToTrans (const Trk::BoundSurface_p2 *, Trk::PlaneSurface *, MsgStream &)
 
void transToPers (const Trk::PlaneSurface *, Trk::BoundSurface_p2 *, MsgStream &)
 
Trk::PlaneSurfacecreateTransient (const Trk::BoundSurface_p2 *persObj, MsgStream &log)
 

Private Attributes

SurfaceCnv_p2< Trk::PlaneSurfacem_surfaceCnv
 
ITPConverterFor< Trk::SurfaceBounds > * m_boundsCnv
 

Detailed Description

Definition at line 74 of file BoundSurfaceCnv_p2.h.

Member Function Documentation

◆ createTransient()

Trk::PlaneSurface * BoundSurfaceCnv_p2< Trk::PlaneSurface >::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::PlaneSurface >::persToTrans ( const Trk::BoundSurface_p2 ,
Trk::PlaneSurface ,
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::PlaneSurface >::transToPers ( const Trk::PlaneSurface 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::PlaneSurface >::m_surfaceCnv
SurfaceCnv_p2< Trk::PlaneSurface > 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::PlaneSurface >::m_boundsCnv
ITPConverterFor< Trk::SurfaceBounds > * 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