ATLAS Offline Software
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 
14 namespace Trk {
15 
25 {
26 public:
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 
56  double toPointOfClosestApproach() const;
57 
60  double currentDistance(bool signedDist = false) const;
61 
64  bool signedDistance() const;
65 
66 private:
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
Trk::DistanceSolution::currentDistance
double currentDistance(bool signedDist=false) const
Current distance to surface (spatial), signed (along/opposite to surface normal) if input argument tr...
Trk::DistanceSolution::signedDistance
bool signedDistance() const
This method indicates availability of signed current distance (false for Perigee and StraighLineSurfa...
fillPileUpNoiseLumi.current
current
Definition: fillPileUpNoiseLumi.py:52
Trk::DistanceSolution::toPointOfClosestApproach
double toPointOfClosestApproach() const
Distance to point of closest approach along direction.
Trk::DistanceSolution::DistanceSolution
DistanceSolution()=default
Trk::DistanceSolution
Definition: DistanceSolution.h:25
Trk::DistanceSolution::numberOfSolutions
int numberOfSolutions() const
Number of intersection solutions.
Trk::DistanceSolution::DistanceSolution
DistanceSolution(DistanceSolution &&)=default
Trk::DistanceSolution::m_signedDist
bool m_signedDist
Definition: DistanceSolution.h:71
Trk::DistanceSolution::first
double first() const
Distance to first intersection solution along direction.
Trk::DistanceSolution::second
double second() const
Distance to second intersection solution along direction (for a cylinder surface)
Trk::DistanceSolution::DistanceSolution
DistanceSolution(const DistanceSolution &)=default
Trk::DistanceSolution::operator=
DistanceSolution & operator=(const DistanceSolution &)=default
trigbs_pickEvents.num
num
Definition: trigbs_pickEvents.py:76
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::DistanceSolution::absClosest
double absClosest() const
Absolute Distance to closest solution.
Trk::DistanceSolution::DistanceSolution
DistanceSolution(int num, double current=0., bool signedDist=false, double first=0., double second=0.)
Constructor.
Trk::DistanceSolution::m_current
double m_current
Definition: DistanceSolution.h:69
Trk::DistanceSolution::~DistanceSolution
~DistanceSolution()=default
DistanceSolution.icc
Trk::DistanceSolution::m_second
double m_second
Definition: DistanceSolution.h:68
Trk::DistanceSolution::m_first
double m_first
Definition: DistanceSolution.h:67
Trk::DistanceSolution::operator=
DistanceSolution & operator=(DistanceSolution &&)=default
Trk::DistanceSolution::m_num
int m_num
Definition: DistanceSolution.h:70