|
Celeritas 0.7.0-dev.328+develop.a407567
|
Convert unit systems without having to link against geant4. More...
Functions | |
| constexpr double | celeritas::convert_to_geant (units::MevEnergy const &energy, double units) |
| Convert Celeritas energy quantities to Geant4. | |
Variables | |
| constexpr double | celeritas::clhep_field {1 / units::ClhepTraits::BField::value()} |
| Value of a unit Celeritas field in the CLHEP unit system. | |
| constexpr double | celeritas::clhep_time {1 / units::ClhepTraits::Time::value()} |
| Value of a unit Celeritas time in the CLHEP unit system. | |
Convert unit systems without having to link against geant4.
|
inlineconstexpr |
Convert Celeritas energy quantities to Geant4.
The unit value should always be CLHEP::MeV which is defined to be unity.