CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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

◆ ffunkti()

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

Definition at line 47 of file BCyl.h.

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  }

References a, testProducerWithPsetDescEmpty_cfi::a2, b, alignCSCRings::ff, mathSSE::sqrt(), and MetAnalyzer::u2.

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

◆ myExp() [1/2]

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

Definition at line 60 of file BCyl.h.

60 { return std::exp(x); }

References JetChargeProducer_cfi::exp.

◆ myExp() [2/2]

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

Definition at line 61 of file BCyl.h.

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

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

testProducerWithPsetDescEmpty_cfi.a2
a2
Definition: testProducerWithPsetDescEmpty_cfi.py:35
alignCSCRings.ff
ff
Definition: alignCSCRings.py:148
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
b
double b
Definition: hdecay.h:118
a
double a
Definition: hdecay.h:119
T
long double T
Definition: Basic3DVectorLD.h:48
genVertex_cff.x
x
Definition: genVertex_cff.py:13
JetChargeProducer_cfi.exp
exp
Definition: JetChargeProducer_cfi.py:6
MetAnalyzer.u2
u2
Definition: MetAnalyzer.py:61