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

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (Constructibility)
 
 BOOST_AUTO_TEST_CASE (Neutral)
 
 BOOST_AUTO_TEST_CASE (SinglyCharged)
 
 BOOST_AUTO_TEST_CASE (AnyChargeNeutral)
 
 BOOST_AUTO_TEST_CASE (AnyChargeSingle)
 
 BOOST_AUTO_TEST_CASE (AnyChargeMultiple)
 

Variables

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

Function Documentation

BOOST_AUTO_TEST_CASE ( Constructibility  )

Definition at line 28 of file ChargeTests.cpp.

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

BOOST_AUTO_TEST_CASE ( Neutral  )

Definition at line 41 of file ChargeTests.cpp.

View newest version in sPHENIX GitHub at line 41 of file ChargeTests.cpp

References CHECK_CLOSE_REL, eps, Acts::Neutral::extractCharge(), and Acts::Neutral::extractMomentum().

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( SinglyCharged  )

Definition at line 60 of file ChargeTests.cpp.

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

References CHECK_CLOSE_REL, eps, Acts::SinglyCharged::extractCharge(), and Acts::SinglyCharged::extractMomentum().

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( AnyChargeNeutral  )

Definition at line 77 of file ChargeTests.cpp.

View newest version in sPHENIX GitHub at line 77 of file ChargeTests.cpp

References CHECK_CLOSE_REL, eps, Acts::AnyCharge::extractCharge(), and Acts::AnyCharge::extractMomentum().

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( AnyChargeSingle  )

Definition at line 98 of file ChargeTests.cpp.

View newest version in sPHENIX GitHub at line 98 of file ChargeTests.cpp

References CHECK_CLOSE_REL, eps, Acts::AnyCharge::extractCharge(), and Acts::AnyCharge::extractMomentum().

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( AnyChargeMultiple  )

Definition at line 118 of file ChargeTests.cpp.

View newest version in sPHENIX GitHub at line 118 of file ChargeTests.cpp

References CHECK_CLOSE_REL, eps, Acts::AnyCharge::extractCharge(), and Acts::AnyCharge::extractMomentum().

+ Here is the call graph for this function:

Variable Documentation

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

Definition at line 20 of file ChargeTests.cpp.

View newest version in sPHENIX GitHub at line 20 of file ChargeTests.cpp

Referenced by BOOST_AUTO_TEST_CASE().