Analysis Software
Documentation for sPHENIX simulation 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 #include <memory>
17 #include <string>
18 #include <vector>
19 
20 #include "DD4hep/DetElement.h"
21 
22 class TrackingVolume;
23 namespace Acts {
24 class Logger;
25 } // namespace Acts
26 
27 using MutableTrackingVolumePtr = std::shared_ptr<TrackingVolume>;
28 using MutableTrackingVolumeVector = std::vector<MutableTrackingVolumePtr>;
29 
30 class TGeoMatrix;
31 
32 namespace Acts {
33 
41 
43  public:
46  struct Config {
50  std::vector<dd4hep::DetElement> centralVolumes;
51  };
52 
57  std::unique_ptr<const Logger> logger);
58 
60  ~DD4hepVolumeBuilder() override;
61 
66 
69  const std::string& identification() const final;
70 
73  void setConfiguration(const Config& config);
74 
77  Config getConfiguration() const;
78 
81  void setLogger(std::unique_ptr<const Logger> logger);
82 
83  private:
86 
88  std::unique_ptr<const Logger> m_logger;
89 
92  const Logger& logger() const { return *m_logger; }
93 
99  Acts::Transform3 convertTransform(const TGeoMatrix* tGeoTrans) const;
100 };
101 
103  return m_cfg.configurationName;
104 }
105 
107  const {
108  return m_cfg;
109 }
110 
111 } // namespace Acts