Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DetectorVolumeBuilder.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DetectorVolumeBuilder.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 
15 
16 #include <memory>
17 #include <string>
18 
19 namespace Acts {
20 namespace Experimental {
21 class IExternalStructureBuilder;
22 class IInternalStructureBuilder;
23 class IGeometryIdGenerator;
24 
34  public:
36  struct Config {
38  std::string name = "unnamed";
40  std::shared_ptr<const IExternalStructureBuilder> externalsBuilder = nullptr;
42  std::shared_ptr<const IInternalStructureBuilder> internalsBuilder = nullptr;
44  std::shared_ptr<const IGeometryIdGenerator> geoIdGenerator = nullptr;
46  bool addInternalsToRoot = false;
49  };
50 
56  std::unique_ptr<const Logger> mlogger =
57  getDefaultLogger("DetectorVolumeBuilder",
58  Logging::INFO));
59 
66  DetectorComponent construct(const GeometryContext& gctx) const final;
67 
68  private:
71 
73  const Logger& logger() const { return *m_logger; }
74 
76  std::unique_ptr<const Logger> m_logger;
77 };
78 
79 } // namespace Experimental
80 } // namespace Acts