Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackingVolumeArrayCreator.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrackingVolumeArrayCreator.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2016-2018 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 #include <memory>
18 #include <utility>
19 
20 namespace Acts {
21 
22 using TrackingVolumeOrderPosition = std::pair<TrackingVolumePtr, Vector3>;
23 
31  public:
33  struct Config {};
34 
39  std::unique_ptr<const Logger> logger =
40  getDefaultLogger("LayerArrayCreator",
42  : m_logger(std::move(logger)) {}
43 
45  ~TrackingVolumeArrayCreator() override = default;
46 
54  std::shared_ptr<const TrackingVolumeArray> trackingVolumeArray(
55  const GeometryContext& gctx, const TrackingVolumeVector& tVolumes,
56  BinningValue bValue) const override;
57 
61  void setLogger(std::unique_ptr<const Logger> logger) {
62  m_logger = std::move(logger);
63  }
64 
65  private:
66  // Private access to the logger method
67  const Logger& logger() const { return *m_logger; }
68 
70  std::unique_ptr<const Logger> m_logger;
71 };
72 } // namespace Acts