ATLAS Offline Software
Loading...
Searching...
No Matches
DistanceSolution.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6// DistanceSolution.h, (c) ATLAS Detector software
8
9#ifndef TRKSURFACES_DISTANCESOLUTION_H
10#define TRKSURFACES_DISTANCESOLUTION_H
11
12#include <cmath>
13
14namespace Trk {
15
23
25{
26public:
27 DistanceSolution() = default;
32 ~DistanceSolution() = default;
33
36 double current = 0.,
37 bool signedDist = false,
38 double first = 0.,
39 double second = 0.);
40
41 // methods to access solutions
43 int numberOfSolutions() const;
44
46 double first() const;
47
50 double second() const;
51
53 double absClosest() const;
54
57
60 double currentDistance(bool signedDist = false) const;
61
64 bool signedDistance() const;
65
66private:
67 double m_first = 0;
68 double m_second = 0;
69 double m_current = 0;
70 int m_num = 0;
71 bool m_signedDist = false;
72};
73
74} // end of namespace
75
77#endif // TRKSURFACES_DISTANCESOLUTION_H
DistanceSolution & operator=(DistanceSolution &&)=default
double second() const
Distance to second intersection solution along direction (for a cylinder surface)
double currentDistance(bool signedDist=false) const
Current distance to surface (spatial), signed (along/opposite to surface normal) if input argument tr...
int numberOfSolutions() const
Number of intersection solutions.
DistanceSolution(DistanceSolution &&)=default
DistanceSolution & operator=(const DistanceSolution &)=default
double absClosest() const
Absolute Distance to closest solution.
DistanceSolution(const DistanceSolution &)=default
DistanceSolution()=default
~DistanceSolution()=default
bool signedDistance() const
This method indicates availability of signed current distance (false for Perigee and StraighLineSurfa...
DistanceSolution(int num, double current=0., bool signedDist=false, double first=0., double second=0.)
Constructor.
double toPointOfClosestApproach() const
Distance to point of closest approach along direction.
double first() const
Distance to first intersection solution along direction.
Ensure that the ATLAS eigen extensions are properly loaded.