CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
magfieldparam::bcylDetails Namespace Reference

Functions

template<typename T >
void ffunkti (T u, T *__restrict__ ff) __attribute__((always_inline))
 
double myExp (double x)
 
float myExp (float x)
 

Function Documentation

template<typename T >
void magfieldparam::bcylDetails::ffunkti ( T  u,
T *__restrict__  ff 
)
inline

Definition at line 47 of file BCyl.h.

References a, isotrackTrainRegressor::a2, b, mathSSE::sqrt(), and MetAnalyzer::u2.

Referenced by magfieldparam::BCycl< float >::compute().

47  {
48  // Function and its 3 derivatives
49  T a, b, a2, u2;
50  u2 = u * u;
51  a = T(1) / (T(1) + u2);
52  a2 = -T(3) * a * a;
53  b = std::sqrt(a);
54  ff[0] = u * b;
55  ff[1] = a * b;
56  ff[2] = a2 * ff[0];
57  ff[3] = a2 * ff[1] * (T(1) - 4 * u2);
58  }
T sqrt(T t)
Definition: SSEVec.h:19
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119
long double T
double magfieldparam::bcylDetails::myExp ( double  x)
inline

Definition at line 60 of file BCyl.h.

References funct::exp().

Referenced by magfieldparam::BCycl< float >::compute().

60 { return std::exp(x); }
Exp< T >::type exp(const T &t)
Definition: Exp.h:22
float x
float magfieldparam::bcylDetails::myExp ( float  x)
inline

Definition at line 61 of file BCyl.h.

61 { return unsafe_expf<3>(x); }
float x