ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
Trk::RealLinearEquation Struct Reference

#include <RealLinearEquation.h>

Collaboration diagram for Trk::RealLinearEquation:

Public Member Functions

 RealLinearEquation (double px, double py, double k, double xprime)
 

Public Attributes

double yOfX
 the result of x More...
 
double segLength
 length of the line segment More...
 

Detailed Description

Mathematic struct for solving real linear equation

Mathematical motivation:

Author
Andre.nosp@m.as.S.nosp@m.alzbu.nosp@m.rger.nosp@m.@cern.nosp@m..ch

Definition at line 31 of file RealLinearEquation.h.

Constructor & Destructor Documentation

◆ RealLinearEquation()

Trk::RealLinearEquation::RealLinearEquation ( double  px,
double  py,
double  k,
double  xprime 
)
inline

Definition at line 37 of file RealLinearEquation.h.

38  {
39  double deltax = xprime - px;
40  yOfX = py + k * (deltax);
41  double deltay = yOfX - py;
42  segLength = sqrt(deltax * deltax + deltay * deltay);
43  }

Member Data Documentation

◆ segLength

double Trk::RealLinearEquation::segLength

length of the line segment

Definition at line 35 of file RealLinearEquation.h.

◆ yOfX

double Trk::RealLinearEquation::yOfX

the result of x

Definition at line 34 of file RealLinearEquation.h.


The documentation for this struct was generated from the following file:
Trk::py
@ py
Definition: ParamDefs.h:66
Trk::RealLinearEquation::segLength
double segLength
length of the line segment
Definition: RealLinearEquation.h:35
Trk::px
@ px
Definition: ParamDefs.h:65
Trk::RealLinearEquation::yOfX
double yOfX
the result of x
Definition: RealLinearEquation.h:34
fitman.k
k
Definition: fitman.py:528