ATLAS Offline Software
Loading...
Searching...
No Matches
RealLinearEquation.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// RealLinearEquation.h, (c) ATLAS Detector software
8
9#ifndef TRKEXUTILS_REALLINEAREQUATION_H
10#define TRKEXUTILS_REALLINEAREQUATION_H
11
12#include <cmath>
13#include <utility>
14
15namespace Trk {
16
30
32{
33
34 double yOfX;
35 double segLength;
36
37 RealLinearEquation(double px, double py, double k, double xprime)
38 {
39 double deltax = xprime - px;
40 yOfX = py + k * (deltax);
41 double deltay = yOfX - py;
42 segLength = sqrt(deltax * deltax + deltay * deltay);
43 }
44};
45
46} // end of namespace
47
48#endif
49
Ensure that the ATLAS eigen extensions are properly loaded.
@ px
Definition ParamDefs.h:59
@ py
Definition ParamDefs.h:60
double yOfX
the result of x
double segLength
length of the line segment
RealLinearEquation(double px, double py, double k, double xprime)