CMS 3D CMS Logo

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

◆ ffunkti()

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

Definition at line 47 of file BCyl.h.

References a, testProducerWithPsetDescEmpty_cfi::a2, b, alignCSCRings::ff, 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:23
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
long double T

◆ myExp() [1/2]

double magfieldparam::bcylDetails::myExp ( double  x)
inline

Definition at line 60 of file BCyl.h.

References JetChargeProducer_cfi::exp, and x.

◆ myExp() [2/2]

float magfieldparam::bcylDetails::myExp ( float  x)
inline

Definition at line 61 of file BCyl.h.

References x.

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

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