Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CylindricalContainerBuilder.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CylindricalContainerBuilder.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2022-2023 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 
17 
18 #include <memory>
19 #include <string>
20 #include <vector>
21 
22 namespace Acts {
23 namespace Experimental {
24 
25 class IRootVolumeFinderBuilder;
26 class IGeometryIdGenerator;
27 
45  public:
47  struct Config {
49  std::vector<std::shared_ptr<const IDetectorComponentBuilder>> builders = {};
51  std::vector<BinningValue> binning = {};
53  std::shared_ptr<const IRootVolumeFinderBuilder> rootVolumeFinderBuilder =
54  nullptr;
56  std::shared_ptr<const IGeometryIdGenerator> geoIdGenerator = nullptr;
58  bool geoIdReverseGen = false;
61  };
62 
68  const Config& cfg,
69  std::unique_ptr<const Logger> logger =
70  getDefaultLogger("CylindricalContainerBuilder", Logging::INFO));
71 
89 
95  DetectorComponent construct(const GeometryContext& gctx) const final;
96 
97  private:
100 
102  const Logger& logger() const { return *m_logger; }
103 
105  std::unique_ptr<const Logger> m_logger;
106 };
107 
108 } // namespace Experimental
109 } // namespace Acts