ATLAS Offline Software
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
Trk::Vertex
Definition:
Tracking/TrkEvent/VxVertex/VxVertex/Vertex.h:26
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition:
Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
Trk::operator<<
std::ostream & operator<<(std::ostream &sl, const Vertex &sf)
Definition:
Vertex.cxx:66
run_Egamma1_LArStrip_Fex.dump
dump
Definition:
run_Egamma1_LArStrip_Fex.py:88
python.utils.AtlRunQueryDQUtils.p
p
Definition:
AtlRunQueryDQUtils.py:210
endmsg
#define endmsg
Definition:
AnalysisConfig_Ntuple.cxx:63
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition:
FakeTrackBuilder.h:9
Trk::Vertex::Vertex
Vertex()
Contructors: default, copy and a constructor taking a vertex position (Amg::Vector3D) as argument.
Definition:
Vertex.cxx:30
Vertex.h
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition:
GeoPrimitives.h:47
mapkey::sf
@ sf
Definition:
TElectronEfficiencyCorrectionTool.cxx:38
Generated on Sun Dec 22 2024 21:22:20 for ATLAS Offline Software by
1.8.18