From a0286a682accba00e8d66906da5bda5d3d568c78 Mon Sep 17 00:00:00 2001 From: Felix Riehn <felix@matilda> Date: Fri, 30 Nov 2018 17:43:21 +0000 Subject: [PATCH] added mass density type --- Framework/Units/PhysicalUnits.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Framework/Units/PhysicalUnits.h b/Framework/Units/PhysicalUnits.h index e97003ee..b5163479 100644 --- a/Framework/Units/PhysicalUnits.h +++ b/Framework/Units/PhysicalUnits.h @@ -36,6 +36,15 @@ namespace corsika::units::si { phys::units::quantity<phys::units::electric_charge_d, double>; using EnergyType = phys::units::quantity<phys::units::energy_d, double>; using MassType = phys::units::quantity<phys::units::mass_d, double>; + using MassDensityType = phys::units::quantity<phys::units::mass_density_d, double>; + + // defining momentum you suckers + // dimensions, i.e. composition in base SI dimensions + using momentum_d = phys::units::dimensions< 1, 1, -1 >; + // defining the unit of momentum, so far newton-meter, maybe go to HEP? + constexpr phys::units::quantity< momentum_d > newton_second { meter * kilogram / second }; + // defining the type + using MomentumType = phys::units::quantity<momentum_d, double>; using CrossSectionType = phys::units::quantity<sigma_d, double>; -- GitLab