Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GenericApproachDescriptor.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file GenericApproachDescriptor.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 
9 #pragma once
10 
18 
19 #include <memory>
20 #include <utility>
21 #include <vector>
22 
23 namespace Acts {
24 
25 class Layer;
26 class Surface;
27 
33  public:
39  std::vector<std::shared_ptr<const Surface>> aSurfaces)
41  m_surfaces(std::move(aSurfaces)),
42  m_surfaceCache() {
44  }
45 
47  ~GenericApproachDescriptor() override = default;
48 
52  void registerLayer(const Layer& lay) override;
53 
66  const Vector3& position,
67  const Vector3& direction,
68  const BoundaryCheck& bcheck,
69  double pLimit, double oLimit,
70  double tolerance) const override;
71 
73  const std::vector<const Surface*>& containedSurfaces() const override;
74 
76  std::vector<const Surface*>& containedSurfaces() override;
77 
78  private:
80  std::vector<std::shared_ptr<const Surface>> m_surfaces;
81 
87  std::vector<const Surface*> m_surfaceCache;
88 };
89 
90 } // namespace Acts