ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VertexFinderConcept.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file VertexFinderConcept.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 
16 
17 namespace Acts {
18 
19 namespace concept {
20  namespace VertexFinder {
21 
22  METHOD_TRAIT(find_t, find);
23 
24  // clang-format off
25  template <typename S>
27 
28  constexpr static bool find_exists = has_method<const S, Result<std::vector<Vertex<typename S::InputTrack_t>>>,
29  find_t, const std::vector<const typename S::InputTrack_t*>&,
31  static_assert(find_exists, "find method not found");
32 
33  constexpr static bool value = require<find_exists>;
34  };
35  // clang-format on
36  } // namespace VertexFinder
37 } // namespace concept
38 
39 template <typename finder>
40 constexpr bool VertexFinderConcept =
42 
43 } // namespace Acts