ATLAS Offline Software
Loading...
Searching...
No Matches
VertexPositions.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5/***************************************************************************
6 VertexPositions.cxx - Description
7 -------------------
8 begin : Autumn 2006
9 authors : Giacinto Piacquadio (Freiburg University)
10 email : Giacinto.Piacquadio@physik.uni-freiburg.de
11 comments:
12 changes :
13
14 ***************************************************************************/
15
17
18namespace Trk {
19
27
34
35MsgStream&
36VertexPositions::dump(MsgStream& sl) const
37{
39 sl << "Trk::VertexPositions weight times position: (";
40 } else {
41 sl << "Trk::VertexPositions position: (";
42 }
43 sl << "xv " << m_position[jet_xv] << ", "
44 << "yv " << m_position[jet_yv] << ", "
45 << "zv " << m_position[jet_zv] << ", "
46 << "phi " << m_position[jet_phi] << ", "
47 << "theta " << m_position[jet_theta] << endmsg;
48 for (int i = 5; i < m_position.rows(); i++) {
49 sl << "dist" << i << " " << m_position[i] << " ." << endmsg;
50 }
51 return sl;
52}
53
54std::ostream&
55VertexPositions::dump(std::ostream& sl) const
56{
58 sl << "Trk::VertexPositions weight times position: (";
59 } else {
60 sl << "Trk::VertexPositions position: (";
61 }
62 sl << "xv " << m_position[jet_xv] << ", "
63 << "yv " << m_position[jet_yv] << ", "
64 << "zv " << m_position[jet_zv] << ", "
65 << "phi " << m_position[jet_phi] << ", "
66 << "theta " << m_position[jet_theta] << std::endl;
67 for (int i = 5; i < m_position.rows(); i++) {
68 sl << "dist" << i << " " << m_position[i] << " ." << std::endl;
69 }
70 return sl;
71}
72
73MsgStream&
74operator<<(MsgStream& sl, const VertexPositions& sf)
75{
76 return sf.dump(sl);
77}
78
79std::ostream&
80operator<<(std::ostream& sl, const VertexPositions& sf)
81{
82 return sf.dump(sl);
83}
84
85const Amg::VectorX&
87{
89 return m_position;
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 // return m_position;
97}
98
99void
101{
102 m_position = newposition;
103}
104} // end of namespace
#define endmsg
VertexPositions class to represent and store a vertex.
VertexPositions()
default constructor
void setPosition(const Amg::VectorX &)
Amg::VectorX m_position
vertex position
const Amg::VectorX & position() const
return position of vertex
virtual MsgStream & dump(MsgStream &sl) const
Output Method for MsgStream, to be overloaded by child classes.
Definition of ATLAS Math & Geometry primitives (Amg)
Eigen::Matrix< double, Eigen::Dynamic, 1 > VectorX
Dynamic Vector - dynamic allocation.
Ensure that the ATLAS eigen extensions are properly loaded.
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output
@ jet_zv
position x,y,z of primary vertex