ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UnitConversionTests.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "Acts/Tests/CommonHelpers/FloatComparisons.hpp"
#include "Acts/Utilities/Units.hpp"
+ Include dependency graph for UnitConversionTests.cpp:

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (length_conversions)
 
 BOOST_AUTO_TEST_CASE (area_conversions)
 
 BOOST_AUTO_TEST_CASE (volume_conversions)
 
 BOOST_AUTO_TEST_CASE (time_conversions)
 
 BOOST_AUTO_TEST_CASE (angle_conversions)
 
 BOOST_AUTO_TEST_CASE (energy_conversions)
 
 BOOST_AUTO_TEST_CASE (mass_conversions)
 
 BOOST_AUTO_TEST_CASE (mass_energy_conversions)
 
 BOOST_AUTO_TEST_CASE (charge_conversions)
 
 BOOST_AUTO_TEST_CASE (magnetic_field_conversions)
 
 BOOST_AUTO_TEST_CASE (momentum_to_radius_conversion)
 

Function Documentation

BOOST_AUTO_TEST_CASE ( length_conversions  )

Definition at line 18 of file UnitConversionTests.cpp.

View newest version in sPHENIX GitHub at line 18 of file UnitConversionTests.cpp

References Acts::units::_km, Acts::units::_m, CHECK_CLOSE_REL, and e.

BOOST_AUTO_TEST_CASE ( area_conversions  )

Definition at line 28 of file UnitConversionTests.cpp.

View newest version in sPHENIX GitHub at line 28 of file UnitConversionTests.cpp

References Acts::units::_cm, Acts::units::_m, Acts::units::_mm, Acts::units::_mm2, CHECK_CLOSE_REL, and e.

BOOST_AUTO_TEST_CASE ( volume_conversions  )

Definition at line 40 of file UnitConversionTests.cpp.

View newest version in sPHENIX GitHub at line 40 of file UnitConversionTests.cpp

References Acts::units::_cm, Acts::units::_m, Acts::units::_mm, Acts::units::_mm2, CHECK_CLOSE_REL, and e.

BOOST_AUTO_TEST_CASE ( time_conversions  )

Definition at line 49 of file UnitConversionTests.cpp.

View newest version in sPHENIX GitHub at line 49 of file UnitConversionTests.cpp

References Acts::units::_h, Acts::units::_s, CHECK_CLOSE_REL, and e.

BOOST_AUTO_TEST_CASE ( angle_conversions  )

Definition at line 60 of file UnitConversionTests.cpp.

View newest version in sPHENIX GitHub at line 60 of file UnitConversionTests.cpp

References Acts::units::_m, Acts::units::_mm, Acts::units::_um, CHECK_CLOSE_REL, e, and M_PI.

BOOST_AUTO_TEST_CASE ( energy_conversions  )

Definition at line 69 of file UnitConversionTests.cpp.

View newest version in sPHENIX GitHub at line 69 of file UnitConversionTests.cpp

References Acts::units::_GeV, Acts::units::_MeV, Acts::units::_TeV, CHECK_CLOSE_REL, and e.

BOOST_AUTO_TEST_CASE ( mass_conversions  )

Definition at line 76 of file UnitConversionTests.cpp.

View newest version in sPHENIX GitHub at line 76 of file UnitConversionTests.cpp

References Acts::units::_g, Acts::units::_kg, Acts::units::_MeV, CHECK_CLOSE_REL, and e.

BOOST_AUTO_TEST_CASE ( mass_energy_conversions  )

Definition at line 83 of file UnitConversionTests.cpp.

View newest version in sPHENIX GitHub at line 83 of file UnitConversionTests.cpp

References Acts::units::_eV, Acts::units::_g, Acts::units::_GeV, Acts::units::_keV, Acts::units::_kg, Acts::units::_MeV, CHECK_CLOSE_REL, and e.

BOOST_AUTO_TEST_CASE ( charge_conversions  )

Definition at line 95 of file UnitConversionTests.cpp.

View newest version in sPHENIX GitHub at line 95 of file UnitConversionTests.cpp

References Acts::units::_C, CHECK_CLOSE_REL, and e.

BOOST_AUTO_TEST_CASE ( magnetic_field_conversions  )

Definition at line 99 of file UnitConversionTests.cpp.

View newest version in sPHENIX GitHub at line 99 of file UnitConversionTests.cpp

References Acts::units::_Gauss, Acts::units::_kGauss, _T, CHECK_CLOSE_REL, and e.

BOOST_AUTO_TEST_CASE ( momentum_to_radius_conversion  )

Definition at line 104 of file UnitConversionTests.cpp.

View newest version in sPHENIX GitHub at line 104 of file UnitConversionTests.cpp

References Acts::units::_cm, Acts::units::_e, Acts::units::_GeV, Acts::units::_m, _T, CHECK_CLOSE_REL, and e.