Analysis Software
Documentation for sPHENIX simulation 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 
13 #include "Acts/Geometry/Layer.hpp"
17 
18 #include <algorithm>
19 #include <memory>
20 #include <utility>
21 
22 namespace Acts {
23 class ConeBounds;
24 
29 class ConeLayer : virtual public ConeSurface, public Layer {
30  public:
44  const Transform3& transform, std::shared_ptr<const ConeBounds> cbounds,
45  std::unique_ptr<SurfaceArray> surfaceArray, double thickness = 0.,
46  std::unique_ptr<ApproachDescriptor> ad = nullptr,
47  LayerType laytyp = Acts::active) {
48  return MutableLayerPtr(new ConeLayer(transform, std::move(cbounds),
49  std::move(surfaceArray), thickness,
50  std::move(ad), laytyp));
51  }
52 
53  ConeLayer() = delete;
54  ConeLayer(const ConeLayer& cla) = delete;
55  ~ConeLayer() override = default;
56  ConeLayer& operator=(const ConeLayer&) = delete;
57 
59  const ConeSurface& surfaceRepresentation() const override;
60 
61  // Non-const version
63 
64  protected:
76  std::shared_ptr<const ConeBounds> cbounds,
77  std::unique_ptr<SurfaceArray> surfaceArray, double thickness = 0.,
78  std::unique_ptr<ApproachDescriptor> ade = nullptr,
79  LayerType laytyp = Acts::active);
80 
85  ConeLayer(const ConeLayer& cla, const Transform3& shift);
86 };
87 
88 } // namespace Acts