Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BuildTelescopeDetector.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file BuildTelescopeDetector.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2020-2021 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 
15 
16 #include <array>
17 #include <memory>
18 #include <vector>
19 
20 namespace Acts {
21 class TrackingGeometry;
22 } // namespace Acts
23 
24 namespace ActsExamples {
25 namespace Telescope {
26 
29  Plane = 0,
30  Disc = 1,
31 };
32 
49 std::unique_ptr<const Acts::TrackingGeometry> buildDetector(
50  const typename TelescopeDetectorElement::ContextType& gctx,
51  std::vector<std::shared_ptr<TelescopeDetectorElement>>& detectorStore,
52  const std::vector<double>& positions,
53  const std::vector<double>& stereoAngles,
54  const std::array<double, 2>& offsets, const std::array<double, 2>& bounds,
55  double thickness, TelescopeSurfaceType surfaceType,
57 
58 } // end of namespace Telescope
59 } // end of namespace ActsExamples