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

#include <VxJetFitterVertexInfo.h>

Inheritance diagram for Trk::VxJetFitterVertexInfo:
Collaboration diagram for Trk::VxJetFitterVertexInfo:

Public Member Functions

 VxJetFitterVertexInfo ()
 
 VxJetFitterVertexInfo (const std::vector< Trk::VxJetCandidate * > &vertices, const Trk::TwoTrackVerticesInJet *twoTrackVertices, const Trk::SelectedTracksInJet *selectedTracksInJet)
 
 VxJetFitterVertexInfo (const VxJetFitterVertexInfo &)
 
virtual VxJetFitterVertexInfoclone () const
 
VxJetFitterVertexInfooperator= (const VxJetFitterVertexInfo &)
 
virtual ~VxJetFitterVertexInfo ()
 
const Trk::TwoTrackVerticesInJetgetTwoTrackVerticesInJet () const
 
const Trk::SelectedTracksInJetgetSelectedTracksInJet () const
 
const std::vector< Trk::VxJetCandidate * > & verticesJF () const
 
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
 

Private Attributes

const Trk::TwoTrackVerticesInJetm_twoTrackVerticesInJet
 
const Trk::SelectedTracksInJetm_selectedTracksInJet
 
std::vector< Trk::VxJetCandidate * > m_verticesJF
 

Detailed Description

Definition at line 58 of file VxJetFitterVertexInfo.h.

Constructor & Destructor Documentation

◆ VxJetFitterVertexInfo() [1/3]

Trk::VxJetFitterVertexInfo::VxJetFitterVertexInfo ( )

Definition at line 39 of file VxJetFitterVertexInfo.cxx.

◆ VxJetFitterVertexInfo() [2/3]

Trk::VxJetFitterVertexInfo::VxJetFitterVertexInfo ( const std::vector< Trk::VxJetCandidate * > &  vertices,
const Trk::TwoTrackVerticesInJet twoTrackVertices,
const Trk::SelectedTracksInJet selectedTracksInJet 
)

Definition at line 44 of file VxJetFitterVertexInfo.cxx.

44  :nullptr),
45  m_selectedTracksInJet(rhs.m_selectedTracksInJet?new Trk::SelectedTracksInJet(*rhs.m_selectedTracksInJet):nullptr)
46  {
47  std::vector<Trk::VxJetCandidate*>::const_iterator verticesBegin=rhs.m_verticesJF.begin();
48  std::vector<Trk::VxJetCandidate*>::const_iterator verticesEnd=rhs.m_verticesJF.end();
49 
50  for (std::vector<Trk::VxJetCandidate*>::const_iterator verticesIter=verticesBegin;
51  verticesIter!=verticesEnd;++verticesIter) {

◆ VxJetFitterVertexInfo() [3/3]

Trk::VxJetFitterVertexInfo::VxJetFitterVertexInfo ( const VxJetFitterVertexInfo rhs)

Definition at line 54 of file VxJetFitterVertexInfo.cxx.

55  {
56  std::cout << " Warning in VxSecVertexInfo: tried in copy constructor to copy over a zero pointer Vertex " << std::endl;
57  }
58  }
59  m_SVOwnership=true;
60  }
61 
62 
64  if (this!=&rhs) {
65 
66  m_verticesJF.clear();
68  delete m_selectedTracksInJet;
69  this->operator=(rhs);
70  std::vector<Trk::VxJetCandidate*>::const_iterator verticesBegin=rhs.m_verticesJF.begin();
71  std::vector<Trk::VxJetCandidate*>::const_iterator verticesEnd=rhs.m_verticesJF.end();
72 

◆ ~VxJetFitterVertexInfo()

Trk::VxJetFitterVertexInfo::~VxJetFitterVertexInfo ( )
virtual

Definition at line 101 of file VxJetFitterVertexInfo.cxx.

101  : tried to delete a zero pointer --> Inconsistency found. " << std::endl;
102  }
103  }
104  }
105  }
106 
107 }//end namespace

Member Function Documentation

◆ clone()

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

Reimplemented from Trk::VxSecVertexInfo.

Definition at line 119 of file VxJetFitterVertexInfo.h.

◆ getSelectedTracksInJet()

const Trk::SelectedTracksInJet * Trk::VxJetFitterVertexInfo::getSelectedTracksInJet ( ) const
inline

Definition at line 107 of file VxJetFitterVertexInfo.h.

◆ getTwoTrackVerticesInJet()

const Trk::TwoTrackVerticesInJet * Trk::VxJetFitterVertexInfo::getTwoTrackVerticesInJet ( ) const
inline

Definition at line 100 of file VxJetFitterVertexInfo.h.

101  {
102  return new VxJetFitterVertexInfo(*this);
103  }

