ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DiscLayer.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DiscLayer.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 // DiscLayer.h, Acts project
12 
13 #pragma once
14 
15 #include <algorithm>
17 #include "Acts/Geometry/Layer.hpp"
20 
21 namespace Acts {
22 
23 class DiscBounds;
24 class ApproachDescriptor;
25 
31 
32 class DiscLayer : virtual public DiscSurface, public Layer {
33  public:
47  const std::shared_ptr<const Transform3D>& transform,
48  const std::shared_ptr<const DiscBounds>& dbounds,
49  std::unique_ptr<SurfaceArray> surfaceArray = nullptr,
50  double thickness = 0., std::unique_ptr<ApproachDescriptor> ad = nullptr,
51  LayerType laytyp = Acts::passive) {
52  return MutableLayerPtr(new DiscLayer(transform, dbounds,
53  std::move(surfaceArray), thickness,
54  std::move(ad), laytyp));
55  }
56 
58  DiscLayer() = delete;
59 
61  DiscLayer(const DiscLayer& cla) = delete;
62 
64  DiscLayer& operator=(const DiscLayer&) = delete;
65 
67  ~DiscLayer() override = default;
68 
71  const DiscSurface& surfaceRepresentation() const override;
72 
73  // Non-const version
74  DiscSurface& surfaceRepresentation() override;
75 
76  private:
79 
80  protected:
81  // Constructor with DiscSurface components and pointer to SurfaceArray
89  DiscLayer(const std::shared_ptr<const Transform3D>& transform,
90  const std::shared_ptr<const DiscBounds>& dbounds,
91  std::unique_ptr<SurfaceArray> surfaceArray = nullptr,
92  double thickness = 0.,
93  std::unique_ptr<ApproachDescriptor> ades = nullptr,
94  LayerType laytyp = Acts::active);
95 
97  DiscLayer(const DiscLayer& cla, const Transform3D& tr);
98 };
99 
100 } // namespace Acts