Celeritas
0.5.0-86+4a8eea4
|
#include "ImportUnits.hh"
#include <type_traits>
#include "corecel/io/EnumStringMapper.hh"
#include "corecel/math/Algorithms.hh"
#include "corecel/math/Quantity.hh"
#include "celeritas/UnitTypes.hh"
Functions | |
char const * | celeritas::to_cstring (ImportUnits value) |
Get a printable label for units. | |
double | celeritas::native_value_from (UnitSystem sys, ImportUnits q) |
Get the native value from a quantity of this type. | |
double | celeritas::native_value_from_clhep (ImportUnits q) |
Get the native value from a unit CLHEP quantity of this type. More... | |
double celeritas::native_value_from_clhep | ( | ImportUnits | q | ) |
Get the native value from a unit CLHEP quantity of this type.
Multiply a Geant4 quantity by the result to convert to the native unit system.