ATLAS Offline Software
Loading...
Searching...
No Matches
Trk::TrackToVtxLink Class Reference

#include <TrackToVtxLink.h>

Collaboration diagram for Trk::TrackToVtxLink:

Public Member Functions

 TrackToVtxLink ()
 Default constructor.
 ~TrackToVtxLink ()
 Destructor.
 TrackToVtxLink (const TrackToVtxLink &rhs)
 Copy constructor.
TrackToVtxLinkoperator= (const TrackToVtxLink &rhs)
 Assignement operator.
 TrackToVtxLink (std::vector< xAOD::Vertex * > *ptrToVertices)
 Constructor with also pointer to vertexes.
const std::vector< xAOD::Vertex * > * vertices (void) const
 Const access to the vertex list.
std::vector< xAOD::Vertex * > * vertices (void)
 Unconst access to the vertex list.

Private Attributes

std::vector< xAOD::Vertex * > * m_vertices
 Infos about vertexes which the track can be referred to.

Detailed Description

Definition at line 34 of file TrackToVtxLink.h.

Constructor & Destructor Documentation

◆ TrackToVtxLink() [1/3]

Trk::TrackToVtxLink::TrackToVtxLink ( )

Default constructor.

Definition at line 27 of file TrackToVtxLink.cxx.

27: m_vertices(nullptr) {}

◆ ~TrackToVtxLink()

Trk::TrackToVtxLink::~TrackToVtxLink ( )

Destructor.

Definition at line 33 of file TrackToVtxLink.cxx.

34 {
35 if (m_vertices!=nullptr) {
36 delete m_vertices;
37 m_vertices=nullptr;
38 }
39 }

◆ TrackToVtxLink() [2/3]

Trk::TrackToVtxLink::TrackToVtxLink ( const TrackToVtxLink & rhs)

Copy constructor.

Definition at line 42 of file TrackToVtxLink.cxx.

42 :
43 m_vertices(rhs.m_vertices ? new std::vector<xAOD::Vertex*>(*rhs.m_vertices) : nullptr) { }

◆ TrackToVtxLink() [3/3]

Trk::TrackToVtxLink::TrackToVtxLink ( std::vector< xAOD::Vertex * > * ptrToVertices)

Constructor with also pointer to vertexes.

Definition at line 30 of file TrackToVtxLink.cxx.

31 : m_vertices(ptrToVertices) {}

Member Function Documentation

◆ operator=()

TrackToVtxLink & Trk::TrackToVtxLink::operator= ( const TrackToVtxLink & rhs)

Assignement operator.

Definition at line 47 of file TrackToVtxLink.cxx.

48 {
49 if (this!=&rhs)
50 {
51 delete m_vertices;
52 m_vertices = m_vertices ? new std::vector<xAOD::Vertex*>(*rhs.m_vertices) : nullptr;
53 }
54 return *this;
55 }

◆ vertices() [1/2]

std::vector< xAOD::Vertex * > * Trk::TrackToVtxLink::vertices ( void )
inline

Unconst access to the vertex list.

Definition at line 86 of file TrackToVtxLink.h.

86 {
87 return m_vertices;
88 }

◆ vertices() [2/2]

const std::vector< xAOD::Vertex * > * Trk::TrackToVtxLink::vertices ( void ) const
inline

Const access to the vertex list.

Definition at line 82 of file TrackToVtxLink.h.

82 {
83 return m_vertices;
84 }

Member Data Documentation

◆ m_vertices

std::vector<xAOD::Vertex*>* Trk::TrackToVtxLink::m_vertices
private

Infos about vertexes which the track can be referred to.

Definition at line 78 of file TrackToVtxLink.h.


The documentation for this class was generated from the following files: