ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
BoundSurfaceCnv_p1< SURFACE, BOUNDS_CNV > Class Template Reference

#include <ConeSurface.h>

Collaboration diagram for BoundSurfaceCnv_p1< SURFACE, BOUNDS_CNV >:

Public Member Functions

 BoundSurfaceCnv_p1 ()
 
void persToTrans (const Trk::BoundSurface_p1 *, SURFACE *, MsgStream &)
 
void transToPers (const SURFACE *, Trk::BoundSurface_p1 *, MsgStream &)
 

Private Attributes

SurfaceCnv_p1 m_surfaceCnv
 
BOUNDS_CNV * m_boundsCnv
 

Detailed Description

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

Definition at line 25 of file ConeSurface.h.

Constructor & Destructor Documentation

◆ BoundSurfaceCnv_p1()

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

Definition at line 34 of file BoundSurfaceCnv_p1.h.

34 : m_boundsCnv(0) {}

Member Function Documentation

◆ persToTrans()

template<class SURFACE >
void BoundSurfaceCnv_p1< SURFACE >::persToTrans ( const Trk::BoundSurface_p1 persObj,
SURFACE *  transObj,
MsgStream &  log 
)

Definition at line 22 of file BoundSurfaceCnv_p1.cxx.

24 {
25  m_surfaceCnv.persToTrans( persObj, transObj, log );
26  Trk::SurfaceBounds* bounds = this->createTransFromPStore( &m_boundsCnv, persObj->m_bounds, log );
27  transObj->m_bounds = Trk::SharedObject<const Trk::SurfaceBounds>(bounds);
28 }

◆ transToPers()

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

Definition at line 56 of file BoundSurfaceCnv_p1.cxx.

58 {
59  m_surfaceCnv.transToPers( transObj, persObj, log );
60  if ((transObj->m_bounds).get() && !dynamic_cast<const Trk::NoBounds*>((transObj->m_bounds).get()))
61  log<<MSG::WARNING<<" No longer writing out bounds... "<<endmsg;
62 }

Member Data Documentation

◆ m_boundsCnv

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

Definition at line 41 of file BoundSurfaceCnv_p1.h.

◆ m_surfaceCnv

template<class SURFACE , class BOUNDS_CNV = ITPConverterFor<Trk::SurfaceBounds>>
SurfaceCnv_p1 BoundSurfaceCnv_p1< SURFACE, BOUNDS_CNV >::m_surfaceCnv
private

Definition at line 40 of file BoundSurfaceCnv_p1.h.


The documentation for this class was generated from the following files:
Trk::BoundSurface_p1::m_bounds
TPObjRef m_bounds
Definition: BoundSurface_p1.h:23
Trk::SurfaceBounds
Definition: SurfaceBounds.h:47
BoundSurfaceCnv_p1::m_surfaceCnv
SurfaceCnv_p1 m_surfaceCnv
Definition: BoundSurfaceCnv_p1.h:40
SurfaceCnv_p1::transToPers
void transToPers(const Trk::Surface *, Trk::Surface_p1 *, MsgStream &)
Definition: SurfaceCnv_p1.cxx:42
SurfaceCnv_p1::persToTrans
void persToTrans(const Trk::Surface_p1 *, Trk::Surface *, MsgStream &)
Definition: SurfaceCnv_p1.cxx:18
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
BoundSurfaceCnv_p1::m_boundsCnv
BOUNDS_CNV * m_boundsCnv
Definition: BoundSurfaceCnv_p1.h:41
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