ECCE @ 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 
10 // GenericApproachDescriptor.h, Acts project
12 
13 #pragma once
14 
15 #include <algorithm>
21 
22 namespace Acts {
23 
31 
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 
63  const GeometryContext& gctx, const Vector3D& position,
64  const Vector3D& direction, const BoundaryCheck& bcheck) const override;
65 
67  const std::vector<const Surface*>& containedSurfaces() const override;
68 
70  std::vector<const Surface*>& containedSurfaces() override;
71 
72  private:
74  std::vector<std::shared_ptr<const Surface>> m_surfaces;
75 
81  std::vector<const Surface*> m_surfaceCache;
82 };
83 
84 } // namespace Acts