Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:10:55

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 
0011 #include "Acts/EventData/detail/CorrectedTransformationFreeToBound.hpp"
0012 #include "Acts/Surfaces/Surface.hpp"
0013 
0014 #include <tuple>
0015 #include <type_traits>
0016 
0017 namespace Acts::detail {
0018 
0019 template <typename stepper_t>
0020 struct stepper_bound_parameters {
0021   using result_type = decltype(std::declval<stepper_t>().boundState(
0022       std::declval<typename stepper_t::State&>(), std::declval<Acts::Surface>(),
0023       std::declval<bool>(), std::declval<Acts::FreeToBoundCorrection>()));
0024   using type =
0025       std::decay_t<decltype(std::get<0>(*std::declval<result_type>()))>;
0026 };
0027 
0028 template <typename stepper_t>
0029 using stepper_bound_parameters_type_t =
0030     typename stepper_bound_parameters<stepper_t>::type;
0031 
0032 template <typename stepper_t>
0033 struct stepper_curvilinear_parameters {
0034   using result_type = decltype(std::declval<stepper_t>().curvilinearState(
0035       std::declval<typename stepper_t::State&>(), std::declval<bool>()));
0036   using type = std::decay_t<decltype(std::get<0>(std::declval<result_type>()))>;
0037 };
0038 
0039 template <typename stepper_t>
0040 using stepper_curvilinear_parameters_type_t =
0041     typename stepper_curvilinear_parameters<stepper_t>::type;
0042 }  // namespace Acts::detail