CMS 3D CMS Logo

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

◆ convertDegToRad()

template<class NumType >
constexpr long double angle_units::operators::convertDegToRad ( NumType  degrees)
inlineconstexpr

◆ convertRadToDeg()

template<class NumType >
constexpr NumType angle_units::operators::convertRadToDeg ( NumType  radians)
inlineconstexpr

Definition at line 21 of file angle_units.h.

22  {
23  return (radians * degPerRad);
24  }

References angle_units::degPerRad.

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(), DDHGCalModule::constructLayers(), DDHGCalModuleAlgo::constructLayers(), DDHGCalEEAlgo::constructLayers(), DDHGCalHEAlgo::constructLayers(), DDHGCalHEFileAlgo::constructLayers(), DDHGCalEEFileAlgo::constructLayers(), DDHGCalMixLayer::constructLayers(), DDHGCalSiliconModule::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(), PrintGeomInfoAction::dumpTouch(), DDAngular::execute(), DDTotemAngular::execute(), DDHCalTestBeamAlgo::execute(), DDHCalXtalAlgo::execute(), DDHCalAngular::execute(), DDHCalTBZposAlgo::execute(), DDGEMAngular::execute(), DDMuonAngular::execute(), DDHCalTBCableAlgo::execute(), DDHCalFibreBundle::execute(), SimG4HcalValidation::fill(), MaterialBudgetHcalHistos::fillPerStep(), MaterialBudgetHcalHistos::fillStartTrack(), formatAsDegrees(), formatAsDegreesInInteger(), FastTimeDDDConstants::getEtaPhi(), HcalDDDRecConstants::getOneEtaBin(), HcalDDDSimConstants::getPhis(), HcalDDDRecConstants::getPhis(), HcalDDDRecConstants::getThickActive(), FastTimeDDDConstants::getZPhi(), HcalBarrelAlgo::HcalBarrelAlgo(), HCalEndcapAlgo::HCalEndcapAlgo(), HGCalEEAlgo::HGCalEEAlgo(), HGCalEEFileAlgo::HGCalEEFileAlgo(), HGCalHEAlgo::HGCalHEAlgo(), HGCalHEFileAlgo::HGCalHEFileAlgo(), HGCalMixLayer::HGCalMixLayer(), HGCalMouseBite::HGCalMouseBite(), HGCalSiliconModule::HGCalSiliconModule(), DDLinear::initialize(), DDTotemAngular::initialize(), DDAngular::initialize(), DDMTDLinear::initialize(), DDHCalTestBeamAlgo::initialize(), DDHCalXtalAlgo::initialize(), DDHCalAngular::initialize(), DDHCalTBZposAlgo::initialize(), DDGEMAngular::initialize(), DDMuonAngular::initialize(), DDBHMAngular::initialize(), DDHCalFibreBundle::initialize(), FastTimeDDDConstants::initialize(), DDHGCalEEAlgo::initialize(), DDHGCalHEAlgo::initialize(), DDHGCalHEFileAlgo::initialize(), DDHGCalEEFileAlgo::initialize(), DDHGCalMixLayer::initialize(), DDHGCalSiliconModule::initialize(), DDHCalEndcapAlgo::initialize(), HcalDDDRecConstants::initialize(), DDLRotationAndReflection::isLeftHanded(), HGCalDDDConstants::locateCell(), operator<<(), output(), DDHCalEndcapModuleAlgo::parameterLayer(), DDHCalEndcapAlgo::parameterLayer(), HCalEndcapModuleAlgo::parameterLayer(), HCalEndcapAlgo::parameterLayer(), DDHCalEndcapModuleAlgo::parameterLayer0(), DDHCalEndcapAlgo::parameterLayer0(), HCalEndcapModuleAlgo::parameterLayer0(), HCalEndcapAlgo::parameterLayer0(), DDHGCalMixLayer::positionMix(), HGCalMixLayer::positionMix(), printRot(), HcalDDDSimConstants::printTileHB(), HcalDDDSimConstants::printTileHE(), DDCoreToDDXMLOutput::rotation(), DDCoreToDDXMLOutput::solid(), DDI::Sphere::stream(), DDI::Tubs::stream(), DDI::Torus::stream(), DDI::Cons::stream(), DDI::Polycone::stream(), DDI::TruncTubs::stream(), DDI::Polyhedra::stream(), DDI::Trap::stream(), DDI::CutTubs::stream(), and PrintGeomInfoAction::update().

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

constexpr long double angle_units::operators::operator""_deg ( long double  deg)
constexpr

Definition at line 16 of file angle_units.h.

16 { return deg / degPerRad; }

References angle_units::degPerRad.

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

constexpr long double angle_units::operators::operator""_deg ( unsigned long long int  deg)
constexpr

Definition at line 17 of file angle_units.h.

17 { return deg / degPerRad; }

References angle_units::degPerRad.

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

constexpr long double angle_units::operators::operator""_pi ( long double  x)
constexpr

Definition at line 14 of file angle_units.h.

14 { return x * piRadians; }

References angle_units::piRadians().

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

constexpr long double angle_units::operators::operator""_pi ( unsigned long long int  x)
constexpr

Definition at line 15 of file angle_units.h.

15 { return x * piRadians; }

References angle_units::piRadians().

◆ operator""_rad()

constexpr long double angle_units::operators::operator""_rad ( long double  rad)
constexpr

Definition at line 18 of file angle_units.h.

18 { return rad * 1.; }
degrees
double degrees(double radiants)
def degrees
Definition: EcalEleCalibLooper.cc:359
angle_units::degPerRad
constexpr long double degPerRad
Definition: angle_units.h:9
angle_units::piRadians
constexpr long double piRadians(M_PIl)
genVertex_cff.x
x
Definition: genVertex_cff.py:12