EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ConeLayer.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ConeLayer.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2016-2020 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 ConeBounds;
19 class ApproachDescriptor;
20 
25 class ConeLayer : virtual public ConeSurface, public Layer {
26  public:
40  const Transform3D& transform, std::shared_ptr<const ConeBounds> cbounds,
41  std::unique_ptr<SurfaceArray> surfaceArray, double thickness = 0.,
42  std::unique_ptr<ApproachDescriptor> ad = nullptr,
43  LayerType laytyp = Acts::active) {
44  return MutableLayerPtr(new ConeLayer(transform, std::move(cbounds),
45  std::move(surfaceArray), thickness,
46  std::move(ad), laytyp));
47  }
48 
49  ConeLayer() = delete;
50  ConeLayer(const ConeLayer& cla) = delete;
51  ~ConeLayer() override = default;
52  ConeLayer& operator=(const ConeLayer&) = delete;
53 
55  const ConeSurface& surfaceRepresentation() const override;
56 
57  // Non-const version
59 
60  protected:
72  std::shared_ptr<const ConeBounds> cbounds,
73  std::unique_ptr<SurfaceArray> surfaceArray, double thickness = 0.,
74  std::unique_ptr<ApproachDescriptor> ade = nullptr,
75  LayerType laytyp = Acts::active);
76 
81  ConeLayer(const ConeLayer& cla, const Transform3D& shift);
82 };
83 
84 } // namespace Acts