Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UnitsTests.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "Acts/Definitions/Units.hpp"
#include "Acts/Tests/CommonHelpers/FloatComparisons.hpp"
#include <cmath>
#include <limits>
+ Include dependency graph for UnitsTests.cpp:

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (Length)
 
 BOOST_AUTO_TEST_CASE (Area)
 
 BOOST_AUTO_TEST_CASE (Volume)
 
 BOOST_AUTO_TEST_CASE (Time)
 
 BOOST_AUTO_TEST_CASE (Angle)
 
 BOOST_AUTO_TEST_CASE (Energy)
 
 BOOST_AUTO_TEST_CASE (Mass)
 
 BOOST_AUTO_TEST_CASE (MassEnergy)
 
 BOOST_AUTO_TEST_CASE (DecayWidthTime)
 
 BOOST_AUTO_TEST_CASE (MagneticField)
 
 BOOST_AUTO_TEST_CASE (MomentumRadius)
 
 BOOST_AUTO_TEST_CASE (PhysicalConstants)
 

Variables

static constexpr auto eps = std::numeric_limits<double>::epsilon()
 

Function Documentation

BOOST_AUTO_TEST_CASE ( Length  )

Definition at line 23 of file UnitsTests.cpp.

View newest version in sPHENIX GitHub at line 23 of file UnitsTests.cpp

References CHECK_CLOSE_REL, Acts::UnitConstants::e, and eps.

BOOST_AUTO_TEST_CASE ( Area  )

Definition at line 33 of file UnitsTests.cpp.

View newest version in sPHENIX GitHub at line 33 of file UnitsTests.cpp

References CHECK_CLOSE_REL, and eps.

BOOST_AUTO_TEST_CASE ( Volume  )

Definition at line 45 of file UnitsTests.cpp.

View newest version in sPHENIX GitHub at line 45 of file UnitsTests.cpp

References CHECK_CLOSE_REL, and eps.

BOOST_AUTO_TEST_CASE ( Time  )

Definition at line 54 of file UnitsTests.cpp.

View newest version in sPHENIX GitHub at line 54 of file UnitsTests.cpp

References CHECK_CLOSE_REL, and eps.

BOOST_AUTO_TEST_CASE ( Angle  )

Definition at line 65 of file UnitsTests.cpp.

View newest version in sPHENIX GitHub at line 65 of file UnitsTests.cpp

References CHECK_CLOSE_REL, and eps.

BOOST_AUTO_TEST_CASE ( Energy  )

Definition at line 74 of file UnitsTests.cpp.

View newest version in sPHENIX GitHub at line 74 of file UnitsTests.cpp

References CHECK_CLOSE_REL, Acts::UnitConstants::e, and eps.

BOOST_AUTO_TEST_CASE ( Mass  )

Definition at line 81 of file UnitsTests.cpp.

View newest version in sPHENIX GitHub at line 81 of file UnitsTests.cpp

References CHECK_CLOSE_REL, Acts::UnitConstants::e, and eps.

BOOST_AUTO_TEST_CASE ( MassEnergy  )

Definition at line 89 of file UnitsTests.cpp.

View newest version in sPHENIX GitHub at line 89 of file UnitsTests.cpp

References CHECK_CLOSE_REL, Acts::UnitConstants::e, and eps.

BOOST_AUTO_TEST_CASE ( DecayWidthTime  )

Definition at line 101 of file UnitsTests.cpp.

View newest version in sPHENIX GitHub at line 101 of file UnitsTests.cpp

References CHECK_CLOSE_REL, Acts::UnitConstants::e, and Acts::PhysicalConstants::hbar.

BOOST_AUTO_TEST_CASE ( MagneticField  )

Definition at line 112 of file UnitsTests.cpp.

View newest version in sPHENIX GitHub at line 112 of file UnitsTests.cpp

References CHECK_CLOSE_REL, and eps.

BOOST_AUTO_TEST_CASE ( MomentumRadius  )

Definition at line 117 of file UnitsTests.cpp.

View newest version in sPHENIX GitHub at line 117 of file UnitsTests.cpp

References CHECK_CLOSE_REL, and Acts::UnitConstants::e.

BOOST_AUTO_TEST_CASE ( PhysicalConstants  )

Definition at line 126 of file UnitsTests.cpp.

View newest version in sPHENIX GitHub at line 126 of file UnitsTests.cpp

References Acts::PhysicalConstants::c, CHECK_CLOSE_REL, Acts::UnitConstants::e, and Acts::PhysicalConstants::hbar.

Variable Documentation

constexpr auto eps = std::numeric_limits<double>::epsilon()
static

Definition at line 19 of file UnitsTests.cpp.

View newest version in sPHENIX GitHub at line 19 of file UnitsTests.cpp

Referenced by BOOST_AUTO_TEST_CASE().