Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SpacePointUtility.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SpacePointUtility.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2022 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 
19 
20 #include <array>
21 #include <cstddef>
22 #include <functional>
23 #include <iostream>
24 #include <memory>
25 #include <system_error>
26 #include <utility>
27 #include <vector>
28 
29 namespace Acts {
30 class SourceLink;
31 
48  double mag_firstBtmToTop = 0.;
50  double m = 0.;
52  double n = 0.;
55  double limit = 1.;
58  double limitExtended = 0.;
59 };
60 
64  public:
67 
77  std::pair<Vector3, Vector2> globalCoords(
78  const GeometryContext& gctx, const SourceLink& slink,
79  const SourceLinkSurfaceAccessor& surfaceAccessor, const BoundVector& par,
80  const BoundSquareMatrix& cov) const;
81 
89  const Vector3& globalPos,
90  const SquareMatrix2& localCov) const;
91 
102  const GeometryContext& gctx, const SourceLink& slinkFront,
103  const SourceLink& slinkBack,
104  const SourceLinkSurfaceAccessor& surfaceAccessor,
105  const std::function<std::pair<const BoundVector, const BoundSquareMatrix>(
106  SourceLink)>& paramCovAccessor,
107  const Vector3& globalPos, const double theta) const;
108 
121  const std::pair<Vector3, Vector3>& stripEnds1,
122  const std::pair<Vector3, Vector3>& stripEnds2, const Vector3& posVertex,
123  SpacePointParameters& spParams, const double stripLengthTolerance) const;
124 
136  double stripLengthGapTolerance) const;
137 
150  const Vector3& pos1, const Vector3& pos2, const Vector3& posVertex,
151  const double maxDistance, const double maxAngleTheta2,
152  const double maxAnglePhi2) const;
153 
164  const std::pair<Vector3, Vector3>& stripEnds1,
165  const std::pair<Vector3, Vector3>& stripEnds2,
166  SpacePointParameters& spParams) const;
167 
168  private:
170  std::error_code m_error;
171 };
172 
173 } // namespace Acts