Analysis Software
Documentation for sPHENIX simulation 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 
13 #include "Acts/Geometry/Layer.hpp"
16 
17 #include <memory>
18 #include <utility>
19 
20 namespace Acts {
21 
22 class DiscBounds;
23 
29 
30 class DiscLayer : virtual public DiscSurface, public Layer {
31  public:
44  static std::shared_ptr<DiscLayer> create(
45  const Transform3& transform,
46  const std::shared_ptr<const DiscBounds>& dbounds,
47  std::unique_ptr<SurfaceArray> surfaceArray = nullptr,
48  double thickness = 0., std::unique_ptr<ApproachDescriptor> ad = nullptr,
49  LayerType laytyp = Acts::passive) {
50  return std::shared_ptr<DiscLayer>(
51  new DiscLayer(transform, dbounds, std::move(surfaceArray), thickness,
52  std::move(ad), laytyp));
53  }
54 
55  DiscLayer() = delete;
56  DiscLayer(const DiscLayer& cla) = delete;
57  ~DiscLayer() override = default;
58  DiscLayer& operator=(const DiscLayer&) = delete;
59 
62  const DiscSurface& surfaceRepresentation() const override;
63 
64  // Non-const version
65  DiscSurface& surfaceRepresentation() override;
66 
67  private:
70 
71  protected:
72  // Constructor with DiscSurface components and pointer to SurfaceArray
81  const std::shared_ptr<const DiscBounds>& dbounds,
82  std::unique_ptr<SurfaceArray> surfaceArray = nullptr,
83  double thickness = 0.,
84  std::unique_ptr<ApproachDescriptor> ades = nullptr,
85  LayerType laytyp = Acts::active);
86 
88  DiscLayer(const DiscLayer& cla, const Transform3& tr);
89 };
90 
91 } // namespace Acts