VertexPositions class to represent and store a vertex.
More...
#include <VertexPositions.h>
VertexPositions class to represent and store a vertex.
Definition at line 27 of file VertexPositions.h.
◆ VertexPositions() [1/4]
| Trk::VertexPositions::VertexPositions |
( |
| ) |
|
default constructor
Definition at line 20 of file VertexPositions.cxx.
21 : Trk::ObjectCounter<Trk::VertexPositions>()
24{
26}
Amg::VectorX m_position
vertex position
bool m_useWeightTimesPosition
Eigen::Matrix< double, Eigen::Dynamic, 1 > VectorX
Dynamic Vector - dynamic allocation.
◆ VertexPositions() [2/4]
| Trk::VertexPositions::VertexPositions |
( |
const Amg::VectorX & | p | ) |
|
constructor with variable-size vector
Definition at line 28 of file VertexPositions.cxx.
29 : Trk::ObjectCounter<Trk::VertexPositions>()
32{
33}
◆ VertexPositions() [3/4]
◆ VertexPositions() [4/4]
◆ ~VertexPositions()
| virtual Trk::VertexPositions::~VertexPositions |
( |
| ) |
|
|
virtualdefault |
◆ 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 36 of file VertexPositions.cxx.
37{
39 sl << "Trk::VertexPositions weight times position: (";
40 } else {
41 sl << "Trk::VertexPositions position: (";
42 }
50 }
51 return sl;
52}
@ jet_zv
position x,y,z of primary vertex
◆ 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 55 of file VertexPositions.cxx.
56{
58 sl << "Trk::VertexPositions weight times position: (";
59 } else {
60 sl << "Trk::VertexPositions position: (";
61 }
68 sl <<
"dist" <<
i <<
" " <<
m_position[
i] <<
" ." << std::endl;
69 }
70 return sl;
71}
◆ numberOfInstantiations()
Definition at line 25 of file TrkObjectCounter.h.
26 {
27#ifndef NDEBUG
29#endif
30 return 0;
31 }
Helper to enable counting number of instantiations in debug builds.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ position()
| const Amg::VectorX & Trk::VertexPositions::position |
( |
| ) |
const |
return position of vertex
Definition at line 86 of file VertexPositions.cxx.
87{
90 }
91 std::cout << "FATAL: VertexPositions is not able to return a valid position "
92 << " as a const object: need to go from Update to Use mode. "
93 "Unrecovered Bug!"
94 << std::endl;
95 std::abort();
96
97}
◆ setPosition()
| void Trk::VertexPositions::setPosition |
( |
const Amg::VectorX & | newposition | ) |
|
◆ m_position
◆ m_useWeightTimesPosition
| bool Trk::VertexPositions::m_useWeightTimesPosition |
|
protected |
◆ s_numberOfInstantiations
The documentation for this class was generated from the following files: