Celeritas  0.5.0-56+6b053cd
Functions | Variables
GeantUnits.hh File Reference
#include "celeritas/Quantities.hh"
#include "celeritas/UnitTypes.hh"
This graph shows which files directly or indirectly include this file:

Functions

constexpr double celeritas::convert_to_geant (units::MevEnergy const &energy, double units)
 Convert Celeritas energy quantities to Geant4. More...
 

Variables

constexpr real_type celeritas::clhep_field
 Value of a unit Celeritas field in the CLHEP unit system. More...
 
constexpr real_type celeritas::clhep_time = 1 / units::ClhepTraits::Time::value()
 Value of a unit Celeritas time in the CLHEP unit system.
 

Function Documentation

◆ convert_to_geant()

constexpr double celeritas::convert_to_geant ( units::MevEnergy const &  energy,
double  units 
)
inlineconstexpr

Convert Celeritas energy quantities to Geant4.

The unit value should always be CLHEP::MeV which is defined to be unity.

Variable Documentation

◆ clhep_field

constexpr real_type celeritas::clhep_field
inlineconstexpr
Initial value:
= 1
/ units::ClhepTraits::BField::value()

Value of a unit Celeritas field in the CLHEP unit system.