CMS 3D CMS Logo

Macros | Functions
DDUnits.h File Reference
#include <cmath>

Go to the source code of this file.

Macros

#define ConvertTo(_x, _y)   (_x)/(1.0_##_y)
 

Functions

constexpr long double _pi (M_PI)
 
constexpr long double operator""_deg (long double deg)
 
constexpr long double operator""_deg (unsigned long long int deg)
 
constexpr long double operator""_mm (long double length)
 
constexpr long double operator""_pi (long double x)
 
constexpr long double operator""_pi (unsigned long long int x)
 

Macro Definition Documentation

#define ConvertTo (   _x,
  _y 
)    (_x)/(1.0_##_y)

Definition at line 6 of file DDUnits.h.

Referenced by algorithm().

Function Documentation

constexpr long double _pi ( M_PI  )
constexpr long double operator""_deg ( long double  deg)

Definition at line 10 of file DDUnits.h.

References _pi().

11 {
12  return deg*_pi/180;
13 }
constexpr long double _pi(M_PI)
constexpr long double operator""_deg ( unsigned long long int  deg)

Definition at line 15 of file DDUnits.h.

References _pi().

16 {
17  return deg*_pi/180;
18 }
constexpr long double _pi(M_PI)
constexpr long double operator""_mm ( long double  length)

Definition at line 20 of file DDUnits.h.

21 {
22  return length*1.;
23 }
constexpr long double operator""_pi ( long double  x)

Definition at line 25 of file DDUnits.h.

References _pi().

26 { return x * _pi; }
constexpr long double _pi(M_PI)
constexpr long double operator""_pi ( unsigned long long int  x)

Definition at line 28 of file DDUnits.h.

References _pi().

29 { return x * _pi; }
constexpr long double _pi(M_PI)