ECCE @ 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-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 // ConeLayer.h, Acts project
12 
13 #pragma once
14 #include <algorithm>
15 #include "Acts/Geometry/Layer.hpp"
18 
19 namespace Acts {
20 
21 class ConeBounds;
22 class ApproachDescriptor;
23 
29 class ConeLayer : virtual public ConeSurface, public Layer {
30  public:
44  std::shared_ptr<const Transform3D> transform,
45  std::shared_ptr<const ConeBounds> cbounds,
46  std::unique_ptr<SurfaceArray> surfaceArray, double thickness = 0.,
47  std::unique_ptr<ApproachDescriptor> ad = nullptr,
48  LayerType laytyp = Acts::active) {
49  return MutableLayerPtr(new ConeLayer(
50  std::move(transform), std::move(cbounds), std::move(surfaceArray),
51  thickness, std::move(ad), laytyp));
52  }
53 
55  ConeLayer() = delete;
56 
58  ConeLayer(const ConeLayer& cla) = delete;
59 
61  ConeLayer& operator=(const ConeLayer&) = delete;
62 
64  ~ConeLayer() override = default;
65 
67  const ConeSurface& surfaceRepresentation() const override;
68 
69  // Non-const version
71 
72  protected:
83  ConeLayer(std::shared_ptr<const Transform3D> transform,
84  std::shared_ptr<const ConeBounds> cbounds,
85  std::unique_ptr<SurfaceArray> surfaceArray, double thickness = 0.,
86  std::unique_ptr<ApproachDescriptor> ade = nullptr,
87  LayerType laytyp = Acts::active);
88 
93  ConeLayer(const ConeLayer& cla, const Transform3D& shift);
94 };
95 
96 } // namespace Acts