Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
BoundSurfaceCnv_p2< SURFACE, BOUNDS_CNV > Class Template Reference

#include <ConeSurface.h>

Collaboration diagram for BoundSurfaceCnv_p2< SURFACE, BOUNDS_CNV >:

Public Member Functions

 BoundSurfaceCnv_p2 ()
 
void persToTrans (const Trk::BoundSurface_p2 *, SURFACE *, MsgStream &)
 
void transToPers (const SURFACE *, Trk::BoundSurface_p2 *, MsgStream &)
 
SURFACE * createTransient (const Trk::BoundSurface_p2 *persObj, MsgStream &log)
 

Private Attributes

SurfaceCnv_p2< SURFACE > m_surfaceCnv
 
BOUNDS_CNV * m_boundsCnv
 

Detailed Description

template<class SURFACE, class BOUNDS_CNV = ITPConverterFor<Trk::SurfaceBounds>>
class BoundSurfaceCnv_p2< SURFACE, BOUNDS_CNV >

Definition at line 27 of file ConeSurface.h.

Constructor & Destructor Documentation

◆ BoundSurfaceCnv_p2()

template<class SURFACE , class BOUNDS_CNV = ITPConverterFor<Trk::SurfaceBounds>>
BoundSurfaceCnv_p2< SURFACE, BOUNDS_CNV >::BoundSurfaceCnv_p2 ( )
inline

Definition at line 38 of file BoundSurfaceCnv_p2.h.

38 : m_boundsCnv(0) {}

Member Function Documentation

◆ createTransient()

template<class SURFACE >
SURFACE * BoundSurfaceCnv_p2< SURFACE >::createTransient ( const Trk::BoundSurface_p2 persObj,
MsgStream &  log 
)

Definition at line 30 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()

template<class SURFACE >
void BoundSurfaceCnv_p2< SURFACE >::persToTrans ( const Trk::BoundSurface_p2 ,
SURFACE *  ,
MsgStream &   
)

Definition at line 22 of file BoundSurfaceCnv_p2.cxx.

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

◆ transToPers()

template<class SURFACE >
void BoundSurfaceCnv_p2< SURFACE >::transToPers ( const SURFACE *  transObj,
Trk::BoundSurface_p2 persObj,
MsgStream &  log 
)

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

template<class SURFACE , class BOUNDS_CNV = ITPConverterFor<Trk::SurfaceBounds>>
BOUNDS_CNV* BoundSurfaceCnv_p2< SURFACE, BOUNDS_CNV >::m_boundsCnv
private

Definition at line 46 of file BoundSurfaceCnv_p2.h.

◆ m_surfaceCnv

template<class SURFACE , class BOUNDS_CNV = ITPConverterFor<Trk::SurfaceBounds>>
SurfaceCnv_p2< SURFACE > BoundSurfaceCnv_p2< SURFACE, BOUNDS_CNV >::m_surfaceCnv
private

Definition at line 45 of file BoundSurfaceCnv_p2.h.


The documentation for this class was generated from the following files:
BoundSurfaceCnv_p2::m_surfaceCnv
SurfaceCnv_p2< SURFACE > m_surfaceCnv
Definition: BoundSurfaceCnv_p2.h:45
BoundSurfaceCnv_p2::m_boundsCnv
BOUNDS_CNV * 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