Analysis Software
Documentation for sPHENIX simulation 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 #include <memory>
20 #include <utility>
21 
22 namespace Acts {
23 class CylinderBounds;
24 
30 class CylinderLayer : public CylinderSurface, public Layer {
31  public:
45  static std::shared_ptr<CylinderLayer> create(
46  const Transform3& 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 std::shared_ptr<CylinderLayer>(
52  new CylinderLayer(transform, cbounds, std::move(surfaceArray),
53  thickness, 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:
83  const std::shared_ptr<const CylinderBounds>& cBounds,
84  std::unique_ptr<SurfaceArray> surfaceArray = nullptr,
85  double thickness = 0.,
86  std::unique_ptr<ApproachDescriptor> ades = nullptr,
87  LayerType laytyp = passive);
88 
93  CylinderLayer(const CylinderLayer& cla, const Transform3& shift);
94 };
95 
96 } // namespace Acts