Belle II Software  release-08-01-10
SZLine Class Reference

A line in the sz space. More...

#include <SZLine.h>

Public Member Functions

 SZLine ()
 Default constructor for ROOT compatibility.
 
 SZLine (double tanLambda, double z0)
 Constructor from slope and intercept in the sz space.
 
 SZLine (const SZParameters &szParameters)
 Constructor from the sz parameters.
 
double tanLambda () const
 Getter for the tan lambda parameter.
 
double slope () const
 Getter for the slope in the sz space which is equivalent to tan lambda.
 
double inverseSlope () const
 Returns the slope over the second coordinate.
 
double theta () const
 Getter for the theta dip angle.
 
void setTanLambda (double tanLambda)
 Getter for the tan lambda parameter.
 
double z0 () const
 Getter for the z0 parameter.
 
double intercept () const
 Getter for the intercept in the sz space which is equivalent to z0.
 
void setZ0 (double z0)
 Getter for the z0 parameter.
 
SZParameters szParameters () const
 Getter for the sz parameters.
 
double zero () const
 Returns the the two dimensional arc length s where the z coordinate approaches zero.
 
double map (double s) const
 Maps the two dimensional arc length s to z.
 
double operator() (double s) const
 Maps the two dimensional arc length s to z.
 
double inverseMap (double z) const
 Maps the z coordinate to the two dimensional arc length s.
 
void invalidate ()
 Sets the parameters to a invalid representation.
 
bool isInvalid () const
 Indicates if the line parameters do not represent a valid line.
 
void reverse ()
 Reverse the arc length direction in place.
 
SZLine reversed () const
 Returns a copy of the line with reversed the arc length direction.
 
double distance (const Vector2D &szPoint) const
 Calculates the signed distance of the point to the line. More...
 
double distance (double s, double z) const
 Calculates the signed distance of the point given by its to coordinates to the line. More...
 
Vector2D intersection (const SZLine &szLine) const
 Calculates the intersection point of two line. Infinity for parallels.
 
void passiveMoveBy (const Vector2D &bySZ)
 Passivelly move the coordinate system in place by the given sz vector.
 
void passiveMoveBy (double s, double z)
 Passivelly move the coordinate system in place by the given s and z coordinates.
 
SZLine passiveMovedBy (const Vector2D &bySZ) const
 Return a line passivelly move by the given vector as a copy.
 
SZLine passiveMovedBy (double s, double z) const
 Return a line passivelly move by the given s and z coordinates as a copy.
 
SZJacobian passiveMoveByJacobian (const Vector2D &bySZ) const
 Computes the Jacobi matrix for a move of the coordinate system by the given vector.
 

Private Attributes

double m_tanLambda
 Memory for the tan lambda parameter.
 
double m_z0
 Memory for the z0 parameter.
 

Detailed Description

A line in the sz space.

The line is represented in sz parameters tan lambda and z0 beginning the slope and the intercept of the line in the sz space.

Definition at line 26 of file SZLine.h.

Member Function Documentation

◆ distance() [1/2]

double distance ( const Vector2D szPoint) const
inline

Calculates the signed distance of the point to the line.

Returns the signed distance of the point to the line. The sign is positiv
below the curve and negative above it.

Definition at line 165 of file SZLine.h.

166  {
167  return distance(szPoint.first(), szPoint.second());
168  }
double distance(const Vector2D &szPoint) const
Calculates the signed distance of the point to the line.
Definition: SZLine.h:165

◆ distance() [2/2]

double distance ( double  s,
double  z 
) const
inline

Calculates the signed distance of the point given by its to coordinates to the line.

Returns the signed distance of the point to the line. The sign is positiv
below the curve and negative above it.

Definition at line 175 of file SZLine.h.


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