EIC 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 
16 
17 #include <algorithm>
18 
19 namespace Acts {
20 
28 
30  public:
36  std::vector<std::shared_ptr<const Surface>> aSurfaces)
38  m_surfaces(std::move(aSurfaces)),
39  m_surfaceCache() {
41  }
42 
44  ~GenericApproachDescriptor() override = default;
45 
49  void registerLayer(const Layer& lay) override;
50 
60  const GeometryContext& gctx, const Vector3D& position,
61  const Vector3D& direction, const BoundaryCheck& bcheck) const override;
62 
64  const std::vector<const Surface*>& containedSurfaces() const override;
65 
67  std::vector<const Surface*>& containedSurfaces() override;
68 
69  private:
71  std::vector<std::shared_ptr<const Surface>> m_surfaces;
72 
78  std::vector<const Surface*> m_surfaceCache;
79 };
80 
81 } // namespace Acts