ATLAS Offline Software
Loading...
Searching...
No Matches
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
14namespace Trk {
15
19
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
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
CylinderIntersector(double px, double py, double k, double xprime)
double segLength
length of the line segment