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

VertexPositions class to represent and store a vertex. More...

#include <VertexPositions.h>

Inheritance diagram for Trk::VertexPositions:
Collaboration diagram for Trk::VertexPositions:

Public Member Functions

 VertexPositions ()
 default constructor More...
 
 VertexPositions (const Amg::VectorX &p)
 constructor with variable-size vector More...
 
 VertexPositions (const VertexPositions &)=default
 copy constructor More...
 
 VertexPositions (VertexPositions &&)=default
 move constructor More...
 
VertexPositionsoperator= (const VertexPositions &)=default
 Assignment operator. More...
 
VertexPositionsoperator= (VertexPositions &&)=default
 move Assignment operator More...
 
virtual ~VertexPositions ()=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::VectorXposition () const
 return position of vertex More...
 
void setPosition (const Amg::VectorX &)
 

Static Public Member Functions

static std::size_t numberOfInstantiations ()
 

Static Public Attributes

static std::atomic_size_t s_numberOfInstantiations
 

Protected Attributes

Amg::VectorX m_position
 vertex position More...
 
bool m_useWeightTimesPosition
 

Detailed Description

VertexPositions class to represent and store a vertex.

Definition at line 35 of file VertexPositions.h.

Constructor & Destructor Documentation

◆ VertexPositions() [1/4]

Trk::VertexPositions::VertexPositions ( )

default constructor

Definition at line 29 of file VertexPositions.cxx.

30  , m_position(p)
32 {
33 }
34 
35 MsgStream&

◆ VertexPositions() [2/4]

Trk::VertexPositions::VertexPositions ( const Amg::VectorX p)

constructor with variable-size vector

Definition at line 37 of file VertexPositions.cxx.

37 {
39  sl << "Trk::VertexPositions weight times position: (";
40  } else {
41  sl << "Trk::VertexPositions position: (";
42  }

◆ VertexPositions() [3/4]

Trk::VertexPositions::VertexPositions ( const VertexPositions )
default

copy constructor

◆ VertexPositions() [4/4]

Trk::VertexPositions::VertexPositions ( VertexPositions &&  )
default

move constructor

◆ ~VertexPositions()

virtual Trk::VertexPositions::~VertexPositions ( )
virtualdefault

Member Function Documentation

◆ dump() [1/2]

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

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

Reimplemented in Trk::RecVertexPositions.

Definition at line 45 of file VertexPositions.cxx.

48  {
49  sl << "dist" << i << " " << m_position[i] << " ." << endmsg;
50  }
51  return sl;
52 }
53 
54 std::ostream&
55 VertexPositions::dump(std::ostream& sl) const
56 {
58  sl << "Trk::VertexPositions weight times position: (";
59  } else {
60  sl << "Trk::VertexPositions position: (";
61  }

◆ dump() [2/2]

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

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

Reimplemented in Trk::RecVertexPositions.

Definition at line 64 of file VertexPositions.cxx.

67  {
68  sl << "dist" << i << " " << m_position[i] << " ." << std::endl;
69  }
70  return sl;
71 }
72 
73 MsgStream&
74 operator<<(MsgStream& sl, const VertexPositions& sf)
75 {
76  return sf.dump(sl);
77 }
78 
79 std::ostream&
80 operator<<(std::ostream& sl, const VertexPositions& sf)

◆ numberOfInstantiations()

static std::size_t Trk::ObjectCounter< Trk::VertexPositions >::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]

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

Assignment operator.

◆ operator=() [2/2]

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

move Assignment operator

◆ position()

const Amg::VectorX & Trk::VertexPositions::position ( ) const

return position of vertex

Definition at line 95 of file VertexPositions.cxx.

101 {
102  m_position = newposition;
103 }
104 } // end of namespace

◆ setPosition()

void Trk::VertexPositions::setPosition ( const Amg::VectorX newposition)

Definition at line 109 of file VertexPositions.cxx.

Member Data Documentation

◆ m_position

Amg::VectorX Trk::VertexPositions::m_position
protected

vertex position

Definition at line 64 of file VertexPositions.h.

◆ m_useWeightTimesPosition

bool Trk::VertexPositions::m_useWeightTimesPosition
protected

Definition at line 65 of file VertexPositions.h.

◆ s_numberOfInstantiations

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

Definition at line 22 of file TrkObjectCounter.h.


The documentation for this class was generated from the following files:
Trk::ObjectCounter< Trk::VertexPositions >
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
lumiFormat.i
int i
Definition: lumiFormat.py:85
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Trk::VertexPositions::m_useWeightTimesPosition
bool m_useWeightTimesPosition
Definition: VertexPositions.h:65
Trk::VertexPositions::VertexPositions
VertexPositions()
default constructor
Definition: VertexPositions.cxx:29
Trk::ObjectCounter< Trk::VertexPositions >::s_numberOfInstantiations
static std::atomic_size_t s_numberOfInstantiations
Definition: TrkObjectCounter.h:22
Trk::VertexPositions::dump
virtual MsgStream & dump(MsgStream &sl) const
Output Method for MsgStream, to be overloaded by child classes.
Definition: VertexPositions.cxx:45
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
Trk::VertexPositions::m_position
Amg::VectorX m_position
vertex position
Definition: VertexPositions.h:64