ECCE @ 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(std::shared_ptr<const Transform3D> htrans, double alpha,
42  bool symmetric = false);
43 
51  ConeSurface(std::shared_ptr<const Transform3D> htrans, double alpha,
52  double zmin, double zmax, double halfPhi = M_PI);
53 
58  ConeSurface(std::shared_ptr<const Transform3D> htrans,
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& transf);
73 
74  public:
76  ~ConeSurface() override = default;
77 
79  ConeSurface() = delete;
80 
84  ConeSurface& operator=(const ConeSurface& other);
85 
93  BinningValue bValue) const final;
94 
96  SurfaceType type() const override;
97 
109  const Vector3D& position,
110  const Vector3D& momentum) const final;
111 
117  const Vector3D normal(const GeometryContext& gctx,
118  const Vector2D& lposition) const final;
119 
125  const Vector3D normal(const GeometryContext& gctx,
126  const Vector3D& position) const final;
127 
129  using Surface::normal;
130 
131  // Return method for the rotational symmetry axis
135  // @return This returns the local z axis
136  virtual const Vector3D rotSymmetryAxis(const GeometryContext& gctx) const;
137 
139  const ConeBounds& bounds() const final;
140 
147  void localToGlobal(const GeometryContext& gctx, const Vector2D& lposition,
148  const Vector3D& momentum, Vector3D& position) const final;
149 
157  bool globalToLocal(const GeometryContext& gctx, const Vector3D& position,
158  const Vector3D& momentum, Vector2D& lposition) const final;
159 
171  const GeometryContext& gctx, const Vector3D& position,
172  const Vector3D& direction,
173  const BoundaryCheck& bcheck = false) const final;
174 
186  const Vector3D& position,
187  const Vector3D& direction,
188  const BoundaryCheck& bcheck) const final;
189 
196  double pathCorrection(const GeometryContext& gctx, const Vector3D& position,
197  const Vector3D& direction) const final;
198 
210  size_t lseg) const override;
211 
213  std::string name() const override;
214 
215  protected:
217 
218  private:
255  const GeometryContext& gctx, const Vector3D& position,
256  const Vector3D& direction) const;
257 };
258 
259 #include "Acts/Surfaces/detail/ConeSurface.ipp"
260 
261 } // namespace Acts