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

#include <VxCandidate.h>

Inheritance diagram for Trk::VxCandidate:
Collaboration diagram for Trk::VxCandidate:

Public Member Functions

 VxCandidate ()
 Default constructor for persistency. More...
 
 VxCandidate (const Trk::RecVertex &recVertex, const std::vector< Trk::VxTrackAtVertex * > &vxTrackAtVertex)
 Constructor using vertex position, fit quality and covariance matrix and a vector of fitted VxTrackAtVertex. More...
 
 VxCandidate (Trk::RecVertex &&recVertex, std::vector< Trk::VxTrackAtVertex * > &&vxTrackAtVertex)
 
virtual ~VxCandidate ()
 Virtual destructor, copy-constructor and assignement operator. More...
 
 VxCandidate (const VxCandidate &rhs)
 
VxCandidateoperator= (const VxCandidate &)
 
VxCandidateoperator= (VxCandidate &&) noexcept
 
virtual VxCandidateclone () const
 
virtual MsgStream & dump (MsgStream &sl) const
 Output Method for MsgStream, to be overloaded by child classes. More...
 
virtual std::ostream & dump (std::ostream &sl) const
 Output Method for std::ostream, to be overloaded by child classes. More...
 
const Trk::RecVertexrecVertex (void) const
 Returns a reference to reconstructed vertex. More...
 
Trk::RecVertexrecVertex (void)
 Returns unconst reference to a reconstructed vertex Required by some of the vertex fitters. More...
 
void setRecVertex (Trk::RecVertex &recVertex)
 RecVertex set method. More...
 
std::vector< Trk::VxTrackAtVertex * > * vxTrackAtVertex (void)
 Unconst pointer to the vector of tracks Required by some of the vertex fitters. More...
 
const std::vector< Trk::VxTrackAtVertex * > * vxTrackAtVertex (void) const
 Const access to the vector of tracks fitted to the vertex. More...
 
void setVertexType (VertexType vertexType)
 return the type of the vertex More...
 
VertexType vertexType () const
 return the type of the vertex More...
 

Static Public Member Functions

static std::size_t numberOfInstantiations ()
 

Static Public Attributes

static std::atomic_size_t s_numberOfInstantiations
 

Protected Attributes

Trk::VertexType m_vertexType
 
Trk::RecVertex m_recVertex
 
std::vector< Trk::VxTrackAtVertex * > m_vxTrackAtVertex
 

Detailed Description

Definition at line 26 of file VxCandidate.h.

Constructor & Destructor Documentation

◆ VxCandidate() [1/4]

Trk::VxCandidate::VxCandidate ( )

Default constructor for persistency.

Definition at line 27 of file VxCandidate.cxx.

◆ VxCandidate() [2/4]

Trk::VxCandidate::VxCandidate ( const Trk::RecVertex recVertex,
const std::vector< Trk::VxTrackAtVertex * > &  vxTrackAtVertex 
)

Constructor using vertex position, fit quality and covariance matrix and a vector of fitted VxTrackAtVertex.

Definition at line 35 of file VxCandidate.cxx.

35 {
36 }
37 
39  std::vector<Trk::VxTrackAtVertex*>&& vxTrackAtVertex)
42  , m_recVertex(std::move(recVertex))

◆ VxCandidate() [3/4]

Trk::VxCandidate::VxCandidate ( Trk::RecVertex &&  recVertex,
std::vector< Trk::VxTrackAtVertex * > &&  vxTrackAtVertex 
)

Definition at line 45 of file VxCandidate.cxx.

