EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ProtoLayerHelper.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ProtoLayerHelper.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2020 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 #include "Acts/Utilities/Units.hpp"
17 
18 namespace Acts {
19 
27  public:
28  using SortingConfig = std::pair<BinningValue, double>;
29 
30  struct Config {};
31 
36  ProtoLayerHelper(const Config& /* cfg */,
37  std::unique_ptr<const Logger> logger =
38  getDefaultLogger("ProtoLayerHelper", Logging::INFO))
39  : m_logger(std::move(logger)) {}
40  ~ProtoLayerHelper() = default;
41 
49  std::vector<ProtoLayer> protoLayers(
50  const GeometryContext& gctx, const std::vector<const Surface*>& surfaces,
51  const SortingConfig& sorting) const;
52 
60  std::vector<ProtoLayer> protoLayers(
61  const GeometryContext& gctx, const std::vector<const Surface*>& surfaces,
62  const std::vector<SortingConfig>& sortings) const;
63 
64  private:
66  std::unique_ptr<const Logger> m_logger;
67 
69  const Logger& logger() const { return *m_logger; }
70 };
71 
72 } // namespace Acts