ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DD4hepVolumeBuilder.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DD4hepVolumeBuilder.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 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 
9 #pragma once
15 
16 class TrackingVolume;
17 using MutableTrackingVolumePtr = std::shared_ptr<TrackingVolume>;
18 using MutableTrackingVolumeVector = std::vector<MutableTrackingVolumePtr>;
19 
20 class TGeoMatrix;
21 
22 namespace dd4hep {
23 class DetElement;
24 }
25 
26 namespace Acts {
27 
35 
37  public:
40  struct Config {
42  std::string configurationName = "undefined";
44  std::vector<dd4hep::DetElement> centralVolumes;
45  };
46 
51  std::unique_ptr<const Logger> logger);
52 
54  ~DD4hepVolumeBuilder() override;
55 
60 
63  const std::string& identification() const final;
64 
67  void setConfiguration(const Config& config);
68 
71  Config getConfiguration() const;
72 
75  void setLogger(std::unique_ptr<const Logger> logger);
76 
77  private:
80 
82  std::unique_ptr<const Logger> m_logger;
83 
86  const Logger& logger() const { return *m_logger; }
87 
93  std::shared_ptr<const Acts::Transform3D> convertTransform(
94  const TGeoMatrix* tGeoTrans) const;
95 };
96 
97 inline const std::string& DD4hepVolumeBuilder::identification() const {
98  return m_cfg.configurationName;
99 }
100 
102  const {
103  return m_cfg;
104 }
105 
106 } // namespace Acts