Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DD4hepDetector.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DD4hepDetector.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2018-2019 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 
12 
13 #include <memory>
14 #include <utility>
15 #include <vector>
16 
17 namespace dd4hep {
18 class Detector;
19 } // namespace dd4hep
20 
21 namespace Acts {
22 class TrackingGeometry;
23 class IMaterialDecorator;
24 } // namespace Acts
25 
26 namespace ActsExamples {
27 class IContextDecorator;
28 } // namespace ActsExamples
29 
30 namespace ActsExamples {
31 namespace DD4hep {
32 
34  using ContextDecorators =
35  std::vector<std::shared_ptr<ActsExamples::IContextDecorator>>;
36  using TrackingGeometryPtr = std::shared_ptr<const Acts::TrackingGeometry>;
37 
39  DD4hepDetector(std::shared_ptr<DD4hepGeometryService> geometryService);
41 
42  std::shared_ptr<DD4hepGeometryService> geometryService;
43 
44  std::pair<TrackingGeometryPtr, ContextDecorators> finalize(
46  std::shared_ptr<const Acts::IMaterialDecorator> mdecorator);
47 };
48 
49 } // namespace DD4hep
50 } // namespace ActsExamples