EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <boost/test/unit_test.hpp>
#include "Acts/Material/MaterialSlab.hpp"
#include "Acts/Tests/CommonHelpers/FloatComparisons.hpp"
#include <limits>
#include <vector>
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() |
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().
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().
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().