EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ConeSurface.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ConeSurface.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 
18 
19 namespace Acts {
20 
31 
32 class ConeSurface : public Surface {
33  friend Surface;
34 
35  protected:
41  ConeSurface(const Transform3D& transform, double alpha,
42  bool symmetric = false);
43 
51  ConeSurface(const Transform3D& transform, double alpha, double zmin,
52  double zmax, double halfPhi = M_PI);
53 
59  const std::shared_ptr<const ConeBounds>& cbounds);
60 
64  ConeSurface(const ConeSurface& other);
65 
71  ConeSurface(const GeometryContext& gctx, const ConeSurface& other,
72  const Transform3D& shift);
73 
74  public:
75  ~ConeSurface() override = default;
76  ConeSurface() = delete;
77 
81  ConeSurface& operator=(const ConeSurface& other);
82 
90  BinningValue bValue) const final;
91 
93  SurfaceType type() const override;
94 
106  const Vector3D& position,
107  const Vector3D& momentum) const final;
108 
115  const Vector2D& lposition) const final;
116 
123  const Vector3D& position) const final;
124 
126  using Surface::normal;
127 
128  // Return method for the rotational symmetry axis
132  // @return This returns the local z axis
133  virtual Vector3D rotSymmetryAxis(const GeometryContext& gctx) const;
134 
136  const ConeBounds& bounds() const final;
137 
145  Vector3D localToGlobal(const GeometryContext& gctx, const Vector2D& lposition,
146  const Vector3D& momentum) const final;
147 
156  const Vector3D& position,
157  const Vector3D& momentum) const final;
158 
170  const Vector3D& position,
171  const Vector3D& direction,
172  const BoundaryCheck& bcheck) const final;
173 
180  double pathCorrection(const GeometryContext& gctx, const Vector3D& position,
181  const Vector3D& direction) const final;
182 
194  size_t lseg) const override;
195 
197  std::string name() const override;
198 
208  const GeometryContext& gctx, const Vector3D& position) const final;
209 
210  protected:
212 
213  private:
250  const GeometryContext& gctx, const Vector3D& position,
251  const Vector3D& direction) const;
252 };
253 
254 #include "Acts/Surfaces/detail/ConeSurface.ipp"
255 
256 } // namespace Acts