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

Accommodate breaking changes for geometry refactoring #393

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

knoepfel
Copy link
Contributor

@knoepfel knoepfel commented Nov 1, 2023

Accommodate changes from:


N.B.: This PR should not be merged until the above PRs have been merged into a LArSoft release.

@fjnicolas
Copy link
Contributor

thank you @knoepfel for the fast update! we will start testing/validating the set of geometry PRs

@knoepfel
Copy link
Contributor Author

knoepfel commented Mar 7, 2024

@fjnicolas, no problem. I actually need to make a few more changes, but I'll let you know once this PR is ready for testing.

@knoepfel
Copy link
Contributor Author

knoepfel commented Mar 7, 2024

Okay, @fjnicolas, this PR should now be ready for testing.

@bear-is-asleep bear-is-asleep added the geometry Geometry related issue label Aug 6, 2024
@bear-is-asleep
Copy link
Contributor

Is there any updates to this? The larsoft PR changes this PR proposed to fix have both since been closed without merging. If it's still awaiting PRs, can you convert it to a draft PR? Thanks!

@knoepfel
Copy link
Contributor Author

These changes are necessary once LArSoft merges the v10 release candidate into its mainline development branch. The LArSoft team has been awaiting feedback from the experiments regarding the v10 candidate--we have received comments only from DUNE. However, once v10 is merged, these changes will need to be used.

The LArSoft PRs were closed because a dedicated v10 branch was created with all of the changes already included in the branch.

@bear-is-asleep
Copy link
Contributor

Ok thanks for letting me know! I'll convert to a draft so it's known that we are not ready to merge this until larsoft v10 is out.

@bear-is-asleep bear-is-asleep marked this pull request as draft August 23, 2024 14:47
geo::TPCID tpcID = hits[0]->WireID().asTPCID();
auto const [axis, sign] = GeometryService->TPC(tpcID).DriftAxisWithSign();
if(axis != geo::Coordinate::X) return 0;
return to_int(sign);
Copy link
Contributor

@tomjunk tomjunk Oct 8, 2024

Choose a reason for hiding this comment

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

This sign needs checking. It may be okay, but possibly not -- it depends on how this drift direction is used.

See:

LArSoft/lardataalg@009551b

and compare the sign for some hits in v10 vs v9

Copy link
Contributor

Choose a reason for hiding this comment

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

If this direction is used in ConvertTicksToX for example, there might be a problem.

return driftDirection;
auto const [axis, sign] = fGeometryService->TPC(tpcID).DriftAxisWithSign();
if(axis != geo::Coordinate::X) return 0;
return to_int(sign);
Copy link
Contributor

Choose a reason for hiding this comment

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

This sign needs checking. c.f.

LArSoft/lardataalg@009551b

It may be okay, but possibly not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
geometry Geometry related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants