ATLAS Offline Software
Loading...
Searching...
No Matches
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
12#include "GaudiKernel/MsgStream.h"
13
14namespace {
15const double NaN(std::numeric_limits<double>::quiet_NaN());
16const Amg::Vector3D INVALID_VECTOR3D(NaN, NaN, NaN);
17}
18
19// default constructor
26
27// explicit constructor
29 Amg::MatrixX&& locerr,
30 const Trk::Surface* sf,
32 FitQuality* fqual,
34 : Trk::Segment(std::move(locpars), std::move(locerr),
35 std::move(crots), fqual, author)
37 , m_globalPosition(INVALID_VECTOR3D)
38{
42 }
43}
44
45const Amg::Vector3D&
50
51MsgStream&
52Trk::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
63std::ostream&
64Trk::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
An STL vector of pointers that by default owns its pointed-to elements.
Derived DataVector<T>.
Definition DataVector.h:795
Class to represent and store fit qualities from track reconstruction in terms of and number of degre...
Definition FitQuality.h:97
const LocalParameters & localParameters() const
Interface method to get the LocalParameters.
Author author() const
return segment author
Author
enum to identify who created the segment.
Segment()
Default Constructor for POOL.
unsigned int numberOfMeasurementBases() const
Return the number of contained Trk::MeasurementBase (s)
Abstract Base Class for tracking surfaces.
const Amg::Vector3D & globalPosition() const override final
Interface method to get the global Position.
Amg::Vector3D m_globalPosition
MsgStream & dump(MsgStream &out) const override final
returns some information about this MeasurementBase/TrackSegment.
TrackSegment()
Default Constructor for POOL.
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Eigen::Matrix< double, 3, 1 > Vector3D
Ensure that the ATLAS eigen extensions are properly loaded.
Trk::SurfacePtrHolderImplDetEl< Surface > SurfacePtrHolderDetEl
STL namespace.