Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MultiStepperTests.cpp File Reference
+ Include dependency graph for MultiStepperTests.cpp:

Go to the source code of this file.

Classes

struct  Options
 
struct  MockNavigator
 
struct  Navigation
 
struct  DummyPropState< stepper_state_t >
 

Namespaces

namespace  Acts
 Acts includes to create all necessary definitions.
 

Typedefs

using MultiStepperLoop = MultiEigenStepperLoop< StepperExtensionList< DefaultExtension >>
 
using SingleStepper = EigenStepper< StepperExtensionList< DefaultExtension >>
 
template<typename T >
using components_t = typename T::components
 

Functions

auto makeDefaultBoundPars (bool cov=true, std::size_t n=4, std::optional< BoundVector > ext_pars=std::nullopt)
 
template<typename multi_stepper_t , bool Cov>
void test_multi_stepper_state ()
 
 BOOST_AUTO_TEST_CASE (multi_stepper_state_no_cov)
 
template<typename multi_stepper_t >
void test_multi_stepper_state_invalid ()
 
 BOOST_AUTO_TEST_CASE (multi_eigen_stepper_state_invalid)
 
template<typename multi_stepper_t >
void test_multi_stepper_vs_eigen_stepper ()
 
 BOOST_AUTO_TEST_CASE (multi_eigen_vs_single_eigen)
 
template<typename multi_stepper_t >
void test_components_modifying_accessors ()
 
 BOOST_AUTO_TEST_CASE (multi_eigen_component_iterable_with_modification)
 
template<typename multi_stepper_t >
void test_multi_stepper_surface_status_update ()
 
 BOOST_AUTO_TEST_CASE (test_surface_status_and_cmpwise_bound_state)
 
template<typename multi_stepper_t >
void test_component_bound_state ()
 
 BOOST_AUTO_TEST_CASE (test_component_wise_bound_state)
 
template<typename multi_stepper_t >
void test_combined_bound_state_function ()
 
 BOOST_AUTO_TEST_CASE (test_combined_bound_state)
 
template<typename multi_stepper_t >
void test_combined_curvilinear_state_function ()
 
 BOOST_AUTO_TEST_CASE (test_curvilinear_state)
 
template<typename multi_stepper_t >
void test_single_component_interface_function ()
 
 BOOST_AUTO_TEST_CASE (test_single_component_interface)
 
template<typename multi_stepper_t >
void remove_add_components_function ()
 
 BOOST_AUTO_TEST_CASE (remove_add_components_test)
 
template<typename multi_stepper_t >
void propagator_instatiation_test_function ()
 
 BOOST_AUTO_TEST_CASE (propagator_instatiation_test)
 

Variables

const MagneticFieldContext magCtx
 
const GeometryContext geoCtx
 
const double defaultStepSize = 123.
 
const auto defaultNDir = Direction::Backward
 
const auto defaultBField
 
const auto defaultNullBField = std::make_shared<NullBField>()
 
const auto particleHypothesis = ParticleHypothesis::pion()
 
static constexpr MockNavigator mockNavigator
 

Typedef Documentation

template<typename T >
using components_t = typename T::components

Definition at line 105 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 105 of file MultiStepperTests.cpp

Definition at line 62 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 62 of file MultiStepperTests.cpp

Definition at line 63 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 63 of file MultiStepperTests.cpp

Function Documentation

BOOST_AUTO_TEST_CASE ( multi_stepper_state_no_cov  )

Definition at line 177 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 177 of file MultiStepperTests.cpp

BOOST_AUTO_TEST_CASE ( multi_eigen_stepper_state_invalid  )

Definition at line 193 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 193 of file MultiStepperTests.cpp

BOOST_AUTO_TEST_CASE ( multi_eigen_vs_single_eigen  )

Definition at line 259 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 259 of file MultiStepperTests.cpp

BOOST_AUTO_TEST_CASE ( multi_eigen_component_iterable_with_modification  )

Definition at line 349 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 349 of file MultiStepperTests.cpp

BOOST_AUTO_TEST_CASE ( test_surface_status_and_cmpwise_bound_state  )

Definition at line 449 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 449 of file MultiStepperTests.cpp

BOOST_AUTO_TEST_CASE ( test_component_wise_bound_state  )

Definition at line 528 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 528 of file MultiStepperTests.cpp

BOOST_AUTO_TEST_CASE ( test_combined_bound_state  )

Definition at line 570 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 570 of file MultiStepperTests.cpp

BOOST_AUTO_TEST_CASE ( test_curvilinear_state  )

Definition at line 615 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 615 of file MultiStepperTests.cpp

BOOST_AUTO_TEST_CASE ( test_single_component_interface  )

Definition at line 670 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 670 of file MultiStepperTests.cpp

BOOST_AUTO_TEST_CASE ( remove_add_components_test  )

Definition at line 705 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 705 of file MultiStepperTests.cpp

BOOST_AUTO_TEST_CASE ( propagator_instatiation_test  )

