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

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (construct_simple)
 
 BOOST_AUTO_TEST_CASE (construct_compound)
 
 BOOST_AUTO_TEST_CASE (scale_thickness)
 

Variables

static constexpr auto eps = 2 * std::numeric_limits<float>::epsilon()
 

Function Documentation

BOOST_AUTO_TEST_CASE ( construct_simple  )

construct from material and thickness

Definition at line 21 of file MaterialSlabTests.cpp.

View newest version in sPHENIX GitHub at line 21 of file MaterialSlabTests.cpp

References CHECK_CLOSE_REL, eps, Acts::Material::fromMolarDensity(), Acts::MaterialSlab::thickness(), Acts::MaterialSlab::thicknessInL0(), and Acts::MaterialSlab::thicknessInX0().

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( construct_compound  )

Definition at line 31 of file MaterialSlabTests.cpp.

View newest version in sPHENIX GitHub at line 31 of file MaterialSlabTests.cpp

References c, CHECK_CLOSE_REL, and eps.

BOOST_AUTO_TEST_CASE ( scale_thickness  )

Definition at line 65 of file MaterialSlabTests.cpp.

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

References CHECK_CLOSE_REL, eps, Acts::Material::fromMassDensity(), Acts::Material::massDensity(), Acts::MaterialSlab::material(), material(), Acts::MaterialSlab::scaleThickness(), Acts::MaterialSlab::thickness(), Acts::MaterialSlab::thicknessInL0(), and Acts::MaterialSlab::thicknessInX0().

+ Here is the call graph for this function:

Variable Documentation

constexpr auto eps = 2 * std::numeric_limits<float>::epsilon()
static

Definition at line 17 of file MaterialSlabTests.cpp.

View newest version in sPHENIX GitHub at line 17 of file MaterialSlabTests.cpp

Referenced by BOOST_AUTO_TEST_CASE().