Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DD4hepLayerStructure.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DD4hepLayerStructure.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 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 
21 namespace dd4hep {
22 class DetElement;
23 }
24 
25 namespace Acts {
26 
27 namespace Experimental {
28 
37  public:
46  std::shared_ptr<DD4hepDetectorSurfaceFactory> surfaceFactory,
47  std::unique_ptr<const Logger> logger =
48  getDefaultLogger("DD4hepLayerStructure", Acts::Logging::INFO));
49 
50  DD4hepLayerStructure() = delete;
51 
57  struct Options {
63  unsigned int nSegments = 1u;
66  };
67 
79  std::shared_ptr<LayerStructureBuilder> builder(
80  DD4hepDetectorElement::Store& dd4hepStore,
81  const dd4hep::DetElement& dd4hepElement, const Options& options) const;
82 
83  private:
85  std::shared_ptr<DD4hepDetectorSurfaceFactory> m_surfaceFactory = nullptr;
86 
88  std::unique_ptr<const Logger> m_logger;
89 
91  const Logger& logger() const { return *m_logger; }
92 };
93 
94 } // namespace Experimental
95 } // namespace Acts