ATLAS Offline Software
Loading...
Searching...
No Matches
Tracking/TrkEvent/VxVertex/VxVertex/Vertex.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef VXVERTEX_VERTEX_H
6#define VXVERTEX_VERTEX_H
20
21class MsgStream;
22class RecVertexCnv_p1;
23
24namespace Trk {
25class Vertex : public Trk::ObjectCounter<Trk::Vertex>
26{
27public:
32 Vertex();
34 Vertex(const Amg::Vector3D& p);
35 Vertex(const Vertex&) = default;
36 Vertex& operator=(const Vertex&) = default;
37 Vertex(Vertex&&) = default;
38 Vertex& operator=(Vertex&&) = default;
39 virtual ~Vertex() = default;
40
42 virtual MsgStream& dump(MsgStream& sl) const;
44 virtual std::ostream& dump(std::ostream& sl) const;
45
46 const Amg::Vector3D& position() const;
47
48private:
49 friend class ::RecVertexCnv_p1;
50
52};
53
56MsgStream&
57operator<<(MsgStream& sl, const Vertex& sf);
58std::ostream&
59operator<<(std::ostream& sl, const Vertex& sf);
60
61} // end of namespace Trk
62
63#endif
64
Helper to enable counting number of instantiations in debug builds.
This class is a simplest representation of a vertex candidate.
Vertex(Vertex &&)=default
Vertex()
Contructors: default, copy and a constructor taking a vertex position (Amg::Vector3D) as argument.
Definition Vertex.cxx:21
Vertex & operator=(const Vertex &)=default
Vertex & operator=(Vertex &&)=default
const Amg::Vector3D & position() const
return position of vertex
Definition Vertex.cxx:63
virtual ~Vertex()=default
Amg::Vector3D m_position
vertex position
Vertex(const Vertex &)=default
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
-event-from-file