◆ operator=()

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

Definition at line 75 of file VxJetFitterVertexInfo.cxx.

76  {
77  m_verticesJF.push_back(new Trk::VxJetCandidate(*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_twoTrackVerticesInJet=rhs.m_twoTrackVerticesInJet?new Trk::TwoTrackVerticesInJet(*rhs.m_twoTrackVerticesInJet):nullptr;
83  m_selectedTracksInJet=rhs.m_selectedTracksInJet?new Trk::SelectedTracksInJet(*rhs.m_selectedTracksInJet):nullptr;
84  m_SVOwnership=true;
85  }
86  return *this;
87  }
88 
90  if(m_SVOwnership){ // Delete vertices only if ownership is set explicitly
92  delete m_selectedTracksInJet;
93  std::vector<Trk::VxJetCandidate*>::const_iterator verticesBegin=m_verticesJF.begin();
94  std::vector<Trk::VxJetCandidate*>::const_iterator verticesEnd=m_verticesJF.end();
95  for (std::vector<Trk::VxJetCandidate*>::const_iterator verticesIter=verticesBegin;
96  verticesIter!=verticesEnd;++verticesIter) {
97  Trk::VxJetCandidate* myCandidate=*verticesIter;
98  if (myCandidate!=nullptr) {
99  delete myCandidate;

◆ setSVOwnership()

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

Definition at line 118 of file VxSecVertexInfo.h.

◆ setVertices()

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

Definition at line 104 of file VxSecVertexInfo.cxx.

◆ vertices()

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

Definition at line 100 of file VxSecVertexInfo.cxx.

◆ verticesJF()

const std::vector< Trk::VxJetCandidate * > & Trk::VxJetFitterVertexInfo::verticesJF ( ) const
inline

Definition at line 112 of file VxJetFitterVertexInfo.h.

Member Data Documentation

◆ m_selectedTracksInJet

const Trk::SelectedTracksInJet* Trk::VxJetFitterVertexInfo::m_selectedTracksInJet
private

Definition at line 94 of file VxJetFitterVertexInfo.h.

◆ m_SVOwnership

bool Trk::VxSecVertexInfo::m_SVOwnership
protectedinherited

Definition at line 126 of file VxSecVertexInfo.h.

◆ m_twoTrackVerticesInJet

const Trk::TwoTrackVerticesInJet* Trk::VxJetFitterVertexInfo::m_twoTrackVerticesInJet
private

Definition at line 93 of file VxJetFitterVertexInfo.h.

◆ m_vertices

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

Definition at line 125 of file VxSecVertexInfo.h.

◆ m_verticesJF

std::vector<Trk::VxJetCandidate*> Trk::VxJetFitterVertexInfo::m_verticesJF
private

Definition at line 95 of file VxJetFitterVertexInfo.h.


The documentation for this class was generated from the following files:
Trk::VxJetFitterVertexInfo::m_selectedTracksInJet
const Trk::SelectedTracksInJet * m_selectedTracksInJet
Definition: VxJetFitterVertexInfo.h:94
Trk::SelectedTracksInJet
Definition: SelectedTracksInJet.h:62
Trk::VxJetFitterVertexInfo::~VxJetFitterVertexInfo
virtual ~VxJetFitterVertexInfo()
Definition: VxJetFitterVertexInfo.cxx:101
Trk::VxJetFitterVertexInfo::m_verticesJF
std::vector< Trk::VxJetCandidate * > m_verticesJF
Definition: VxJetFitterVertexInfo.h:95
Trk::VxJetFitterVertexInfo::operator=
VxJetFitterVertexInfo & operator=(const VxJetFitterVertexInfo &)
Definition: VxJetFitterVertexInfo.cxx:75
Trk::VxSecVertexInfo::m_SVOwnership
bool m_SVOwnership
Definition: VxSecVertexInfo.h:126
Trk::TwoTrackVerticesInJet
Definition: TwoTrackVerticesInJet.h:45
Trk::VxJetFitterVertexInfo::m_twoTrackVerticesInJet
const Trk::TwoTrackVerticesInJet * m_twoTrackVerticesInJet
Definition: VxJetFitterVertexInfo.h:93
Trk::VxJetCandidate
Definition: VxJetCandidate.h:72
CxxUtils::to
CONT to(RANGE &&r)
Definition: ranges.h:39
a
TList * a
Definition: liststreamerinfos.cxx:10
CondAlgsOpts.found
int found
Definition: CondAlgsOpts.py:101
Trk::VxJetFitterVertexInfo::VxJetFitterVertexInfo
VxJetFitterVertexInfo()
Definition: VxJetFitterVertexInfo.cxx:39
zero
void zero(TH2 *h)
zero the contents of a 2d histogram
Definition: comparitor.cxx:435