|
|
Go to the documentation of this file.
21 inline float f_atan2f(
float y,
float x) {
return unsafe_atan2f<7>(
y,
x); }
23 inline float f_phi(
V v) {
24 return f_atan2f(
v.y(),
v.x());
35 return std::signbit(
t) ? -
T(1.) :
T(1.);
38 inline T clamped_acos(
T x) {
40 return unsafe_acos<5>(
x);
44 inline T clamped_sqrt(
T t) {
69 float orthog = clamped_sqrt(radius2 -
delta2);
71 float rc2 = lcenter.
mag2();
74 phi = f_phi(lcenter) +
sign * clamped_acos(
cos);
85 float orthog = clamped_sqrt(radius2 -
delta2);
113 double tmp1 = lip2 + tip2 - transverseIP2;
115 double tmp3 = 2. *
delta * origin;
116 double tmp4 = tmp1 +
delta2;
123 double u1 = 0,
u2 = 0;
124 constexpr
double SMALL = 1.0e-23;
125 constexpr
double LARGE = 1.0e23;
141 double tmp6 = (tmp4 - tmp5) * (tmp4 + tmp5);
147 double tmp8 =
tip * (tmp1 -
delta2) / tmp2;
155 if ((tmp3 < 0) == (
tip < 0))
176 double invDist2 =
sqr(invDist);
178 return sgn(invDist) * curv;
186 double dist = 1.0 / invDist;
196 inline float arc(
float c,
float d) {
226 constexpr
double maxAngle =
M_PI;
227 double halfAngle = (0.5 * maxAngle) * (
z2 - z1) / (z3 - z1);
237 Scalar lip = circle->axis.y() * circle->p1.x() - circle->axis.x() * circle->p1.y();
249 Scalar phi1 = clamped_acos(cos1);
250 Scalar phi2 = clamped_acos(cos2);
257 return z1 + ((
u1 >= seg &&
u1 <
u2) ?
u1 :
u2) * dzdu;
260 #include <vdt/sincos.h>
268 Scalar lip = circle->axis.y() * circle->p1.x() - circle->axis.x() * circle->p1.y();
273 Scalar minR2 = (2. * circle->center - circle->p1).
mag2();
294 vdt::fast_sincosf(
phi,
s,
c);
const ThirdHitPredictionFromCircle * circle
Geom::Phi< T > phi() const
constexpr T proxim(T b, T a)
Scalar rAtZ(Scalar z) const
Basic2DVector< Scalar > Vector2D
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
T curvature(T InversePt, const edm::EventSetup &iSetup)
static constexpr float b2
ThirdHitPredictionFromCircle(const GlobalPoint &P1, const GlobalPoint &P2, float tolerance)
float angle(float curvature, float radius) const
Scalar zAtR(Scalar r) const
Range operator()(Range curvature, float radius) const
static const double SMALL
Sin< T >::type sin(const T &t)
PixelRecoRange< float > Range
Range curvature(double transverseIP) const
Cos< T >::type cos(const T &t)
T y() const
Cartesian y coordinate.
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
constexpr float approx_asin_P< 7 >(float z)
constexpr T normalizedPhi(T phi)
T x() const
Cartesian x coordinate.
float phi(float curvature, float radius) const
uint32_t const T *__restrict__ const uint32_t *__restrict__ int32_t int Histo::index_type cudaStream_t V
ThirdHitPredictionFromCircle::Scalar Scalar
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
double transverseIP(const Vector2D &thirdPoint) const
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
Abs< T >::type abs(const T &t)
static double maxCurvature(const ThirdHitPredictionFromCircle *circle, double z1, double z2, double z3)
Scalar invCenterOnAxis(const Vector2D &thirdPoint) const