Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GenericDetector.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file GenericDetector.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 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 <cstddef>
14 #include <memory>
15 #include <utility>
16 #include <vector>
17 
18 namespace Acts {
19 class TrackingGeometry;
20 class IMaterialDecorator;
21 } // namespace Acts
22 
23 namespace ActsExamples {
24 class IContextDecorator;
25 } // namespace ActsExamples
26 
27 namespace ActsExamples {
28 namespace Generic {
29 class GenericDetectorElement;
30 }
31 } // namespace ActsExamples
32 
35  using DetectorElementPtr = std::shared_ptr<DetectorElement>;
36  using DetectorStore = std::vector<std::vector<DetectorElementPtr>>;
37 
38  using ContextDecorators =
39  std::vector<std::shared_ptr<ActsExamples::IContextDecorator>>;
40  using TrackingGeometryPtr = std::shared_ptr<const Acts::TrackingGeometry>;
41 
42  struct Config {
43  size_t buildLevel{3};
47  bool buildProto{false};
48  };
49 
52 
53  std::pair<TrackingGeometryPtr, ContextDecorators> finalize(
54  const Config& cfg,
55  std::shared_ptr<const Acts::IMaterialDecorator> mdecorator);
56 };