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

Improvements for inelasticity reconstructions and other utilities #763

Merged
merged 12 commits into from
Nov 28, 2024

Conversation

pweigel
Copy link
Collaborator

@pweigel pweigel commented Nov 1, 2024

This pull request implements some changes for training inelasticity reconstructions and adds other utilities:

  • The I3TruthExtractor can now determine starting events using the event vertex and the convex hull of the detector volume (using the GCD file). The convex hull can also be expanded with extend_boundary. Some other utilities in this class use the "boundaries" list, but I think these could be redone to use the convex hull. I should note I had to override the set_gcd function since the geometry is added after instantiation.
  • Additionally, the I3TruthExtractor can now identify MC produced with LeptonInjector and get the relevant quantities.
  • Added a new I3Filter that selects on sub_event_stream.
  • New setting for IceMixNodes to enable/disable the random pulse sampling (default True).
  • Added VisibleInelasticityReconstruction task
  • Added MAELoss

@RasmusOrsoe
Copy link
Collaborator

@pweigel thank you for this contribution! The problem with pre-commit is now fixed in main. If you update the branch, the failing checks in this PR are likely to pass (see #760).

@@ -13,7 +13,7 @@
from graphnet.utilities.imports import has_icecube_package

if has_icecube_package() or TYPE_CHECKING:
from icecube import (
from icecube import ( # noqa: F401
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I needed to add this because LeptonInjector isn't used directly, but it needs to be imported for icetray to recognize the "EventProperties" frame object type.

@pweigel pweigel requested a review from RasmusOrsoe November 6, 2024 19:56
Copy link
Collaborator

@RasmusOrsoe RasmusOrsoe left a comment

Choose a reason for hiding this comment

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

@pweigel thank you for these contributions!

I added a small comment related to the duplication of the set_gcd.

@pweigel pweigel requested a review from RasmusOrsoe November 23, 2024 00:25
Copy link
Collaborator

@RasmusOrsoe RasmusOrsoe left a comment

Choose a reason for hiding this comment

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

🚀

@pweigel pweigel merged commit 4898fb4 into graphnet-team:main Nov 28, 2024
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