CMS 3D CMS Logo

Functions
dd::operators Namespace Reference

Functions

constexpr long double operator""_cm (long double length)
 
constexpr long double operator""_cm3 (long double length)
 
constexpr long double operator""_deg (long double deg)
 
constexpr long double operator""_deg (unsigned long long int deg)
 
constexpr long double operator""_eV (long double energy)
 
constexpr long double operator""_g (long double mass)
 
constexpr long double operator""_g_per_cm3 (long double density)
 
constexpr long double operator""_g_per_mole (long double mass)
 
constexpr long double operator""_kg (long double mass)
 
constexpr long double operator""_m (long double length)
 
constexpr long double operator""_m3 (long double length)
 
constexpr long double operator""_MeV (long double energy)
 
constexpr long double operator""_mg (long double mass)
 
constexpr long double operator""_mg_per_cm3 (long double density)
 
constexpr long double operator""_mm (long double length)
 
constexpr long double operator""_mole (long double mass)
 
constexpr long double operator""_pi (long double x)
 
constexpr long double operator""_pi (unsigned long long int x)
 
constexpr long double operator""_rad (long double rad)
 
constexpr long double operator""_s (long double x)
 

Function Documentation

constexpr long double dd::operators::operator""_cm ( long double  length)

Definition at line 40 of file DDUnits.h.

41  {
42  return length*10.;
43  }
constexpr long double dd::operators::operator""_cm3 ( long double  length)

Definition at line 48 of file DDUnits.h.

49  {
50  return length*1._cm*1._cm*1._cm;
51  }
constexpr long double dd::operators::operator""_deg ( long double  deg)

Definition at line 22 of file DDUnits.h.

23  {
24  return deg*_pi/180.;
25  }
constexpr long double _pi(M_PI)
constexpr long double dd::operators::operator""_deg ( unsigned long long int  deg)

Definition at line 26 of file DDUnits.h.

27  {
28  return deg*_pi/180.;
29  }
constexpr long double _pi(M_PI)
constexpr long double dd::operators::operator""_eV ( long double  energy)

Definition at line 64 of file DDUnits.h.

65  { return energy * 1.e-6_MeV; }
constexpr long double dd::operators::operator""_g ( long double  mass)

Definition at line 70 of file DDUnits.h.

71  { return mass * 1.e-3_kg; }
constexpr long double dd::operators::operator""_g_per_cm3 ( long double  density)

Definition at line 80 of file DDUnits.h.

81  { return density * 1._g / 1._cm3; }
constexpr long double dd::operators::operator""_g_per_mole ( long double  mass)

Definition at line 82 of file DDUnits.h.

83  { return mass * 1._g / 1._mole; }
constexpr long double dd::operators::operator""_kg ( long double  mass)

Definition at line 68 of file DDUnits.h.

References hgcalDigitizer_cfi::_m.

69  { return mass * ( 1._eV / 1.602176487e-19 ) * 1._s * 1._s / ( 1._m * 1._m ); }
constexpr long double _s(1.e+9)
constexpr long double dd::operators::operator""_m ( long double  length)

Definition at line 44 of file DDUnits.h.

45  {
46  return length*1000.;
47  }
constexpr long double dd::operators::operator""_m3 ( long double  length)

Definition at line 52 of file DDUnits.h.

53  {
54  return length*1._m*1._m*1._m;
55  }
constexpr long double dd::operators::operator""_MeV ( long double  energy)

Definition at line 62 of file DDUnits.h.

63  { return energy * 1.; }
constexpr long double dd::operators::operator""_mg ( long double  mass)

Definition at line 72 of file DDUnits.h.

73  { return mass * 1.e-3_g; }
constexpr long double dd::operators::operator""_mg_per_cm3 ( long double  density)

Definition at line 78 of file DDUnits.h.

79  { return density * 1._mg / 1._cm3; }
constexpr long double dd::operators::operator""_mm ( long double  length)

Definition at line 36 of file DDUnits.h.

37  {
38  return length*1.;
39  }
constexpr long double dd::operators::operator""_mole ( long double  mass)

Definition at line 74 of file DDUnits.h.

75  { return mass * 1.; }
constexpr long double dd::operators::operator""_pi ( long double  x)

Definition at line 18 of file DDUnits.h.

References dd::_pi().

19  { return x * _pi; }
constexpr long double _pi(M_PI)
constexpr long double dd::operators::operator""_pi ( unsigned long long int  x)

Definition at line 20 of file DDUnits.h.

References dd::_pi().

21  { return x * _pi; }
constexpr long double _pi(M_PI)
constexpr long double dd::operators::operator""_rad ( long double  rad)

Definition at line 30 of file DDUnits.h.

31  {
32  return rad*1.;
33  }
constexpr long double dd::operators::operator""_s ( long double  x)

Definition at line 58 of file DDUnits.h.

References dd::_s().

59  { return x * _s; }
constexpr long double _s(1.e+9)