Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DD4hepVolumeStructure.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DD4hepVolumeStructure.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 
15 
16 #include <memory>
17 #include <string>
18 
19 #include <DD4hep/DD4hepUnits.h>
20 
21 namespace dd4hep {
22 class DetElement;
23 }
24 
25 namespace Acts {
26 
27 namespace Experimental {
28 
34  public:
37  DD4hepVolumeStructure(std::unique_ptr<const Logger> mlogger =
38  getDefaultLogger("DD4hepVolumeStructure",
40 
41  DD4hepVolumeStructure() = delete;
42 
48  struct Options {
53  };
54 
64  std::shared_ptr<VolumeStructureBuilder> builder(
65  const dd4hep::DetElement& dd4hepElement, const Options& options) const;
66 
67  private:
69  static constexpr ActsScalar unitLength =
70  Acts::UnitConstants::mm / dd4hep::millimeter;
71 
80  const dd4hep::DetElement& dd4hepElement) const;
81 
83  std::unique_ptr<const Logger> m_logger;
84 
86  const Logger& logger() const { return *m_logger; }
87 };
88 
89 } // namespace Experimental
90 } // namespace Acts