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 
9 #pragma once
10 
12 #include "Acts/Geometry/Layer.hpp"
15 
16 #include <algorithm>
17 
18 namespace Acts {
19 
20 class DiscBounds;
21 class ApproachDescriptor;
22 
28 
29 class DiscLayer : virtual public DiscSurface, public Layer {
30  public:
44  const Transform3D& transform,
45  const std::shared_ptr<const DiscBounds>& dbounds,
46  std::unique_ptr<SurfaceArray> surfaceArray = nullptr,
47  double thickness = 0., std::unique_ptr<ApproachDescriptor> ad = nullptr,
48  LayerType laytyp = Acts::passive) {
49  return MutableLayerPtr(new DiscLayer(transform, dbounds,
50  std::move(surfaceArray), thickness,
51  std::move(ad), laytyp));
52  }
53 
54  DiscLayer() = delete;
55  DiscLayer(const DiscLayer& cla) = delete;
56  ~DiscLayer() override = default;
57  DiscLayer& operator=(const DiscLayer&) = delete;
58 
61  const DiscSurface& surfaceRepresentation() const override;
62 
63  // Non-const version
64  DiscSurface& surfaceRepresentation() override;
65 
66  private:
69 
70  protected:
71  // Constructor with DiscSurface components and pointer to SurfaceArray
80  const std::shared_ptr<const DiscBounds>& dbounds,
81  std::unique_ptr<SurfaceArray> surfaceArray = nullptr,
82  double thickness = 0.,
83  std::unique_ptr<ApproachDescriptor> ades = nullptr,
84  LayerType laytyp = Acts::active);
85 
87  DiscLayer(const DiscLayer& cla, const Transform3D& tr);
88 };
89 
90 } // namespace Acts