Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-17 08:02:12

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 #include "Acts/Geometry/ConeLayer.hpp"
0010 
0011 #include "Acts/Definitions/Algebra.hpp"
0012 #include "Acts/Surfaces/SurfaceArray.hpp"
0013 
0014 namespace Acts {
0015 
0016 std::shared_ptr<ConeLayer> ConeLayer::create(
0017     const Transform3& transform, std::shared_ptr<const ConeBounds> cbounds,
0018     std::unique_ptr<SurfaceArray> surfaceArray, double thickness,
0019     std::unique_ptr<ApproachDescriptor> ad, LayerType laytyp) {
0020   return std::shared_ptr<ConeLayer>(
0021       new ConeLayer(transform, std::move(cbounds), std::move(surfaceArray),
0022                     thickness, std::move(ad), laytyp));
0023 }
0024 
0025 ConeLayer::ConeLayer(const Transform3& transform,
0026                      std::shared_ptr<const ConeBounds> cbounds,
0027                      std::unique_ptr<SurfaceArray> surfaceArray,
0028                      double thickness, std::unique_ptr<ApproachDescriptor> ade,
0029                      LayerType laytyp)
0030     : ConeSurface(transform, std::move(cbounds)),
0031       Layer(std::move(surfaceArray), thickness, std::move(ade), laytyp) {}
0032 
0033 const ConeSurface& ConeLayer::surfaceRepresentation() const {
0034   return (*this);
0035 }
0036 
0037 ConeSurface& ConeLayer::surfaceRepresentation() {
0038   return (*this);
0039 }
0040 
0041 }  // namespace Acts