12#include "GaudiKernel/MsgStream.h"
40 std::unique_ptr<IIntersectionCache>
cache)
55 m_cache = other.m_cache ? other.m_cache->clone() :
nullptr;
64 std::ostringstream os;
73 const auto old_flags = sl.flags();
74 const auto old_prec = sl.precision();
76 sl.setf(std::ios::fixed, std::ios::floatfield);
79 sl <<
"Trk::TrackSurfaceIntersection\n"
80 <<
" position [mm] = (" << tsfi.
position().x() <<
", "
82 <<
" direction = (" << tsfi.
direction().x() <<
", "
84 <<
" pathlength [mm] = " << tsfi.
pathlength() <<
'\n';
87 sl.precision(old_prec);
An intersection with a Surface is given by.
const IIntersectionCache * cache() const
Retrieve the associated cache block, if it exists.
std::unique_ptr< IIntersectionCache > m_cache
const Amg::Vector3D & direction() const
Method to retrieve the direction at the Intersection.
TrackSurfaceIntersection()=default
TrackSurfaceIntersection(const Amg::Vector3D &pos, const Amg::Vector3D &dir, double path)
Constructor.
Amg::Vector3D m_direction
TrackSurfaceIntersection & operator=(const TrackSurfaceIntersection &other)
const Amg::Vector3D & position() const
Method to retrieve the position of the Intersection.
double pathlength() const
Method to retrieve the pathlength propagated till the Intersection.
Eigen::Matrix< double, 3, 1 > Vector3D
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output