Analysis Software
Documentation for sPHENIX simulation 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 
16 
17 #include <cstddef>
18 #include <memory>
19 #include <string>
20 
21 namespace Acts {
22 
23 class DetectorElementBase;
24 struct Polyhedron;
25 class LineBounds;
26 
34 class StrawSurface : public LineSurface {
35 #ifndef DOXYGEN
36  friend Surface;
37 #endif
38 
39  protected:
46  StrawSurface(const Transform3& transform, double radius, double halez);
47 
55  std::shared_ptr<const LineBounds> lbounds = nullptr);
56 
62  StrawSurface(const std::shared_ptr<const LineBounds>& lbounds,
63  const DetectorElementBase& detelement);
64 
68  StrawSurface(const StrawSurface& other);
69 
75  StrawSurface(const GeometryContext& gctx, const StrawSurface& other,
76  const Transform3& shift);
77 
78  public:
79  ~StrawSurface() override = default;
80  StrawSurface() = delete;
81 
85  StrawSurface& operator=(const StrawSurface& other);
86 
88  SurfaceType type() const final;
89 
91  std::string name() const final;
92 
102  size_t lseg) const final;
103 };
104 
106  return Surface::Straw;
107 }
108 
110  return "Acts::StrawSurface";
111 }
112 
113 } // namespace Acts