Analysis Software
Documentation for sPHENIX simulation 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 
15 
16 #include <memory>
17 #include <utility>
18 #include <vector>
19 
20 namespace Acts {
21 
22 class Surface;
23 struct ProtoLayer;
24 
32  public:
33  using SortingConfig = std::pair<BinningValue, double>;
34 
35  struct Config {};
36 
42  std::unique_ptr<const Logger> logger =
43  getDefaultLogger("ProtoLayerHelper", Logging::INFO))
44  : m_logger(std::move(logger)) {
45  (void)config;
46  }
47  ~ProtoLayerHelper() = default;
48 
56  std::vector<ProtoLayer> protoLayers(
57  const GeometryContext& gctx, const std::vector<const Surface*>& surfaces,
58  const SortingConfig& sorting) const;
59 
67  std::vector<ProtoLayer> protoLayers(
68  const GeometryContext& gctx, const std::vector<const Surface*>& surfaces,
69  const std::vector<SortingConfig>& sortings) const;
70 
71  private:
73  std::unique_ptr<const Logger> m_logger;
74 
76  const Logger& logger() const { return *m_logger; }
77 };
78 
79 } // namespace Acts