Skip to content

Fix pfp ordering when using SCE products#832

Merged
nathanielerowe merged 2 commits intodevelopfrom
bugfix/acastill_fixlightpropSCE
Oct 6, 2025
Merged

Fix pfp ordering when using SCE products#832
nathanielerowe merged 2 commits intodevelopfrom
bugfix/acastill_fixlightpropSCE

Conversation

@asanchezcastillo
Copy link
Copy Markdown
Contributor

@asanchezcastillo asanchezcastillo commented Sep 26, 2025

This PR fixes a bug when using SCE products for running light propagation correction module.
When using pfp_to_metadata.at(pfp->Self()) with SCE products the wrong metadata vector is retrieved. Instead, the object has to be retrieved through pfp_to_metadata.at(pfp.key()).

Description

Please provide a detailed description of the changes this pull request introduces.

$${\color{red}!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!}$$

$${\color{red}\bf{\textrm{IMPORTANT UPDATE June 22nd 2025:}}}$$ If you are making a PR which is intended as a patch for the CURRENT production (which started in Spring 2025), you must make two PRs: one for develop and one for the production/v10_06_00 branch.

$${\color{red}!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!}$$

Checklist

  • Added at least 1 label from available labels.
  • Assigned at least 1 reviewer under Reviewers,
  • Assigned all contributers including yourself under Assignees
  • Linked any relevant issues under Developement
  • Does this PR affect CAF data format? If so, please assign a CAF maintainer (PetrilloAtWork or JosiePaton) as additional reviewer.
  • Does this affect the standard workflow?
  • Is this PR a patch for the ongoing production? If so, separate PR must also be made for production/v10_06_00 branch!

Relevant PR links (optional)

Does this PR require merging another PR in a different repository (such as sbnanobj/sbnobj etc.)?

Link(s) to docdb describing changes (optional)

Is there a docdb describing the issue this solves or the feature added?

@linyan-w linyan-w moved this to Wait for validation II in SBND 2025 Fall Production Sep 26, 2025
@linyan-w linyan-w moved this from Wait for validation II to Reviewer Approved in SBND 2025 Fall Production Sep 29, 2025
@nathanielerowe
Copy link
Copy Markdown
Contributor

Is there any documentation about the metadata/these functions? Just curious of other unrelated instances where this could be wrong.

@nathanielerowe
Copy link
Copy Markdown
Contributor

trigger build ci_ref=v10_10_03_01 LArSoft/lar*@LARSOFT_SUITE_v10_10_03 SBNSoftware/sbndaq_artdaq_core@v1_10_06 SBNSoftware/sbnd_data@v01_36_00

@asanchezcastillo
Copy link
Copy Markdown
Contributor Author

@nathanielerowe I have not seen any documentation related to this, but I believe the correct thing to do is to use .key(). The Self() method is something related to the internal that pandora makes and hence, is not necessarily related to the ordering of the art association.

@FNALbuild
Copy link
Copy Markdown
Collaborator

✔️ CI build for LArSoft Succeeded on slf7 for c14:prof -- details available through the CI dashboard

@FNALbuild
Copy link
Copy Markdown
Collaborator

✔️ CI build for LArSoft Succeeded on slf7 for e26:prof -- details available through the CI dashboard

@FNALbuild
Copy link
Copy Markdown
Collaborator

❌ CI build for SBND Failed at phase build SBND on slf7 for c14:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build SBND phase logs

parent CI build details are available through the CI dashboard

@FNALbuild
Copy link
Copy Markdown
Collaborator

⚠️ CI build for SBND Warning at phase ci_tests SBND on slf7 for e26:prof - ignored warnings for build -- details available through the CI dashboard

🚨 For more details about the warning phase, check the ci_tests SBND phase logs

parent CI build details are available through the CI dashboard

@nathanielerowe
Copy link
Copy Markdown
Contributor

Approved

@nathanielerowe nathanielerowe merged commit 05cbbd7 into develop Oct 6, 2025
@linyan-w linyan-w moved this from Reviewer Approved to In tagged release in SBND 2025 Fall Production Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: In tagged release

Development

Successfully merging this pull request may close these issues.

4 participants