ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
Trk::VxSecVertexInfo Class Reference

#include <VxSecVertexInfo.h>

Inheritance diagram for Trk::VxSecVertexInfo:
Collaboration diagram for Trk::VxSecVertexInfo:

Public Member Functions

 VxSecVertexInfo ()
 
 VxSecVertexInfo (std::vector< xAOD::Vertex * >)
 
virtual VxSecVertexInfoclone () const
 
virtual ~VxSecVertexInfo ()
 
 VxSecVertexInfo (const VxSecVertexInfo &)
 
 VxSecVertexInfo (VxSecVertexInfo &&) noexcept=default
 
VxSecVertexInfooperator= (const VxSecVertexInfo &)
 
VxSecVertexInfooperator= (VxSecVertexInfo &&) noexcept=default
 
const std::vector< xAOD::Vertex * > & vertices () const
 
void setVertices (const std::vector< xAOD::Vertex * > &)
 
void setSVOwnership (bool Ownership)
 

Protected Attributes

std::vector< xAOD::Vertex * > m_vertices
 
bool m_SVOwnership
 

Detailed Description

Definition at line 62 of file VxSecVertexInfo.h.

Constructor & Destructor Documentation

◆ VxSecVertexInfo() [1/4]

Trk::VxSecVertexInfo::VxSecVertexInfo ( )

Definition at line 36 of file VxSecVertexInfo.cxx.

36 {

◆ VxSecVertexInfo() [2/4]

Trk::VxSecVertexInfo::VxSecVertexInfo ( std::vector< xAOD::Vertex * >  vertices)

Definition at line 38 of file VxSecVertexInfo.cxx.

38  {
39  delete myCandidate;
40  } else {

◆ ~VxSecVertexInfo()

Trk::VxSecVertexInfo::~VxSecVertexInfo ( )
virtual

Definition at line 42 of file VxSecVertexInfo.cxx.

47  {
48 
49  std::vector<xAOD::Vertex*>::const_iterator verticesBegin=rhs.m_vertices.begin();
50  std::vector<xAOD::Vertex*>::const_iterator verticesEnd=rhs.m_vertices.end();
51 
52  for (std::vector<xAOD::Vertex*>::const_iterator verticesIter=verticesBegin;
53  verticesIter!=verticesEnd;++verticesIter) {
54  xAOD::Vertex* myCandidate=*verticesIter;
55  if (myCandidate!=nullptr) {
56  m_vertices.push_back(new xAOD::Vertex(*myCandidate));
57  } else {

◆ VxSecVertexInfo() [3/4]

Trk::VxSecVertexInfo::VxSecVertexInfo ( const VxSecVertexInfo rhs)

Definition at line 59 of file VxSecVertexInfo.cxx.

64  {
65 
66  if (this!=&rhs) {
67 
68  m_vertices.clear();
69 
70  std::vector<xAOD::Vertex*>::const_iterator verticesBegin=rhs.m_vertices.begin();
71  std::vector<xAOD::Vertex*>::const_iterator verticesEnd=rhs.m_vertices.end();
72 
73  for (std::vector<xAOD::Vertex*>::const_iterator verticesIter=verticesBegin;
74  verticesIter!=verticesEnd;++verticesIter) {

◆ VxSecVertexInfo() [4/4]

Trk::VxSecVertexInfo::VxSecVertexInfo ( VxSecVertexInfo &&  )
defaultnoexcept

Member Function Documentation

◆ clone()

VxSecVertexInfo * Trk::VxSecVertexInfo::clone ( ) const
inlinevirtual

Reimplemented in Trk::VxSecVKalVertexInfo, and Trk::VxJetFitterVertexInfo.

Definition at line 110 of file VxSecVertexInfo.h.

◆ operator=() [1/2]

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

Definition at line 76 of file VxSecVertexInfo.cxx.

76  {
77  m_vertices.push_back(new xAOD::Vertex(*myCandidate));
78  } else {
79  std::cout << " Warning in VxSecVertexInfo: tried in copy constructor to copy over a zero pointer Vertex " << std::endl;
80  }
81  }
82  m_SVOwnership=false;
83  }
84  return *this;
85  }
86 
87 
88  const std::vector<xAOD::Vertex*> & VxSecVertexInfo::vertices() const {
89  return m_vertices;
90  }
91 
92  void VxSecVertexInfo::setVertices(const std::vector<xAOD::Vertex*> & vertices) {
94  }
95 
96 }//end namespace Trk

◆ operator=() [2/2]

VxSecVertexInfo& Trk::VxSecVertexInfo::operator= ( VxSecVertexInfo &&  )
defaultnoexcept

◆ setSVOwnership()

void Trk::VxSecVertexInfo::setSVOwnership ( bool  Ownership)
inline

Definition at line 118 of file VxSecVertexInfo.h.

◆ setVertices()

void Trk::VxSecVertexInfo::setVertices ( const std::vector< xAOD::Vertex * > &  vertices)

Definition at line 104 of file VxSecVertexInfo.cxx.

◆ vertices()

const std::vector< xAOD::Vertex * > & Trk::VxSecVertexInfo::vertices ( ) const

Definition at line 100 of file VxSecVertexInfo.cxx.

Member Data Documentation

◆ m_SVOwnership

bool Trk::VxSecVertexInfo::m_SVOwnership
protected

Definition at line 126 of file VxSecVertexInfo.h.

◆ m_vertices

std::vector<xAOD::Vertex*> Trk::VxSecVertexInfo::m_vertices
protected

Definition at line 125 of file VxSecVertexInfo.h.


The documentation for this class was generated from the following files:
Trk::VxSecVertexInfo::vertices
const std::vector< xAOD::Vertex * > & vertices() const
Definition: VxSecVertexInfo.cxx:100
Trk::VxSecVertexInfo::m_vertices
std::vector< xAOD::Vertex * > m_vertices
Definition: VxSecVertexInfo.h:125
Trk::VxSecVertexInfo::m_SVOwnership
bool m_SVOwnership
Definition: VxSecVertexInfo.h:126
Trk::VxSecVertexInfo::setVertices
void setVertices(const std::vector< xAOD::Vertex * > &)
Definition: VxSecVertexInfo.cxx:104
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42