ATLAS Offline Software
Loading...
Searching...
No Matches
Vertex.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5/***************************************************************************
6 Vertex.cxx - Description
7 -------------------
8 begin : Autumn 2003
9 authors : Andreas Wildauer (CERN PH-ATC), Fredrik Akesson (CERN PH-ATC)
10 email : andreas.wildauer@cern.ch, fredrik.akesson@cern.ch
11 comments: original version by M. Elsing
12 changes :
13
14 ***************************************************************************/
15
16#include "VxVertex/Vertex.h"
17#include "GaudiKernel/MsgStream.h"
18
19namespace Trk {
20
21Vertex::Vertex()
23 , m_position(0., 0., 0.)
24{
25}
26
27Vertex::Vertex(const Amg::Vector3D& p)
29 , m_position(p)
30{
31}
32
33
34MsgStream&
35Vertex::dump(MsgStream& sl) const
36{
37 sl << "Trk::Vertex position: (" << m_position[0] << ", " << m_position[1]
38 << ", " << m_position[2] << ") mm." << endmsg;
39 return sl;
40}
41
42std::ostream&
43Vertex::dump(std::ostream& sl) const
44{
45 sl << "Trk::Vertex position: (" << m_position[0] << ", " << m_position[1]
46 << ", " << m_position[2] << ") mm." << std::endl;
47 return sl;
48}
49
50MsgStream&
51operator<<(MsgStream& sl, const Vertex& sf)
52{
53 return sf.dump(sl);
54}
55
56std::ostream&
57operator<<(std::ostream& sl, const Vertex& sf)
58{
59 return sf.dump(sl);
60}
61
62const Amg::Vector3D&
63Vertex::position() const
64{
65 return m_position;
66}
67
68} // end of namespace
#define endmsg
This class is a simplest representation of a vertex candidate.
Vertex()
Contructors: default, copy and a constructor taking a vertex position (Amg::Vector3D) as argument.
Definition Vertex.cxx:21
Amg::Vector3D m_position
vertex position
Eigen::Matrix< double, 3, 1 > Vector3D
Ensure that the ATLAS eigen extensions are properly loaded.
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output