CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
PhysicalUnits.hpp File Reference

Import and extend the phys::units package. More...

Include dependency graph for PhysicalUnits.hpp:

Go to the source code of this file.

Namespaces

 corsika
 `, since they are used everywhere as integral part of the framework.
 
 phys::units
 namespace units.
 
 corsika::units
 Extension of the phys::units package.
 
 corsika::units::si
 SI units as used mainly in CORSIKA8 as basedline.
 
 phys
 namespace phys.
 
 phys::units::literals
 literals
 

Typedefs

using corsika::units::si::hepmomentum_d = phys::units::hepenergy_d
 defining momentum you suckers dimensions, i.e. composition in base SI dimensions
 
using corsika::units::si::hepmass_d = phys::units::hepenergy_d
 
using corsika::units::si::sigma_d = phys::units::area_d
 defining cross section as area
 
using corsika::units::si::DimensionlessType = phys::units::quantity< phys::units::dimensionless_d, double >
 add the unit-types
 
using corsika::units::si::LengthType = phys::units::quantity< phys::units::length_d, double >
 
using corsika::units::si::TimeType = phys::units::quantity< phys::units::time_interval_d, double >
 
using corsika::units::si::SpeedType = phys::units::quantity< phys::units::speed_d, double >
 
using corsika::units::si::FrequencyType = phys::units::quantity< phys::units::frequency_d, double >
 
using corsika::units::si::ElectricChargeType = phys::units::quantity< phys::units::electric_charge_d, double >
 
using corsika::units::si::HEPEnergyType = phys::units::quantity< phys::units::hepenergy_d, double >
 
using corsika::units::si::MassType = phys::units::quantity< phys::units::mass_d, double >
 
using corsika::units::si::HEPMassType = phys::units::quantity< hepmass_d, double >
 
using corsika::units::si::MassDensityType = phys::units::quantity< phys::units::mass_density_d, double >
 
using corsika::units::si::GrammageType = phys::units::quantity< phys::units::dimensions<-2, 1, 0 >, double >
 
using corsika::units::si::HEPMomentumType = phys::units::quantity< hepmomentum_d, double >
 
using corsika::units::si::CrossSectionType = phys::units::quantity< area_d, double >
 
using corsika::units::si::InverseLengthType = phys::units::quantity< phys::units::dimensions<-1, 0, 0 >, double >
 
using corsika::units::si::InverseTimeType = phys::units::quantity< phys::units::dimensions< 0, 0, -1 >, double >
 
using corsika::units::si::InverseMassDensityType = phys::units::quantity< phys::units::dimensions< 3, -1, 0 >, double >
 
using corsika::units::si::InverseGrammageType = phys::units::quantity< phys::units::dimensions< 2, -1, 0 >, double >
 
using corsika::units::si::MagneticFluxType = phys::units::quantity< phys::units::magnetic_flux_density_d, double >
 
using corsika::units::si::ElectricFieldType = phys::units::quantity< phys::units::dimensions< 1, 1, -3, -1 >, double >
 
using corsika::units::si::VectorPotentialType = phys::units::quantity< phys::units::dimensions< 1, 1, -2, -1 >, double >
 

Functions

template<int N, typename T >
auto constexpr corsika::units::static_pow ([[maybe_unused]] T x)
 
template<typename DimFrom , typename DimTo >
auto constexpr corsika::units::si::conversion_factor_HEP_to_SI ()
 
template<typename DimFrom >
auto constexpr corsika::units::si::conversion_factor_SI_to_HEP ()
 
template<typename DimTo , typename DimFrom >
auto constexpr corsika::units::si::convert_HEP_to_SI (quantity< DimFrom > q)
 
template<typename DimFrom >
auto constexpr corsika::units::si::convert_SI_to_HEP (quantity< DimFrom > q)
 

Detailed Description

Import and extend the phys::units package.

The SI units are also imported into the `

Definition in file PhysicalUnits.hpp.