ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CylinderLayer.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CylinderLayer.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 // CylinderLayer.h, Acts project
12 
13 #pragma once
14 
17 #include "Acts/Geometry/Layer.hpp"
21 
22 #include <algorithm>
23 
24 namespace Acts {
25 
26 class CylinderBounds;
27 class ApproachDescriptor;
28 
34 class CylinderLayer : public CylinderSurface, public Layer {
35  public:
50  const std::shared_ptr<const Transform3D>& transform,
51  const std::shared_ptr<const CylinderBounds>& cbounds,
52  std::unique_ptr<SurfaceArray> surfaceArray = nullptr,
53  double thickness = 0., std::unique_ptr<ApproachDescriptor> ad = nullptr,
54  LayerType laytyp = passive) {
55  return MutableLayerPtr(new CylinderLayer(transform, cbounds,
56  std::move(surfaceArray), thickness,
57  std::move(ad), laytyp));
58  }
59 
61  CylinderLayer(const CylinderLayer& cla) = delete;
62 
64  CylinderLayer& operator=(const CylinderLayer&) = delete;
65 
67  CylinderLayer() = delete;
68 
70  ~CylinderLayer() override = default;
71 
74  const CylinderSurface& surfaceRepresentation() const override;
75 
76  // Non-const version
78 
79  private:
82 
83  protected:
95  CylinderLayer(const std::shared_ptr<const Transform3D>& transform,
96  const std::shared_ptr<const CylinderBounds>& cBounds,
97  std::unique_ptr<SurfaceArray> surfaceArray = nullptr,
98  double thickness = 0.,
99  std::unique_ptr<ApproachDescriptor> ades = nullptr,
100  LayerType laytyp = passive);
101 
108  CylinderLayer(const CylinderLayer& cla, const Transform3D& shift);
109 };
110 
111 } // namespace Acts