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 
9 #pragma once
10 #include "Acts/Geometry/Layer.hpp"
13 
14 #include <algorithm>
15 
16 namespace Acts {
17 
18 class ApproachDescriptor;
19 
25 class PlaneLayer : virtual public PlaneSurface, public Layer {
26  public:
38  const Transform3D& transform, std::shared_ptr<const PlanarBounds> pbounds,
39  std::unique_ptr<SurfaceArray> surfaceArray = nullptr,
40  double thickness = 0., std::unique_ptr<ApproachDescriptor> ad = nullptr,
41  LayerType laytyp = Acts::active) {
42  return MutableLayerPtr(new PlaneLayer(transform, pbounds,
43  std::move(surfaceArray), thickness,
44  std::move(ad), laytyp));
45  }
46 
47  PlaneLayer() = delete;
48  PlaneLayer(const PlaneLayer& pla) = delete;
49  ~PlaneLayer() override = default;
50  PlaneLayer& operator=(const PlaneLayer&) = delete;
51 
54  const PlaneSurface& surfaceRepresentation() const override;
55 
56  // Non-const version
58 
59  private:
62 
63  protected:
75  std::shared_ptr<const PlanarBounds>& pbounds,
76  std::unique_ptr<SurfaceArray> surfaceArray = nullptr,
77  double thickness = 0.,
78  std::unique_ptr<ApproachDescriptor> ades = nullptr,
79  LayerType laytyp = Acts::active);
80 
85  PlaneLayer(const PlaneLayer& pla, const Transform3D& shift);
86 };
87 
88 } // namespace Acts