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

This class is a simplest representation of a vertex candidate. More...

#include <Vertex.h>

Inheritance diagram for Trk::Vertex:
Collaboration diagram for Trk::Vertex:

Public Member Functions

 Vertex ()
 Contructors: default, copy and a constructor taking a vertex position (Amg::Vector3D) as argument.
 Vertex (const Amg::Vector3D &p)
 Vertex (const Vertex &)=default
Vertexoperator= (const Vertex &)=default
 Vertex (Vertex &&)=default
Vertexoperator= (Vertex &&)=default
virtual ~Vertex ()=default
virtual MsgStream & dump (MsgStream &sl) const
 Output Method for MsgStream, to be overloaded by child classes.
virtual std::ostream & dump (std::ostream &sl) const
 Output Method for std::ostream, to be overloaded by child classes.
const Amg::Vector3Dposition () const
 return position of vertex

Static Public Member Functions

static std::size_t numberOfInstantiations ()

Static Public Attributes

static std::atomic_size_t s_numberOfInstantiations

Private Attributes

Amg::Vector3D m_position
 vertex position

Friends

class ::RecVertexCnv_p1

Detailed Description

This class is a simplest representation of a vertex candidate.

The 3-position (X,Y,Z) is stored.
begin : Autumn 2003
changes : 11.02.04 added docu

Authors
Andreas Wildauer (CERN PH-ATC), andre.nosp@m.as.w.nosp@m.ildau.nosp@m.er@c.nosp@m.ern.c.nosp@m.h

Definition at line 25 of file Tracking/TrkEvent/VxVertex/VxVertex/Vertex.h.

Constructor & Destructor Documentation

◆ Vertex() [1/4]

Trk::Vertex::Vertex ( )

Contructors: default, copy and a constructor taking a vertex position (Amg::Vector3D) as argument.

default constructor constructor with Amg::Vector3D (== Amg::Vector3D)

Definition at line 21 of file Vertex.cxx.

22 : Trk::ObjectCounter<Trk::Vertex>()
23 , m_position(0., 0., 0.)
24{
25}
Amg::Vector3D m_position
vertex position

◆ Vertex() [2/4]

Trk::Vertex::Vertex ( const Amg::Vector3D & p)

Definition at line 27 of file Vertex.cxx.

28 : Trk::ObjectCounter<Trk::Vertex>()
29 , m_position(p)
30{
31}

◆ Vertex() [3/4]

Trk::Vertex::Vertex ( const Vertex & )
default

◆ Vertex() [4/4]

Trk::Vertex::Vertex ( Vertex && )
default

◆ ~Vertex()

virtual Trk::Vertex::~Vertex ( )
virtualdefault

Member Function Documentation

◆ dump() [1/2]

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

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

Reimplemented in Trk::RecVertex.

Definition at line 35 of file Vertex.cxx.

36{
37 sl << "Trk::Vertex position: (" << m_position[0] << ", " << m_position[1]
38 << ", " << m_position[2] << ") mm." << endmsg;
39 return sl;
40}
#define endmsg

◆ dump() [2/2]

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

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

Reimplemented in Trk::RecVertex.

Definition at line 43 of file Vertex.cxx.

44{
45 sl << "Trk::Vertex position: (" << m_position[0] << ", " << m_position[1]
46 << ", " << m_position[2] << ") mm." << std::endl;
47 return sl;
48}

◆ numberOfInstantiations()

std::size_t Trk::ObjectCounter< Trk::Vertex >::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 }
Helper to enable counting number of instantiations in debug builds.

◆ operator=() [1/2]

Vertex & Trk::Vertex::operator= ( const Vertex & )
default

◆ operator=() [2/2]

Vertex & Trk::Vertex::operator= ( Vertex && )
default

◆ position()

const Amg::Vector3D & Trk::Vertex::position ( ) const

return position of vertex

Definition at line 63 of file Vertex.cxx.

64{
65 return m_position;
66}

◆ ::RecVertexCnv_p1

friend class ::RecVertexCnv_p1
friend

Definition at line 49 of file Tracking/TrkEvent/VxVertex/VxVertex/Vertex.h.

Member Data Documentation

◆ m_position

Amg::Vector3D Trk::Vertex::m_position
private

vertex position

Definition at line 51 of file Tracking/TrkEvent/VxVertex/VxVertex/Vertex.h.

◆ s_numberOfInstantiations

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

Definition at line 22 of file TrkObjectCounter.h.


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