ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkEvent
TrkSegment
src
TrackSegment.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// TrackSegment.cxx, (c) ATLAS Detector software
8
9
// Trk
10
#include "
TrkSegment/TrackSegment.h
"
11
#include "
AthContainers/DataVector.h
"
12
#include "GaudiKernel/MsgStream.h"
13
14
namespace
{
15
const
double
NaN(std::numeric_limits<double>::quiet_NaN());
16
const
Amg::Vector3D
INVALID_VECTOR3D(NaN, NaN, NaN);
17
}
18
19
// default constructor
20
Trk::TrackSegment::TrackSegment
()
21
:
Trk
::
Segment
()
22
,
SurfacePtrHolderDetEl
()
23
,
m_globalPosition
(INVALID_VECTOR3D)
24
{
25
}
26
27
// explicit constructor
28
Trk::TrackSegment::TrackSegment
(
Trk::LocalParameters
&& locpars,
29
Amg::MatrixX
&& locerr,
30
const
Trk::Surface
* sf,
31
DataVector<const MeasurementBase>
&& crots,
32
FitQuality
* fqual,
33
Segment::Author
author
)
34
:
Trk
::
Segment
(
std
::move(locpars),
std
::move(locerr),
35
std
::move(crots), fqual,
author
)
36
,
SurfacePtrHolderDetEl
(sf)
37
,
m_globalPosition
(INVALID_VECTOR3D)
38
{
39
if
(
m_associatedSurface
) {
40
m_globalPosition
=
41
Amg::Vector3D
(
m_associatedSurface
->localToGlobal(
localParameters
()));
42
}
43
}
44
45
const
Amg::Vector3D
&
46
Trk::TrackSegment::globalPosition
()
const
47
{
48
return
m_globalPosition
;
49
}
50
51
MsgStream&
52
Trk::TrackSegment::dump
(MsgStream& out)
const
53
{
54
out <<
"Trk::TrackSegment (generic track segment) "
<< std::endl;
55
out <<
" - it contains : "
<<
numberOfMeasurementBases
()
56
<<
" RIO_OnTrack object"
<< std::endl;
57
out <<
" - parmaters : "
<< std::endl;
58
out <<
" - parameter key : "
<< std::endl;
59
// TODO - out proper output (see MuonSegment) EJWM
60
return
out;
61
}
62
63
std::ostream&
64
Trk::TrackSegment::dump
(std::ostream& out)
const
65
{
66
out <<
"Trk::TrackSegment (generic track segment) "
<< std::endl;
67
out <<
" - it contains : "
<<
numberOfMeasurementBases
()
68
<<
" RIO_OnTrack object"
<< std::endl;
69
out <<
" - parmaters : "
<< std::endl;
70
out <<
" - parameter key : "
<< std::endl;
71
// TODO - out proper output (see MuonSegment) EJWM
72
return
out;
73
}
74
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
TrackSegment.h
DataVector
Derived DataVector<T>.
Definition
DataVector.h:795
Trk::FitQuality
Class to represent and store fit qualities from track reconstruction in terms of and number of degre...
Definition
FitQuality.h:97
Trk::LocalParameters
Definition
LocalParameters.h:100
Trk::MeasurementBase::localParameters
const LocalParameters & localParameters() const
Interface method to get the LocalParameters.
Definition
MeasurementBase.h:132
Trk::Segment::author
Author author() const
return segment author
Definition
Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:199
Trk::Segment::Author
Author
enum to identify who created the segment.
Definition
Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:63
Trk::Segment::Segment
Segment()
Default Constructor for POOL.
Definition
Tracking/TrkEvent/TrkSegment/src/Segment.cxx:15
Trk::Segment::numberOfMeasurementBases
unsigned int numberOfMeasurementBases() const
Return the number of contained Trk::MeasurementBase (s).
Definition
Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:193
Trk::SurfacePtrHolderImplDetEl< Surface >::m_associatedSurface
const Surface * m_associatedSurface
Definition
SurfaceHolderImpl.h:221
Trk::Surface
Abstract Base Class for tracking surfaces.
Definition
Surface.h:79
Trk::TrackSegment::globalPosition
const Amg::Vector3D & globalPosition() const override final
Interface method to get the global Position.
Definition
TrackSegment.cxx:46
Trk::TrackSegment::m_globalPosition
Amg::Vector3D m_globalPosition
Definition
TrackSegment.h:102
Trk::TrackSegment::dump
MsgStream & dump(MsgStream &out) const override final
returns some information about this MeasurementBase/TrackSegment.
Definition
TrackSegment.cxx:52
Trk::TrackSegment::TrackSegment
TrackSegment()
Default Constructor for POOL.
Definition
TrackSegment.cxx:20
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition
EventPrimitives.h:27
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::SurfacePtrHolderDetEl
Trk::SurfacePtrHolderImplDetEl< Surface > SurfacePtrHolderDetEl
Definition
SurfaceHolders.h:36
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0