ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkEvent
VxVertex
src
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
19
namespace
Trk
{
20
21
Vertex::Vertex()
22
:
Trk
::
ObjectCounter
<
Trk
::
Vertex
>()
23
,
m_position
(0., 0., 0.)
24
{
25
}
26
27
Vertex::Vertex(
const
Amg::Vector3D
& p)
28
:
Trk
::
ObjectCounter
<
Trk
::
Vertex
>()
29
,
m_position
(p)
30
{
31
}
32
33
34
MsgStream&
35
Vertex::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
42
std::ostream&
43
Vertex::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
50
MsgStream&
51
operator<<
(MsgStream& sl,
const
Vertex
& sf)
52
{
53
return
sf.dump(sl);
54
}
55
56
std::ostream&
57
operator<<
(std::ostream& sl,
const
Vertex
& sf)
58
{
59
return
sf.dump(sl);
60
}
61
62
const
Amg::Vector3D
&
63
Vertex::position()
const
64
{
65
return
m_position
;
66
}
67
68
}
// end of namespace
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:61
Vertex.h
Trk::ObjectCounter< Trk::Vertex >::ObjectCounter
ObjectCounter()
Definition
TrkObjectCounter.h:36
Trk::Vertex
This class is a simplest representation of a vertex candidate.
Definition
Tracking/TrkEvent/VxVertex/VxVertex/Vertex.h:26
Trk::Vertex::Vertex
Vertex()
Contructors: default, copy and a constructor taking a vertex position (Amg::Vector3D) as argument.
Definition
Vertex.cxx:21
Trk::Vertex::m_position
Amg::Vector3D m_position
vertex position
Definition
Tracking/TrkEvent/VxVertex/VxVertex/Vertex.h:51
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:47
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Trk::operator<<
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output
Definition
AlignModule.cxx:204
Generated on
for ATLAS Offline Software by
1.17.0