CMS 3D CMS Logo

Functions
cms_units::operators Namespace Reference

Functions

constexpr double operator"" _cm (long double length)
 
constexpr double operator"" _cm (unsigned long long int length)
 
constexpr double operator"" _cm3 (long double length)
 
constexpr double operator"" _eV (long double energy)
 
constexpr double operator"" _GeV (long double energy)
 
constexpr double operator"" _m (long double length)
 
constexpr double operator"" _m3 (long double length)
 
constexpr double operator"" _MeV (long double energy)
 
constexpr double operator"" _mm (long double length)
 
constexpr double operator"" _mm (unsigned long long int length)
 
constexpr double operator"" _TeV (long double energy)
 

Function Documentation

◆ operator"" _cm() [1/2]

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

Definition at line 27 of file CMSUnits.h.

27 { return length * 1.; }

◆ operator"" _cm() [2/2]

constexpr double cms_units::operators::operator"" _cm ( unsigned long long int  length)

Definition at line 32 of file CMSUnits.h.

32 { return length * 1; }

◆ operator"" _cm3()

constexpr double cms_units::operators::operator"" _cm3 ( long double  length)

Definition at line 29 of file CMSUnits.h.

29 { return length * 1._cm * 1._cm * 1._cm; }

◆ operator"" _eV()

constexpr double cms_units::operators::operator"" _eV ( long double  energy)

Definition at line 36 of file CMSUnits.h.

References hcalRecHitTable_cff::energy.

36 { return energy * 1.e-9_GeV; }

◆ operator"" _GeV()

constexpr double cms_units::operators::operator"" _GeV ( long double  energy)

Definition at line 35 of file CMSUnits.h.

References hcalRecHitTable_cff::energy.

35 { return energy * 1.; }

◆ operator"" _m()

constexpr double cms_units::operators::operator"" _m ( long double  length)

Definition at line 28 of file CMSUnits.h.

28 { return length * 100.; }

◆ operator"" _m3()

constexpr double cms_units::operators::operator"" _m3 ( long double  length)

Definition at line 30 of file CMSUnits.h.

30 { return length * 1._m * 1._m * 1._m; }

◆ operator"" _MeV()

constexpr double cms_units::operators::operator"" _MeV ( long double  energy)

Definition at line 37 of file CMSUnits.h.

References hcalRecHitTable_cff::energy.

37 { return energy * 1.e-3_GeV; }

◆ operator"" _mm() [1/2]

constexpr double cms_units::operators::operator"" _mm ( long double  length)

Definition at line 26 of file CMSUnits.h.

26 { return length * 0.1; }

◆ operator"" _mm() [2/2]

constexpr double cms_units::operators::operator"" _mm ( unsigned long long int  length)

Definition at line 31 of file CMSUnits.h.

31 { return length * 0.1; }

◆ operator"" _TeV()

constexpr double cms_units::operators::operator"" _TeV ( long double  energy)

Definition at line 38 of file CMSUnits.h.

References hcalRecHitTable_cff::energy.

38 { return energy * 1.e3_GeV; }