Skip to content

Commit

Permalink
remove cartesian to bound jacobians
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Dec 19, 2024
1 parent 217b138 commit a0d665d
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 80 deletions.
3 changes: 0 additions & 3 deletions Core/include/Acts/Surfaces/AnnulusBounds.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ class AnnulusBounds : public DiscBounds {
/// @copydoc SurfaceBounds::boundToCartesianJacobian
SquareMatrix2 boundToCartesianJacobian(const Vector2& lposition) const final;

/// @copydoc SurfaceBounds::cartesianToBoundJacobian
SquareMatrix2 cartesianToBoundJacobian(const Vector2& lposition) const final;

/// @copydoc SurfaceBounds::boundToCartesianMetric
SquareMatrix2 boundToCartesianMetric(const Vector2& lposition) const final;

Expand Down
6 changes: 0 additions & 6 deletions Core/include/Acts/Surfaces/ConeBounds.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,6 @@ class ConeBounds : public SurfaceBounds {
return SquareMatrix2::Identity();
}

/// @copydoc SurfaceBounds::cartesianToBoundJacobian
SquareMatrix2 cartesianToBoundJacobian(const Vector2& lposition) const final {
(void)lposition;
return SquareMatrix2::Identity();
}

/// @copydoc SurfaceBounds::boundToCartesianMetric
SquareMatrix2 boundToCartesianMetric(const Vector2& lposition) const final {
(void)lposition;
Expand Down
6 changes: 0 additions & 6 deletions Core/include/Acts/Surfaces/CylinderBounds.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@ class CylinderBounds : public SurfaceBounds {
return SquareMatrix2::Identity();
}

/// @copydoc SurfaceBounds::cartesianToBoundJacobian
SquareMatrix2 cartesianToBoundJacobian(const Vector2& lposition) const final {
(void)lposition;
return SquareMatrix2::Identity();
}

/// @copydoc SurfaceBounds::boundToCartesianMetric
SquareMatrix2 boundToCartesianMetric(const Vector2& lposition) const final {
(void)lposition;
Expand Down
3 changes: 0 additions & 3 deletions Core/include/Acts/Surfaces/DiscTrapezoidBounds.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ class DiscTrapezoidBounds : public DiscBounds {
/// @copydoc SurfaceBounds::boundToCartesianJacobian
SquareMatrix2 boundToCartesianJacobian(const Vector2& lposition) const final;

/// @copydoc SurfaceBounds::cartesianToBoundJacobian
SquareMatrix2 cartesianToBoundJacobian(const Vector2& lposition) const final;

/// @copydoc SurfaceBounds::boundToCartesianMetric
SquareMatrix2 boundToCartesianMetric(const Vector2& lposition) const final;

Expand Down
6 changes: 0 additions & 6 deletions Core/include/Acts/Surfaces/InfiniteBounds.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ class InfiniteBounds : public SurfaceBounds {
return SquareMatrix2::Identity();
}

/// @copydoc SurfaceBounds::cartesianToBoundJacobian
SquareMatrix2 cartesianToBoundJacobian(const Vector2& lposition) const final {
(void)lposition;
return SquareMatrix2::Identity();
}

/// @copydoc SurfaceBounds::boundToCartesianMetric
SquareMatrix2 boundToCartesianMetric(const Vector2& lposition) const final {
(void)lposition;
Expand Down
6 changes: 0 additions & 6 deletions Core/include/Acts/Surfaces/LineBounds.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ class LineBounds : public SurfaceBounds {
return SquareMatrix2::Identity();
}

/// @copydoc SurfaceBounds::cartesianToBoundJacobian
SquareMatrix2 cartesianToBoundJacobian(const Vector2& lposition) const final {
(void)lposition;
return SquareMatrix2::Identity();
}

/// @copydoc SurfaceBounds::boundToCartesianMetric
SquareMatrix2 boundToCartesianMetric(const Vector2& lposition) const final {
(void)lposition;
Expand Down
6 changes: 0 additions & 6 deletions Core/include/Acts/Surfaces/PlanarBounds.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ class PlanarBounds : public SurfaceBounds {
return SquareMatrix2::Identity();
}

/// @copydoc SurfaceBounds::cartesianToBoundJacobian
SquareMatrix2 cartesianToBoundJacobian(const Vector2& lposition) const final {
(void)lposition;
return SquareMatrix2::Identity();
}

/// @copydoc SurfaceBounds::boundToCartesianMetric
SquareMatrix2 boundToCartesianMetric(const Vector2& lposition) const final {
(void)lposition;
Expand Down
3 changes: 0 additions & 3 deletions Core/include/Acts/Surfaces/RadialBounds.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ class RadialBounds : public DiscBounds {
/// @copydoc SurfaceBounds::boundToCartesianJacobian
SquareMatrix2 boundToCartesianJacobian(const Vector2& lposition) const final;

/// @copydoc SurfaceBounds::cartesianToBoundJacobian
SquareMatrix2 cartesianToBoundJacobian(const Vector2& lposition) const final;

/// @copydoc SurfaceBounds::boundToCartesianMetric
SquareMatrix2 boundToCartesianMetric(const Vector2& lposition) const final;

Expand Down
6 changes: 0 additions & 6 deletions Core/include/Acts/Surfaces/SurfaceBounds.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ class SurfaceBounds {
virtual SquareMatrix2 boundToCartesianJacobian(
const Vector2& lposition) const = 0;

/// Computes the cartesian to bound jacobian at a given local position
/// @param lposition is the local position at which the jacobian is computed
/// @return the cartesian to bound jacobian
virtual SquareMatrix2 cartesianToBoundJacobian(
const Vector2& lposition) const = 0;

/// Computes the bound to cartesian metric at a given local position
/// @param lposition is the local position at which the metric is computed
/// @return the bound to cartesian metric
Expand Down
10 changes: 0 additions & 10 deletions Core/src/Surfaces/AnnulusBounds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,16 +181,6 @@ SquareMatrix2 AnnulusBounds::boundToCartesianJacobian(
return j;
}

SquareMatrix2 AnnulusBounds::cartesianToBoundJacobian(
const Vector2& lposition) const {
SquareMatrix2 j;
j(0, 0) = std::cos(lposition[1]);
j(0, 1) = std::sin(lposition[1]);
j(1, 0) = -std::sin(lposition[1]) / lposition[0];
j(1, 1) = std::cos(lposition[1]) / lposition[0];
return j;
}

SquareMatrix2 AnnulusBounds::boundToCartesianMetric(
const Vector2& lposition) const {
SquareMatrix2 m;
Expand Down
10 changes: 0 additions & 10 deletions Core/src/Surfaces/DiscTrapezoidBounds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,6 @@ SquareMatrix2 DiscTrapezoidBounds::boundToCartesianJacobian(
return j;
}

SquareMatrix2 DiscTrapezoidBounds::cartesianToBoundJacobian(
const Vector2& lposition) const {
SquareMatrix2 j;
j(0, 0) = std::cos(lposition[1]);
j(0, 1) = std::sin(lposition[1]);
j(1, 0) = -std::sin(lposition[1]) / lposition[0];
j(1, 1) = std::cos(lposition[1]) / lposition[0];
return j;
}

SquareMatrix2 DiscTrapezoidBounds::boundToCartesianMetric(
const Vector2& lposition) const {
SquareMatrix2 m;
Expand Down
10 changes: 0 additions & 10 deletions Core/src/Surfaces/RadialBounds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,6 @@ SquareMatrix2 RadialBounds::boundToCartesianJacobian(
return j;
}

SquareMatrix2 RadialBounds::cartesianToBoundJacobian(
const Vector2& lposition) const {
SquareMatrix2 j;
j(0, 0) = std::cos(lposition[1]);
j(0, 1) = std::sin(lposition[1]);
j(1, 0) = -std::sin(lposition[1]) / lposition[0];
j(1, 1) = std::cos(lposition[1]) / lposition[0];
return j;
}

SquareMatrix2 RadialBounds::boundToCartesianMetric(
const Vector2& lposition) const {
SquareMatrix2 m;
Expand Down
5 changes: 0 additions & 5 deletions Tests/UnitTests/Core/Surfaces/SurfaceBoundsTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ class SurfaceBoundsStub : public SurfaceBounds {
return SquareMatrix2::Identity();
}

SquareMatrix2 cartesianToBoundJacobian(const Vector2& lposition) const final {
(void)lposition;
return SquareMatrix2::Identity();
}

SquareMatrix2 boundToCartesianMetric(const Vector2& lposition) const final {
(void)lposition;
return SquareMatrix2::Identity();
Expand Down

0 comments on commit a0d665d

Please sign in to comment.