26 VxSecVertexInfo::VxSecVertexInfo(std::vector<xAOD::Vertex*> vertices): m_vertices(std::move(vertices)), m_SVOwnership(false) {
30 VxSecVertexInfo::~VxSecVertexInfo() {
31 std::vector<xAOD::Vertex*>::const_iterator verticesBegin=m_vertices.begin();
32 std::vector<xAOD::Vertex*>::const_iterator verticesEnd=m_vertices.end();
35 for (std::vector<xAOD::Vertex*>::const_iterator verticesIter=verticesBegin;
36 verticesIter!=verticesEnd;++verticesIter) {
38 if (myCandidate!=
nullptr) {
41 std::cout <<
" Warning in VxSecVertexInfo: tried to delete a zero pointer --> Inconsistency found. " << std::endl;
47 VxSecVertexInfo::VxSecVertexInfo(
const VxSecVertexInfo & rhs) {
49 std::vector<xAOD::Vertex*>::const_iterator verticesBegin=rhs.m_vertices.begin();
50 std::vector<xAOD::Vertex*>::const_iterator verticesEnd=rhs.m_vertices.end();
52 for (std::vector<xAOD::Vertex*>::const_iterator verticesIter=verticesBegin;
53 verticesIter!=verticesEnd;++verticesIter) {
55 if (myCandidate!=
nullptr) {
58 std::cout <<
" Warning in VxSecVertexInfo: tried in copy constructor to copy over a zero pointer Vertex " << std::endl;
64 VxSecVertexInfo& VxSecVertexInfo::operator= (
const VxSecVertexInfo & rhs) {
70 std::vector<xAOD::Vertex*>::const_iterator verticesBegin=rhs.m_vertices.begin();
71 std::vector<xAOD::Vertex*>::const_iterator verticesEnd=rhs.m_vertices.end();
73 for (std::vector<xAOD::Vertex*>::const_iterator verticesIter=verticesBegin;
74 verticesIter!=verticesEnd;++verticesIter) {
76 if (myCandidate!=
nullptr) {
79 std::cout <<
" Warning in VxSecVertexInfo: tried in copy constructor to copy over a zero pointer Vertex " << std::endl;
88 const std::vector<xAOD::Vertex*> & VxSecVertexInfo::vertices()
const {
92 void VxSecVertexInfo::setVertices(
const std::vector<xAOD::Vertex*> & vertices) {