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-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 
20 namespace Acts {
21 
22 class CylinderBounds;
23 class ApproachDescriptor;
24 
30 class CylinderLayer : public CylinderSurface, public Layer {
31  public:
46  const Transform3D& transform,
47  const std::shared_ptr<const CylinderBounds>& cbounds,
48  std::unique_ptr<SurfaceArray> surfaceArray = nullptr,
49  double thickness = 0., std::unique_ptr<ApproachDescriptor> ad = nullptr,
50  LayerType laytyp = passive) {
51  return MutableLayerPtr(new CylinderLayer(transform, cbounds,
52  std::move(surfaceArray), thickness,
53  std::move(ad), laytyp));
54  }
55 
56  CylinderLayer(const CylinderLayer& cla) = delete;
57  CylinderLayer() = delete;
58  ~CylinderLayer() override = default;
59  CylinderLayer& operator=(const CylinderLayer&) = delete;
60 
63  const CylinderSurface& surfaceRepresentation() const override;
64 
65  // Non-const version
67 
68  private:
71 
72  protected:
85  const std::shared_ptr<const CylinderBounds>& cBounds,
86  std::unique_ptr<SurfaceArray> surfaceArray = nullptr,
87  double thickness = 0.,
88  std::unique_ptr<ApproachDescriptor> ades = nullptr,
89  LayerType laytyp = passive);
90 
97  CylinderLayer(const CylinderLayer& cla, const Transform3D& shift);
98 };
99 
100 } // namespace Acts