EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
StrawSurface.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file StrawSurface.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 
15 
16 namespace Acts {
17 
18 class DetectorElementBase;
19 struct Polyhedron;
20 
28 class StrawSurface : public LineSurface {
29  friend Surface;
30 
31  protected:
38  StrawSurface(const Transform3D& transform, double radius, double halez);
39 
47  std::shared_ptr<const LineBounds> lbounds = nullptr);
48 
54  StrawSurface(const std::shared_ptr<const LineBounds>& lbounds,
55  const DetectorElementBase& detelement);
56 
60  StrawSurface(const StrawSurface& other);
61 
67  StrawSurface(const GeometryContext& gctx, const StrawSurface& other,
68  const Transform3D& shift);
69 
70  public:
71  ~StrawSurface() override = default;
72  StrawSurface() = delete;
73 
77  StrawSurface& operator=(const StrawSurface& other);
78 
80  SurfaceType type() const final;
81 
83  std::string name() const final;
84 
94  size_t lseg) const final;
95 };
96 
98  return Surface::Straw;
99 }
100 
101 inline std::string Acts::StrawSurface::name() const {
102  return "Acts::StrawSurface";
103 }
104 
105 } // namespace Acts