forked from acts-project/acts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Cylinder and Disc surface merging (acts-project#3288)
This PR allows merging of two cylinder and disc surfaces. Merging is allowed in the $z$ and $r\times\phi$ direction for cylinders, and in the $r$ and $\phi$ direction for discs. The surfaces need to be consistent, i.e. their bounds dimensions and transforms need to line up. - For **cylinders**: - $z$ merging: $z$ edges must be aligned, no relative $xy$ shift or any rotation is allowed. - $r\times\phi$ merging: $r\times\phi$ edges must be aligned, no $xyz$ shift or any rotation is allowed - For **discs**: - $r$ merging: $r$ edges must be aligned, no $xyz$ shift or rotation is allowed - $\phi$ merging: $\phi$ edges must be aligned, no $xyz$ shift or rotation is allowed. ![Cylinder_Merging](https://github.com/acts-project/acts/assets/1058585/ed7b2a9d-764b-473a-9c5a-675651232786) ![Disc_Merging](https://github.com/acts-project/acts/assets/1058585/3fe97e7e-94ee-4d1a-8277-8cd01104b06a) Blocked by: - acts-project#3290
- Loading branch information
1 parent
7cf4883
commit 8e6eba4
Showing
14 changed files
with
1,007 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// This file is part of the Acts project. | ||
// | ||
// Copyright (C) 2024 CERN for the benefit of the Acts project | ||
// | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
#pragma once | ||
|
||
#include "Acts/Definitions/Algebra.hpp" | ||
#include "Acts/Definitions/Tolerance.hpp" | ||
#include "Acts/Definitions/Units.hpp" | ||
#include "Acts/Utilities/Logger.hpp" | ||
#include "Acts/Utilities/detail/periodic.hpp" | ||
|
||
#include <utility> | ||
|
||
namespace Acts::detail { | ||
|
||
/// This helper function calculates the combination | ||
/// of two phi sectors, defined by a phi half-length + | ||
/// a half phi sector in the range [0,pi). The two | ||
/// ranges need to line up, i.e. that one of the sector | ||
/// ends exactly where the other one starts. | ||
std::pair<ActsScalar, ActsScalar> mergedPhiSector( | ||
ActsScalar hlPhi1, ActsScalar avgPhi1, ActsScalar hlPhi2, | ||
ActsScalar avgPhi2, const Logger& logger = getDummyLogger(), | ||
ActsScalar tolerance = s_onSurfaceTolerance); | ||
|
||
} // namespace Acts::detail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.