ATLAS Offline Software
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 
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
21  : Trk::Segment()
23  , m_globalPosition(INVALID_VECTOR3D)
24 {
25 }
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 {
39  if (m_associatedSurface) {
42  }
43 }
44 
45 const Amg::Vector3D&
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 
Trk::Segment::Author
Author
enum to identify who created the segment.
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:63
Trk::LocalParameters
Definition: LocalParameters.h:98
Trk::TrackSegment::globalPosition
const Amg::Vector3D & globalPosition() const override final
Interface method to get the global Position.
Definition: TrackSegment.cxx:46
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:27
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
Trk::TrackSegment::TrackSegment
TrackSegment()
Default Constructor for POOL.
Definition: TrackSegment.cxx:20
Trk::TrackSegment::m_globalPosition
Amg::Vector3D m_globalPosition
Definition: TrackSegment.h:102
Trk::SurfacePtrHolderImplDetEl::m_associatedSurface
const S * m_associatedSurface
Definition: SurfaceHolderImpl.h:244
TrackSegment.h
Trk::Segment
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:56
Trk::TrackSegment::dump
MsgStream & dump(MsgStream &out) const override final
returns some information about this MeasurementBase/TrackSegment.
Definition: TrackSegment.cxx:52
Trk::FitQuality
Class to represent and store fit qualities from track reconstruction in terms of and number of degre...
Definition: FitQuality.h:97
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Trk::MeasurementBase::localParameters
const LocalParameters & localParameters() const
Interface method to get the LocalParameters.
Definition: MeasurementBase.h:132
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
mapkey::sf
@ sf
Definition: TElectronEfficiencyCorrectionTool.cxx:38
CaloCondBlobAlgs_fillNoiseFromASCII.author
string author
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:26
Trk::SurfacePtrHolderImplDetEl
Definition: SurfaceHolderImpl.h:165
Trk::Surface
Definition: Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h:75