Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TelescopeDetector.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TelescopeDetector.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2020 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 
14 
15 #include <array>
16 #include <memory>
17 #include <utility>
18 #include <vector>
19 
20 using namespace Acts::UnitLiterals;
21 
22 namespace Acts {
23 class TrackingGeometry;
24 class IMaterialDecorator;
25 } // namespace Acts
26 
27 namespace ActsExamples {
28 class IContextDecorator;
29 } // namespace ActsExamples
30 
31 namespace ActsExamples {
32 namespace Telescope {
33 
34 class TelescopeDetectorElement;
35 class TelescopeG4DetectorConstruction;
36 
39  using DetectorElementPtr = std::shared_ptr<DetectorElement>;
40  using DetectorStore = std::vector<DetectorElementPtr>;
41 
42  using ContextDecorators =
43  std::vector<std::shared_ptr<ActsExamples::IContextDecorator>>;
44  using TrackingGeometryPtr = std::shared_ptr<const Acts::TrackingGeometry>;
45 
46  struct Config {
47  std::vector<double> positions{{0, 30, 60, 120, 150, 180}};
48  std::vector<double> stereos{{0, 0, 0, 0, 0, 0}};
49  std::array<double, 2> offsets{{0, 0}};
50  std::array<double, 2> bounds{{25, 100}};
51  double thickness{80_um};
52  int surfaceType{0};
53  int binValue{2};
54  };
55 
59 
60  std::pair<TrackingGeometryPtr, ContextDecorators> finalize(
61  const Config& cfg,
62  const std::shared_ptr<const Acts::IMaterialDecorator>& mdecorator);
63 };
64 
65 } // namespace Telescope
66 } // namespace ActsExamples