Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:41:25

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 <type_traits>
0015 
0016 namespace Acts::detail {
0017 
0018 template <typename stepper_t>
0019 struct stepper_bound_parameters {
0020   using result_type = decltype(std::declval<stepper_t>().boundState(
0021       std::declval<typename stepper_t::State&>(), std::declval<Acts::Surface>(),
0022       std::declval<bool>(), std::declval<Acts::FreeToBoundCorrection>()));
0023   using type =
0024       std::decay_t<decltype(std::get<0>(*std::declval<result_type>()))>;
0025 };
0026 
0027 template <typename stepper_t>
0028 using stepper_bound_parameters_type_t =
0029     typename stepper_bound_parameters<stepper_t>::type;
0030 
0031 }  // namespace Acts::detail