CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
angle_units::operators Namespace Reference

Functions

template<class NumType >
constexpr long double convertDegToRad (NumType degrees)
 
template<class NumType >
constexpr NumType convertRadToDeg (NumType radians)
 
constexpr long double operator""_deg (long double deg)
 
constexpr long double operator""_deg (unsigned long long int deg)
 
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)
 

Function Documentation

template<class NumType >
constexpr long double angle_units::operators::convertDegToRad ( NumType  degrees)
inline
template<class NumType >
constexpr NumType angle_units::operators::convertRadToDeg ( NumType  radians)
inline

Definition at line 21 of file angle_units.h.

Referenced by algorithm(), HcalParametersFromDD::build(), DDHCalBarrelAlgo::constructGeneralVolume(), DDHCalEndcapAlgo::constructGeneralVolume(), HCalEndcapAlgo::constructGeneralVolume(), DDHCalEndcapModuleAlgo::constructInsideModule(), DDHCalEndcapAlgo::constructInsideModule(), HCalEndcapModuleAlgo::constructInsideModule(), HCalEndcapAlgo::constructInsideModule(), DDHCalEndcapModuleAlgo::constructInsideModule0(), DDHCalEndcapAlgo::constructInsideModule0(), HCalEndcapModuleAlgo::constructInsideModule0(), HCalEndcapAlgo::constructInsideModule0(), DDHCalBarrelAlgo::constructInsideSector(), DDHCalEndcapAlgo::constructInsideSector(), HCalEndcapAlgo::constructInsideSector(), DDHGCalEEAlgo::constructLayers(), DDHGCalHEAlgo::constructLayers(), DDHGCalModule::constructLayers(), DDHGCalModuleAlgo::constructLayers(), HGCalEEAlgo::ConstructLayers(), DDHCalBarrelAlgo::constructMidLayer(), HcalBarrelAlgo::constructMidLayer(), DDHCalEndcapModuleAlgo::constructScintLayer(), DDHCalEndcapAlgo::constructScintLayer(), HCalEndcapModuleAlgo::constructScintLayer(), HCalEndcapAlgo::constructScintLayer(), DDHCalBarrelAlgo::constructSideLayer(), HcalBarrelAlgo::constructSideLayer(), DDcreateRotationMatrix(), Geom::Phi< float >::degrees(), DDHtmlRoDetails::details(), DDAngular::execute(), DDGEMAngular::execute(), DDMuonAngular::execute(), DDHCalTestBeamAlgo::execute(), DDHCalXtalAlgo::execute(), DDHCalAngular::execute(), DDHCalTBZposAlgo::execute(), DDHCalTBCableAlgo::execute(), DDHCalFibreBundle::execute(), SimG4HcalValidation::fill(), formatAsDegrees(), formatAsDegreesInInteger(), FastTimeDDDConstants::getEtaPhi(), HcalDDDRecConstants::getOneEtaBin(), HcalDDDSimConstants::getPhis(), HcalDDDRecConstants::getPhis(), HcalDDDRecConstants::getThickActive(), FastTimeDDDConstants::getZPhi(), HcalBarrelAlgo::HcalBarrelAlgo(), HCalEndcapAlgo::HCalEndcapAlgo(), HGCalEEAlgo::HGCalEEAlgo(), HGCalHEAlgo::HGCalHEAlgo(), HGCalMouseBite::HGCalMouseBite(), DDLinear::initialize(), DDAngular::initialize(), DDGEMAngular::initialize(), DDMuonAngular::initialize(), DDHCalTestBeamAlgo::initialize(), DDHCalXtalAlgo::initialize(), DDHCalAngular::initialize(), DDHCalTBZposAlgo::initialize(), DDHCalFibreBundle::initialize(), DDHGCalHEAlgo::initialize(), DDHGCalEEAlgo::initialize(), FastTimeDDDConstants::initialize(), DDHCalEndcapAlgo::initialize(), HcalDDDRecConstants::initialize(), DDLRotationAndReflection::isLeftHanded(), operator<<(), output(), DDHCalEndcapModuleAlgo::parameterLayer(), DDHCalEndcapAlgo::parameterLayer(), HCalEndcapModuleAlgo::parameterLayer(), HCalEndcapAlgo::parameterLayer(), DDHCalEndcapModuleAlgo::parameterLayer0(), DDHCalEndcapAlgo::parameterLayer0(), HCalEndcapModuleAlgo::parameterLayer0(), HCalEndcapAlgo::parameterLayer0(), printRot(), HcalDDDSimConstants::printTileHB(), HcalDDDSimConstants::printTileHE(), DDCoreToDDXMLOutput::rotation(), DDCoreToDDXMLOutput::solid(), DDI::Sphere::stream(), DDI::Tubs::stream(), DDI::Torus::stream(), DDI::Cons::stream(), DDI::TruncTubs::stream(), DDI::Polycone::stream(), DDI::Polyhedra::stream(), DDI::Trap::stream(), and DDI::CutTubs::stream().

22  {
23  return (radians * degPerRad);
24  }
constexpr long double degPerRad
Definition: angle_units.h:9
constexpr long double angle_units::operators::operator""_deg ( long double  deg)

Definition at line 16 of file angle_units.h.

References angle_units::degPerRad.

16 { return deg / degPerRad; }
constexpr long double degPerRad
Definition: angle_units.h:9
constexpr long double angle_units::operators::operator""_deg ( unsigned long long int  deg)

Definition at line 17 of file angle_units.h.

References angle_units::degPerRad.

17 { return deg / degPerRad; }
constexpr long double degPerRad
Definition: angle_units.h:9
constexpr long double angle_units::operators::operator""_pi ( long double  x)

Definition at line 14 of file angle_units.h.

References angle_units::piRadians().

14 { return x * piRadians; }
constexpr long double piRadians(M_PIl)
constexpr long double angle_units::operators::operator""_pi ( unsigned long long int  x)

Definition at line 15 of file angle_units.h.

References angle_units::piRadians().

15 { return x * piRadians; }
constexpr long double piRadians(M_PIl)
constexpr long double angle_units::operators::operator""_rad ( long double  rad)

Definition at line 18 of file angle_units.h.

18 { return rad * 1.; }