Definition at line 742 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 742 of file MultiStepperTests.cpp

auto makeDefaultBoundPars ( bool  cov = true,
std::size_t  n = 4,
std::optional< BoundVector ext_pars = std::nullopt 
)

Definition at line 110 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 110 of file MultiStepperTests.cpp

References Acts::PhysicalConstants::c, Acts::Test::cov, i, n, particleHypothesis, and writeMapConfig::surface.

Referenced by remove_add_components_function(), test_components_modifying_accessors(), test_multi_stepper_state(), and test_multi_stepper_state_invalid().

+ Here is the caller graph for this function:

template<typename multi_stepper_t >
void propagator_instatiation_test_function ( )

Definition at line 714 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 714 of file MultiStepperTests.cpp

References Acts::IntegrationTest::bField, geoCtx, magCtx, testing::internal::move(), ckf::options, pars, particleHypothesis, and writeMapConfig::surface.

+ Here is the call graph for this function:

template<typename multi_stepper_t >
void remove_add_components_function ( )

Definition at line 679 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 679 of file MultiStepperTests.cpp

References defaultBField, defaultStepSize, geoCtx, magCtx, makeDefaultBoundPars(), pars, and particleHypothesis.

+ Here is the call graph for this function:

template<typename multi_stepper_t >
void test_combined_bound_state_function ( )
template<typename multi_stepper_t >
void test_combined_curvilinear_state_function ( )
template<typename multi_stepper_t >
void test_component_bound_state ( )
template<typename multi_stepper_t >
void test_components_modifying_accessors ( )

Definition at line 274 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 274 of file MultiStepperTests.cpp

References check_fpe_masks::check(), root_event_diff_np::cmp(), defaultBField, defaultStepSize, Acts::UnitConstants::e, geoCtx, magCtx, std::tr1::make_tuple(), makeDefaultBoundPars(), modify(), and Acts::type.

+ Here is the call graph for this function:

template<typename multi_stepper_t , bool Cov>
void test_multi_stepper_state ( )

Test the construction of the MultiStepper::State

Definition at line 137 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 137 of file MultiStepperTests.cpp

References root_event_diff_np::cmp(), defaultBField, defaultStepSize, geoCtx, magCtx, makeDefaultBoundPars(), Acts::UnitConstants::ms, N, and filter::state.

+ Here is the call graph for this function:

template<typename multi_stepper_t >
void test_multi_stepper_state_invalid ( )

Definition at line 182 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 182 of file MultiStepperTests.cpp

References defaultBField, defaultStepSize, geoCtx, magCtx, and makeDefaultBoundPars().

+ Here is the call graph for this function:

template<typename multi_stepper_t >
void test_multi_stepper_surface_status_update ( )

Definition at line 357 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 357 of file MultiStepperTests.cpp

References defaultNullBField, defaultStepSize, Acts::eBoundQOverP, Acts::eBoundTheta, Acts::Direction::Forward, geoCtx, magCtx, mockNavigator, particleHypothesis, utils::status, and Acts::EigenStepper< extensionlist_t, auctioneer_t >::step().

+ Here is the call graph for this function:

template<typename multi_stepper_t >
void test_multi_stepper_vs_eigen_stepper ( )

Definition at line 201 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 201 of file MultiStepperTests.cpp

References root_event_diff_np::cmp(), Acts::Test::cov, defaultBField, defaultNDir, defaultStepSize, geoCtx, i, magCtx, mockNavigator, pars, particleHypothesis, Acts::EigenStepper< extensionlist_t, auctioneer_t >::step(), writeMapConfig::surface, and Acts::EigenStepper< extensionlist_t, auctioneer_t >::transportCovarianceToCurvilinear().

+ Here is the call graph for this function:

template<typename multi_stepper_t >
void test_single_component_interface_function ( )

Definition at line 624 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 624 of file MultiStepperTests.cpp

References check_fpe_masks::check(), root_event_diff_np::cmp(), defaultBField, defaultNDir, defaultStepSize, Acts::eFreeDir0, Acts::eFreePos0, Acts::eFreeQOverP, Acts::eFreeTime, geoCtx, i, magCtx, particleHypothesis, and writeMapConfig::surface.

+ Here is the call graph for this function:

Variable Documentation

const auto defaultNDir = Direction::Backward

Definition at line 66 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 66 of file MultiStepperTests.cpp

Referenced by test_multi_stepper_vs_eigen_stepper(), and test_single_component_interface_function().

const auto defaultNullBField = std::make_shared<NullBField>()

Definition at line 70 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 70 of file MultiStepperTests.cpp

Referenced by test_component_bound_state(), and test_multi_stepper_surface_status_update().

const GeometryContext geoCtx

Definition at line 59 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 59 of file MultiStepperTests.cpp

const MagneticFieldContext magCtx

Definition at line 58 of file MultiStepperTests.cpp.

View newest version in sPHENIX GitHub at line 58 of file MultiStepperTests.cpp

constexpr MockNavigator mockNavigator
static