Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed TwistedTube when only half-length is provided #1243

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

atolosadelgado
Copy link
Contributor

@atolosadelgado atolosadelgado commented Mar 18, 2024

It turns out that GetNegativeEndZ may be <0, leading to undefined behavior when the value is used as 'half-length'
Replacing GetNegativeEndZ by GetPositiveEndZ in the Geant4 converting function fixes the problem because GetPositiveEndZ corresponds to the user value (that is expected to be the half-length of the twisted tube, as the half-length parameter of a regular tube)

The change is tested in my local installation of DD4hep.

BEGINRELEASENOTES

  • Fixed TwistedTube when only half-length is provided, making the tube is symmetric along Z axis

ENDRELEASENOTES

…aviour

when the value is used as 'half-length'
replacing GetNegativeEndZ by GetPositiveEndZ fixes the problem
because GetPositiveEndZ is the user value that corresponds to half-length
Copy link

github-actions bot commented Mar 18, 2024

Test Results

    7 files      7 suites   2h 53m 39s ⏱️
  361 tests   353 ✅ 0 💤 8 ❌
1 087 runs  1 079 ✅ 0 💤 8 ❌

For more details on these failures, see this check.

Results for commit 182b432.

♻️ This comment has been updated with latest results.

@andresailer andresailer enabled auto-merge (rebase) March 20, 2024 13:48
@andresailer andresailer disabled auto-merge March 20, 2024 13:48
@andresailer andresailer merged commit 79e3e9a into AIDASoft:master Mar 20, 2024
11 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants