|  | ATLAS Offline Software
    | 
#include <MuonHoughMathUtils.h>
| Public Member Functions | |
| MuonHoughMathUtils () | |
| default constructor  More... | |
| virtual | ~MuonHoughMathUtils ()=default | 
| destructor  More... | |
| double | angleFromRadialToGrad (double angle) const | 
| converts angle in rad to degrees  More... | |
| double | angleFromGradToRadial (double angle) const | 
| converts angle in degrees to rad  More... | |
| Static Public Member Functions | |
| static int | sgn (double d) | 
| sign (-1 or 1) of a double  More... | |
| static int | step (double d, double x0=0) | 
| step function at place x0  More... | |
| static double | signedDistanceToLine (double x0, double y0, double r0, double phi) | 
| distance from (x0,y0) to the line (r0,phi), phi in rad  More... | |
| static double | distanceToLine (double x0, double y0, double r0, double phi) | 
| distance from (x0,y0) to the line (r0,phi), phi in rad  More... | |
| static double | incrementTillAbove0 (double x, double inc, double zero=0) | 
| increments x with inc till above x  More... | |
| static double | angleFrom0To360 (double angle) | 
| computes angle in degrees between 0 and 360  More... | |
| static double | angleFrom0To180 (double angle) | 
| computes angle in degrees between 0 and 180  More... | |
| static double | angleFrom0ToPi (double angle) | 
| computes angle in rad between 0 and Pi  More... | |
| static double | angleFromMinusPiToPi (double angle) | 
| computes angle in rad between -Pi and Pi  More... | |
| static std::string | intToString (int i) | 
| converts integer to string  More... | |
| static double | distanceToLine2D (double x0, double y0, double r, double phi) | 
| distance from (x0,y0) to line (r,phi)  More... | |
| static double | distanceToLine3D (const Amg::Vector3D &point, const Amg::Vector3D &l_trans, double phi, double theta) | 
| distance from (x0,y0,z0) to line (x,y,z,phi,theta)  More... | |
| static double | distanceOfLineToOrigin2D (double a, double b) | 
| distance of line y = ax + b to origin  More... | |
| static double | signedDistanceOfLineToOrigin2D (double x, double y, double phi) | 
| signed distance of line with point (x,y) and angle phi to origin  More... | |
| static double | thetaForCurvedHit (double invcurvature, MuonHoughHit *hit) | 
| calculates theta at (x,y,z) for curved track model  More... | |
| static void | thetasForCurvedHit (double ratio, MuonHoughHit *hit, double &theta1, double &theta2) | 
| calculates theta at (x,y,z) for curved track model, for positive and negative curvature  More... | |
| static double | signedDistanceCurvedToHit (double z0, double theta, double invcurvature, const Amg::Vector3D &hit) | 
| calculates distance of point (x,y,z) to curved track with z0, theta and invcurvature for curved track model  More... | |
| static void | extrapolateCurvedRoad (const Amg::Vector3D &roadpos, const Amg::Vector3D &roadmom, const Amg::Vector3D &pos, Amg::Vector3D &roadpose, Amg::Vector3D &roaddire) | 
| extrapolates road to global position  More... | |
| static Amg::Vector3D | shortestPointOfLineToOrigin3D (const Amg::Vector3D &vec, double phi, double theta) | 
| calculates the 3d-point closest to origin in xy-plane  More... | |
| static Amg::Vector3D | shortestPointOfLineToOrigin (const Amg::Vector3D &vec, double phi, double theta) | 
| calculates the 3d-point closest to origin  More... | |
| static bool | lineThroughCylinder (const Amg::Vector3D &vec, double phi, double theta, double r_0, double z_0) | 
| calculates if line (x,y,z,phi,theta) crosses cylinder (r_0,z_0) around origin  More... | |
Definition at line 35 of file MuonHoughMathUtils.h.
| 
 | default | 
default constructor
| 
 | virtualdefault | 
destructor
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | inline | 
converts angle in degrees to rad
Definition at line 112 of file MuonHoughMathUtils.h.
| 
 | static | 
| 
 | inline | 
converts angle in rad to degrees
Definition at line 109 of file MuonHoughMathUtils.h.
| 
 | static | 
distance of line y = ax + b to origin
Definition at line 108 of file MuonHoughMathUtils.cxx.
| 
 | static | 
distance from (x0,y0) to the line (r0,phi), phi in rad
Definition at line 40 of file MuonHoughMathUtils.cxx.
| 
 | static | 
| 
 | static | 
distance from (x0,y0,z0) to line (x,y,z,phi,theta)
Definition at line 86 of file MuonHoughMathUtils.cxx.
| 
 | static | 
extrapolates road to global position
| [in] | roadpos | The position of the combined pattern (should be perigee position) | 
| [in] | roadmom | The momentum of the combined pattern (should be perigee momentum) | 
| [in] | pos | The global position to extrapolate to | 
| [out] | roadpose | The nearest to pos, estimated road position | 
| [out] | roadpose | The nearest to pos, estimated road direction | 
Extrapolate pattern given by a roadpos and roadmom (should be perigee) to a position in space pos And determine extrapolated position: roadpose and direction: roaddire using the curved track model
Definition at line 264 of file MuonHoughMathUtils.cxx.
| 
 | static | 
| 
 | static | 
| 
 | static | 
calculates if line (x,y,z,phi,theta) crosses cylinder (r_0,z_0) around origin
Definition at line 161 of file MuonHoughMathUtils.cxx.
| 
 | static | 
| 
 | static | 
| 
 | static | 
calculates the 3d-point closest to origin in xy-plane
Definition at line 115 of file MuonHoughMathUtils.cxx.
| 
 | static | 
calculates distance of point (x,y,z) to curved track with z0, theta and invcurvature for curved track model
Definition at line 207 of file MuonHoughMathUtils.cxx.
| 
 | static | 
signed distance of line with point (x,y) and angle phi to origin
Definition at line 110 of file MuonHoughMathUtils.cxx.
| 
 | static | 
distance from (x0,y0) to the line (r0,phi), phi in rad
Definition at line 31 of file MuonHoughMathUtils.cxx.
| 
 | static | 
step function at place x0
Definition at line 21 of file MuonHoughMathUtils.cxx.
| 
 | static | 
calculates theta at (x,y,z) for curved track model
Definition at line 246 of file MuonHoughMathUtils.cxx.
| 
 | static | 
calculates theta at (x,y,z) for curved track model, for positive and negative curvature
returns angle for positive and negative curvature (positive first)
Definition at line 254 of file MuonHoughMathUtils.cxx.
 1.8.18
 1.8.18