ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | Friends | List of all members
Trk::Vertex Class Reference

#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. More...
 
 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. More...
 
virtual std::ostream & dump (std::ostream &sl) const
 Output Method for std::ostream, to be overloaded by child classes. More...
 
const Amg::Vector3Dposition () const
 return position of vertex More...
 

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 More...
 

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 30 of file Vertex.cxx.

30 {
31 }
32 
33 
34 MsgStream&

◆ Vertex() [2/4]

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

Definition at line 36 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 }

◆ 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 44 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 }
49 

◆ 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 52 of file Vertex.cxx.

52 {
53  return sf.dump(sl);
54 }
55 
56 std::ostream&
57 operator<<(std::ostream& sl, const Vertex& sf)

◆ numberOfInstantiations()

static 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  }

◆ 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 72 of file Vertex.cxx.

Friends And Related Function Documentation

◆ ::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:
Trk::Vertex::m_position
Amg::Vector3D m_position
vertex position
Definition: Tracking/TrkEvent/VxVertex/VxVertex/Vertex.h:51
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Trk::Vertex::Vertex
Vertex()
Contructors: default, copy and a constructor taking a vertex position (Amg::Vector3D) as argument.
Definition: Vertex.cxx:30
Trk::ObjectCounter< Trk::Vertex >::s_numberOfInstantiations
static std::atomic_size_t s_numberOfInstantiations
Definition: TrkObjectCounter.h:22
mapkey::sf
@ sf
Definition: TElectronEfficiencyCorrectionTool.cxx:38
Trk::operator<<
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output
Definition: AlignModule.cxx:204