Analysis Software
Documentation for sPHENIX simulation 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 
13 #include "Acts/Geometry/Layer.hpp"
16 
17 #include <memory>
18 #include <utility>
19 
20 namespace Acts {
21 
22 class PlanarBounds;
23 
29 class PlaneLayer : virtual public PlaneSurface, public Layer {
30  public:
42  const Transform3& transform, 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(transform, pbounds,
48  std::move(ad), laytyp));
49  }
50 
51  PlaneLayer() = delete;
52  PlaneLayer(const PlaneLayer& pla) = delete;
53  ~PlaneLayer() override = default;
54  PlaneLayer& operator=(const PlaneLayer&) = delete;
55 
58  const PlaneSurface& surfaceRepresentation() const override;
59 
60  // Non-const version
62 
63  private:
66 
67  protected:
77  std::shared_ptr<const PlanarBounds>& pbounds,
78  std::unique_ptr<SurfaceArray> surfaceArray = nullptr,
79  double thickness = 0.,
80  std::unique_ptr<ApproachDescriptor> ades = nullptr,
81  LayerType laytyp = Acts::active);
82 
87  PlaneLayer(const PlaneLayer& pla, const Transform3& shift);
88 };
89 
90 } // namespace Acts