Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SeedFinderUtils.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SeedFinderUtils.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2023 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 {
18 struct LinCircle {
19  LinCircle() = default;
20  LinCircle(float ct, float idr, float er, float u, float v, float X, float Y)
21  : cotTheta(ct), iDeltaR(idr), Er(er), U(u), V(v), x(X), y(Y) {}
22 
23  float cotTheta{0.};
24  float iDeltaR{0.};
25  float Er{0.};
26  float U{0.};
27  float V{0.};
28  float x{0.};
29  float y{0.};
30 };
31 
41 template <typename external_spacepoint_t>
42 LinCircle transformCoordinates(
43  const InternalSpacePoint<external_spacepoint_t>& sp,
44  const InternalSpacePoint<external_spacepoint_t>& spM, bool bottom);
45 
46 template <typename external_spacepoint_t, typename callable_t>
47 LinCircle transformCoordinates(const external_spacepoint_t& sp,
48  const external_spacepoint_t& spM, bool bottom,
49  callable_t&& extractFunction);
50 
61 template <typename external_spacepoint_t>
63  Acts::SpacePointData& spacePointData,
64  const std::vector<InternalSpacePoint<external_spacepoint_t>*>& vec,
65  const InternalSpacePoint<external_spacepoint_t>& spM, bool bottom,
66  std::vector<LinCircle>& linCircleVec);
67 
68 template <typename external_spacepoint_t, typename callable_t>
69 void transformCoordinates(Acts::SpacePointData& spacePointData,
70  const std::vector<external_spacepoint_t*>& vec,
71  const external_spacepoint_t& spM, bool bottom,
72  std::vector<LinCircle>& linCircleVec,
73  callable_t&& extractFunction);
74 
85 template <typename external_spacepoint_t>
87  Acts::SpacePointData& spacePointData,
90  const double* spacepointPosition, double* outputCoordinates);
91 
92 } // namespace Acts
93