CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 49 of file BCyl.h.

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

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

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

Definition at line 62 of file BCyl.h.

References create_public_lumi_plots::exp.

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

62 { return std::exp(x);}
T x() const
Cartesian x coordinate.
float magfieldparam::bcylDetails::myExp ( float  x)
inline

Definition at line 63 of file BCyl.h.

63 { return unsafe_expf<3>(x);}
T x() const
Cartesian x coordinate.