ATLAS Offline Software
CylinderIntersector.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 // CylinderIntersector.h, (c) ATLAS Detector software
8 
9 #ifndef TRKVOLUMES_CYLINDERINTERSECTOR_H
10 #define TRKVOLUMES_CYLINDERINTERSECTOR_H
11 
12 #include <cmath>
13 
14 namespace Trk {
15 
21 
22  double yOfX;
23  double segLength;
24 
25  CylinderIntersector(double px, double py, double k, double xprime) {
26  double deltax = xprime-px;
27  yOfX = py + k*(deltax);
28  double deltay = yOfX-py;
29  segLength = sqrt(deltax*deltax+deltay*deltay);
30  }
31  };
32 
33 } // end of ns
34 
35 #endif
Trk::py
@ py
Definition: ParamDefs.h:66
Trk::CylinderIntersector::CylinderIntersector
CylinderIntersector(double px, double py, double k, double xprime)
Definition: CylinderIntersector.h:25
Trk::CylinderIntersector::segLength
double segLength
length of the line segment
Definition: CylinderIntersector.h:23
Trk::CylinderIntersector
Definition: CylinderIntersector.h:20
Trk::px
@ px
Definition: ParamDefs.h:65
Trk::CylinderIntersector::yOfX
double yOfX
the result of x
Definition: CylinderIntersector.h:22
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
fitman.k
k
Definition: fitman.py:528