ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LinearizerConcept.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file LinearizerConcept.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2019 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
17 
18 namespace Acts {
19 
20 namespace concept {
21  namespace Linearizer {
22 
23  template <typename T>
24  using propagator_t = typename T::Propagator_t;
25 
26  METHOD_TRAIT(linTrack_t, linearizeTrack);
27 
28  // clang-format off
29  template <typename S>
31 
32  constexpr static bool linTrack_exists = has_method<const S, Result<LinearizedTrack>,
33  linTrack_t, const BoundParameters&,
34  const SpacePointVector&,
35  const Acts::GeometryContext&,
37 
38  static_assert(linTrack_exists, "linearizeTrack method not found");
39 
40  constexpr static bool propagator_exists = exists<propagator_t, S>;
41  static_assert(propagator_exists, "Propagator type not found");
42 
43  constexpr static bool value = require<linTrack_exists,
45  };
46  // clang-format on
47  } // namespace Linearizer
48 } // namespace concept
49 
50 template <typename fitter>
51 constexpr bool LinearizerConcept =
53 
54 } // namespace Acts