Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SpacePointBuilder.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SpacePointBuilder.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2018-2022 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 
23 
24 #include <boost/container/static_vector.hpp>
25 
26 namespace Acts {
27 
34 template <typename spacepoint_t>
36  public:
37  // Constructor
42  std::function<spacepoint_t(
44  boost::container::static_vector<SourceLink, 2>)>
45  func,
46  std::unique_ptr<const Logger> logger =
47  getDefaultLogger("SpamcePointBuilder", Logging::INFO));
48 
49  // Default constructor
50  SpacePointBuilder() = default;
51 
59  template <template <typename...> typename container_t>
60  void buildSpacePoint(
61  const GeometryContext& gctx, const std::vector<SourceLink>& sourceLinks,
62  const SpacePointBuilderOptions& opt,
63  std::back_insert_iterator<container_t<spacepoint_t>> spacePointIt) const;
64 
74  const GeometryContext& gctx, const std::vector<SourceLink>& slinksFront,
75  const std::vector<SourceLink>& slinksBack,
76  std::vector<std::pair<SourceLink, SourceLink>>& slinkPairs,
77  const StripPairOptions& pairOpt) const;
78 
79  protected:
80  // configuration of the single hit space point builder
82 
86  std::function<spacepoint_t(Acts::Vector3, Acts::Vector2,
87  boost::container::static_vector<SourceLink, 2>)>
89 
91  std::unique_ptr<const Acts::Logger> m_logger;
92 
93  std::shared_ptr<const SpacePointUtility> m_spUtility;
94 
95  const Logger& logger() const { return *m_logger; }
96 };
97 
98 } // namespace Acts