ECCE @ EIC 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 
10 // TrackingVolumeArrayCreator.h, Acts project
12 
13 #pragma once
14 #include <algorithm>
20 
21 namespace Acts {
22 
23 class Layer;
24 class TrackingVolume;
25 
26 using TrackingVolumeOrderPosition = std::pair<TrackingVolumePtr, Vector3D>;
27 
35  public:
37  struct Config {};
38 
43  std::unique_ptr<const Logger> logger =
44  getDefaultLogger("LayerArrayCreator",
46  : m_logger(std::move(logger)) {}
47 
49  ~TrackingVolumeArrayCreator() override = default;
50 
58  std::shared_ptr<const TrackingVolumeArray> trackingVolumeArray(
59  const GeometryContext& gctx, const TrackingVolumeVector& tVolumes,
60  BinningValue bValue) const override;
61 
65  void setLogger(std::unique_ptr<const Logger> logger) {
66  m_logger = std::move(logger);
67  }
68 
69  private:
70  // Private access to the logger method
71  const Logger& logger() const { return *m_logger; }
72 
74  std::unique_ptr<const Logger> m_logger;
75 };
76 } // namespace Acts