ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Trk::DistanceSolution Class Reference

#include <DistanceSolution.h>

Collaboration diagram for Trk::DistanceSolution:

Public Member Functions

 DistanceSolution ()=default
 
 DistanceSolution (const DistanceSolution &)=default
 
 DistanceSolution (DistanceSolution &&)=default
 
DistanceSolutionoperator= (const DistanceSolution &)=default
 
DistanceSolutionoperator= (DistanceSolution &&)=default
 
 ~DistanceSolution ()=default
 
 DistanceSolution (int num, double current=0., bool signedDist=false, double first=0., double second=0.)
 Constructor. More...
 
int numberOfSolutions () const
 Number of intersection solutions. More...
 
double first () const
 Distance to first intersection solution along direction. More...
 
double second () const
 Distance to second intersection solution along direction (for a cylinder surface) More...
 
double absClosest () const
 Absolute Distance to closest solution. More...
 
double toPointOfClosestApproach () const
 Distance to point of closest approach along direction. More...
 
double currentDistance (bool signedDist=false) const
 Current distance to surface (spatial), signed (along/opposite to surface normal) if input argument true (absolute value by default) More...
 
bool signedDistance () const
 This method indicates availability of signed current distance (false for Perigee and StraighLineSurface) More...
 

Private Attributes

double m_first = 0
 
double m_second = 0
 
double m_current = 0
 
int m_num = 0
 
bool m_signedDist = false
 

Detailed Description

Access to distance solutions. Driven by need to accomodate intersections with a cylinder into common interface.

Author
Sarka.nosp@m..Tod.nosp@m.orova.nosp@m.@cer.nosp@m.n.ch

Definition at line 24 of file DistanceSolution.h.

Constructor & Destructor Documentation

◆ DistanceSolution() [1/4]

Trk::DistanceSolution::DistanceSolution ( )
default

◆ DistanceSolution() [2/4]

Trk::DistanceSolution::DistanceSolution ( const DistanceSolution )
default

◆ DistanceSolution() [3/4]

Trk::DistanceSolution::DistanceSolution ( DistanceSolution &&  )
default

◆ ~DistanceSolution()

Trk::DistanceSolution::~DistanceSolution ( )
default

◆ DistanceSolution() [4/4]

Trk::DistanceSolution::DistanceSolution ( int  num,
double  current = 0.,
bool  signedDist = false,
double  first = 0.,
double  second = 0. 
)

Constructor.

Member Function Documentation

◆ absClosest()

double Trk::DistanceSolution::absClosest ( ) const

Absolute Distance to closest solution.

◆ currentDistance()

double Trk::DistanceSolution::currentDistance ( bool  signedDist = false) const

Current distance to surface (spatial), signed (along/opposite to surface normal) if input argument true (absolute value by default)

◆ first()

double Trk::DistanceSolution::first ( ) const

Distance to first intersection solution along direction.

◆ numberOfSolutions()

int Trk::DistanceSolution::numberOfSolutions ( ) const

Number of intersection solutions.

◆ operator=() [1/2]

DistanceSolution& Trk::DistanceSolution::operator= ( const DistanceSolution )
default

◆ operator=() [2/2]

DistanceSolution& Trk::DistanceSolution::operator= ( DistanceSolution &&  )
default

◆ second()

double Trk::DistanceSolution::second ( ) const

Distance to second intersection solution along direction (for a cylinder surface)

◆ signedDistance()

bool Trk::DistanceSolution::signedDistance ( ) const

This method indicates availability of signed current distance (false for Perigee and StraighLineSurface)

◆ toPointOfClosestApproach()

double Trk::DistanceSolution::toPointOfClosestApproach ( ) const

Distance to point of closest approach along direction.

Member Data Documentation

◆ m_current

double Trk::DistanceSolution::m_current = 0
private

Definition at line 69 of file DistanceSolution.h.

◆ m_first

double Trk::DistanceSolution::m_first = 0
private

Definition at line 67 of file DistanceSolution.h.

◆ m_num

int Trk::DistanceSolution::m_num = 0
private

Definition at line 70 of file DistanceSolution.h.

◆ m_second

double Trk::DistanceSolution::m_second = 0
private

Definition at line 68 of file DistanceSolution.h.

◆ m_signedDist

bool Trk::DistanceSolution::m_signedDist = false
private

Definition at line 71 of file DistanceSolution.h.


The documentation for this class was generated from the following file: