ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackingGeometry.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrackingGeometry.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2016-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 
10 // TrackingGeometry.hpp, Acts project
12 
13 #pragma once
14 
18 
19 #include <functional>
20 #include <map>
21 #include <memory>
22 #include <vector>
23 
24 namespace Acts {
25 
26 class TrackingVolume;
27 class Layer;
28 class Surface;
29 class PerigeeSurface;
30 class IMaterialDecorator;
31 
32 using TrackingVolumePtr = std::shared_ptr<const TrackingVolume>;
33 using MutableTrackingVolumePtr = std::shared_ptr<TrackingVolume>;
34 
46 
47  public:
53  TrackingGeometry(const MutableTrackingVolumePtr& highestVolume,
54  const IMaterialDecorator* materialDecorator = nullptr);
55 
58 
62 
70  const Vector3D& gp) const;
71 
77  const TrackingVolume* trackingVolume(const std::string& name) const;
78 
86  const Vector3D& gp) const;
87 
91  void registerBeamTube(std::shared_ptr<const PerigeeSurface> beam);
92 
99  const Surface* getBeamline() const;
100 
105  void visitSurfaces(
106  const std::function<void(const Acts::Surface*)>& visitor) const;
107 
108  private:
111  std::shared_ptr<const PerigeeSurface> m_beam;
112 
114  std::map<std::string, const TrackingVolume*> m_trackingVolumes;
115 };
116 
117 } // namespace Acts