ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PlaneLayer.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PlaneLayer.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 // PlaneLayer.h, Acts project
12 
13 #pragma once
14 #include <algorithm>
15 #include "Acts/Geometry/Layer.hpp"
18 
19 namespace Acts {
20 
21 class ApproachDescriptor;
22 
28 class PlaneLayer : virtual public PlaneSurface, public Layer {
29  public:
41  std::shared_ptr<const Transform3D> transform,
42  std::shared_ptr<const PlanarBounds> pbounds,
43  std::unique_ptr<SurfaceArray> surfaceArray = nullptr,
44  double thickness = 0., std::unique_ptr<ApproachDescriptor> ad = nullptr,
45  LayerType laytyp = Acts::active) {
46  return MutableLayerPtr(new PlaneLayer(std::move(transform), pbounds,
47  std::move(surfaceArray), thickness,
48  std::move(ad), laytyp));
49  }
50 
52  PlaneLayer() = delete;
53 
55  PlaneLayer(const PlaneLayer& pla) = delete;
56 
58  PlaneLayer& operator=(const PlaneLayer&) = delete;
59 
61  ~PlaneLayer() override = default;
62 
65  const PlaneSurface& surfaceRepresentation() const override;
66 
67  // Non-const version
69 
70  private:
73 
74  protected:
85  PlaneLayer(std::shared_ptr<const Transform3D> transform,
86  std::shared_ptr<const PlanarBounds>& pbounds,
87  std::unique_ptr<SurfaceArray> surfaceArray = nullptr,
88  double thickness = 0.,
89  std::unique_ptr<ApproachDescriptor> ades = nullptr,
90  LayerType laytyp = Acts::active);
91 
96  PlaneLayer(const PlaneLayer& pla, const Transform3D& shift);
97 };
98 
99 } // namespace Acts