49  , m_vertexType(rhs.m_vertexType)
50  , m_recVertex(rhs.m_recVertex)
51  , m_vxTrackAtVertex(std::vector<Trk::VxTrackAtVertex*>())
52 {

◆ ~VxCandidate()

Trk::VxCandidate::~VxCandidate ( )
virtual

Virtual destructor, copy-constructor and assignement operator.

Definition at line 98 of file VxCandidate.cxx.

100 {
101  sl << "Printing Trk::VxCandidate of type: " << m_vertexType << endmsg;
102  sl << m_recVertex << endmsg;
103  sl << "Tracks used in the vertex fit: " << m_vxTrackAtVertex.size() << endmsg;

◆ VxCandidate() [4/4]

Trk::VxCandidate::VxCandidate ( const VxCandidate rhs)

Definition at line 54 of file VxCandidate.cxx.

60 {
61  if (this != &rhs) {
62  m_recVertex = rhs.m_recVertex;
63  m_vertexType = rhs.m_vertexType;

Member Function Documentation

◆ clone()

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

Reimplemented in Trk::MVFVxCandidate, Trk::VxJetCandidate, Trk::ExtendedVxCandidate, and Trk::V0Hypothesis.

Definition at line 156 of file VxCandidate.h.

157 {
158  return new Trk::VxCandidate(*this);
159 }

◆ dump() [1/2]

MsgStream & Trk::VxCandidate::dump ( MsgStream &  sl) const
virtual

Output Method for MsgStream, to be overloaded by child classes.

Reimplemented in Trk::MVFVxCandidate.

Definition at line 106 of file VxCandidate.cxx.

112 {
113  sl << "Printing Trk::VxCandidate of type: " << m_vertexType << std::endl;
114  sl << m_recVertex << std::endl;
115  sl << "Tracks used in the vertex fit: " << m_vxTrackAtVertex.size() << std::endl;

◆ dump() [2/2]

std::ostream & Trk::VxCandidate::dump ( std::ostream &  sl) const
virtual

Output Method for std::ostream, to be overloaded by child classes.

Reimplemented in Trk::MVFVxCandidate.

Definition at line 118 of file VxCandidate.cxx.

124 {
125  return sf.dump(sl);
126 }
127 

◆ numberOfInstantiations()

static std::size_t Trk::ObjectCounter< Trk::VxCandidate >::numberOfInstantiations ( )
inlinestaticinherited

Definition at line 25 of file TrkObjectCounter.h.

26  {
27 #ifndef NDEBUG
28  return s_numberOfInstantiations.load();
29 #endif
30  return 0;
31  }

◆ operator=() [1/2]

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

Definition at line 66 of file VxCandidate.cxx.

67  delete i;
68  }
69  // and clear the vector
70  m_vxTrackAtVertex.clear();
71  for (auto* itr : rhs.m_vxTrackAtVertex) {
72  m_vxTrackAtVertex.push_back(itr->clone());
73  }
74  }
75  return *this;
76 }
77 
79 VxCandidate::operator=(VxCandidate&& rhs) noexcept
80 {
81  if (this != &rhs) {
82  m_recVertex = std::move(rhs.m_recVertex);
83  m_vertexType = rhs.m_vertexType;

◆ operator=() [2/2]

VxCandidate & Trk::VxCandidate::operator= ( VxCandidate &&  rhs)
noexcept

Definition at line 86 of file VxCandidate.cxx.

92 {
93  for (auto& i : m_vxTrackAtVertex) {
94  delete i;
95  }
96 }

◆ recVertex() [1/2]

Trk::RecVertex & Trk::VxCandidate::recVertex ( void  )
inline

Returns unconst reference to a reconstructed vertex Required by some of the vertex fitters.

Definition at line 138 of file VxCandidate.h.

139 {
140  return m_recVertex;
141 }

◆ recVertex() [2/2]

const Trk::RecVertex & Trk::VxCandidate::recVertex ( void  ) const
inline

Returns a reference to reconstructed vertex.

Definition at line 132 of file VxCandidate.h.

133 {
134  return m_recVertex;
135 }

◆ setRecVertex()

void Trk::VxCandidate::setRecVertex ( Trk::RecVertex recVertex)
inline

RecVertex set method.

Definition at line 126 of file VxCandidate.h.

127 {
129 }

◆ setVertexType()

void Trk::VxCandidate::setVertexType ( VertexType  vertexType)
inline

return the type of the vertex

Definition at line 114 of file VxCandidate.h.

115 {
117 }

◆ vertexType()

VertexType Trk::VxCandidate::vertexType ( ) const
inline

return the type of the vertex

Definition at line 120 of file VxCandidate.h.

121 {
122  return m_vertexType;
123 }

◆ vxTrackAtVertex() [1/2]

std::vector< Trk::VxTrackAtVertex * > * Trk::VxCandidate::vxTrackAtVertex ( void  )
inline

Unconst pointer to the vector of tracks Required by some of the vertex fitters.

Definition at line 144 of file VxCandidate.h.

145 {
146  return &m_vxTrackAtVertex;
147 }

◆ vxTrackAtVertex() [2/2]

const std::vector< Trk::VxTrackAtVertex * > * Trk::VxCandidate::vxTrackAtVertex ( void  ) const
inline

Const access to the vector of tracks fitted to the vertex.

Definition at line 150 of file VxCandidate.h.

151 {
152  return &m_vxTrackAtVertex;
153 }

Member Data Documentation

◆ m_recVertex

Trk::RecVertex Trk::VxCandidate::m_recVertex
protected

Definition at line 99 of file VxCandidate.h.

◆ m_vertexType

Trk::VertexType Trk::VxCandidate::m_vertexType
protected

Definition at line 96 of file VxCandidate.h.

◆ m_vxTrackAtVertex

std::vector<Trk::VxTrackAtVertex*> Trk::VxCandidate::m_vxTrackAtVertex
protected

Definition at line 102 of file VxCandidate.h.

◆ s_numberOfInstantiations

std::atomic_size_t Trk::ObjectCounter< Trk::VxCandidate >::s_numberOfInstantiations
inlinestaticinherited

Definition at line 22 of file TrkObjectCounter.h.


The documentation for this class was generated from the following files:
Trk::VxCandidate::recVertex
const Trk::RecVertex & recVertex(void) const
Returns a reference to reconstructed vertex.
Definition: VxCandidate.h:132
Trk::VxCandidate::m_vertexType
Trk::VertexType m_vertexType
Definition: VxCandidate.h:96
Trk::VxCandidate::vertexType
VertexType vertexType() const
return the type of the vertex
Definition: VxCandidate.h:120
Trk::VxCandidate::operator=
VxCandidate & operator=(const VxCandidate &)
Definition: VxCandidate.cxx:66
Trk::ObjectCounter< Trk::VxCandidate >
Trk::RecVertex
Trk::RecVertex inherits from Trk::Vertex.
Definition: RecVertex.h:44
Trk::VxCandidate::VxCandidate
VxCandidate()
Default constructor for persistency.
Definition: VxCandidate.cxx:27
Trk::VxCandidate::m_recVertex
Trk::RecVertex m_recVertex
Definition: VxCandidate.h:99
Trk::VxCandidate::vxTrackAtVertex
std::vector< Trk::VxTrackAtVertex * > * vxTrackAtVertex(void)
Unconst pointer to the vector of tracks Required by some of the vertex fitters.
Definition: VxCandidate.h:144
lumiFormat.i
int i
Definition: lumiFormat.py:92
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Trk::NotSpecified
@ NotSpecified
this is the default
Definition: VertexType.h:36
Trk::VxCandidate::m_vxTrackAtVertex
std::vector< Trk::VxTrackAtVertex * > m_vxTrackAtVertex
Definition: VxCandidate.h:102
Trk::ObjectCounter< Trk::VxCandidate >::ObjectCounter
ObjectCounter()
Definition: TrkObjectCounter.h:36
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::ObjectCounter< Trk::VxCandidate >::s_numberOfInstantiations
static std::atomic_size_t s_numberOfInstantiations
Definition: TrkObjectCounter.h:22
mapkey::sf
@ sf
Definition: TElectronEfficiencyCorrectionTool.cxx:38
Trk::VxCandidate
Definition: VxCandidate.h:27