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

Fix CLD endcap radius calculation for CED #362

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

Zehvogel
Copy link
Contributor

@Zehvogel Zehvogel commented Jul 30, 2024

The radius calculation was very broken, the radius supplied by the xml is already the inner radius and the Y half-length instead of the Z half-length needs to be used, Z is just the thickness of the modules... Thankfully this was only used for the event display, the placement of the modules seems to be correct :)

BEGINRELEASENOTES

ENDRELEASENOTES

before: check issue above

after:
image

@andresailer andresailer enabled auto-merge (rebase) July 30, 2024 12:57
@andresailer andresailer disabled auto-merge July 30, 2024 12:58
@andresailer andresailer merged commit 4c95675 into key4hep:main Jul 30, 2024
6 checks passed
if(r - mod_shape->GetDZ()<innerR)
innerR= r- mod_shape->GetDZ();
if(r < innerR)
innerR = r;
Copy link
Member

@jmcarcell jmcarcell Jul 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit pedantic, these cases can be stated like innerR = std::min(innerR, r) which I think better shows the intention (this case is trivial but the other one is longer).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too late :(

@Zehvogel Zehvogel deleted the fix-ced-endcap branch July 30, 2024 13:23
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.

CLD tracker endcaps too small in CED
3 participants