/* * PhysicsUtil.hh * * Created on: May 26, 2017 * Author: nbarros */ #ifndef SRC_UTIL_PHYSICSUTIL_HH_ #define SRC_UTIL_PHYSICSUTIL_HH_ namespace RAT { namespace util { /** * Convert the energy (in MeV) to vacuum wavelength */ /// Converts the energy to the equivalent wavelength, remember RAT units are MeV [Energy], mm [Length] /// /// @param[in] energy The energy to convert double EnergyToWavelength( const double& energy ); /// Converts the wavelengths to equivalent energies, remember RAT units are MeV [Energy], mm [Length] /// /// @param[in] wavelength The wavelength to convert double WavelengthToEnergy( const double& wavelength ); int round_2_int(const double&value); int round_2_int(const float&value); } } #endif /* SRC_UTIL_PHYSICSUTIL_HH_ */