Skip to content

Conversation

@asanchezcastillo
Copy link
Contributor

@asanchezcastillo asanchezcastillo commented Sep 2, 2025

Description

This PR introduces changes to the TPCPMTBarycenter flash matching algorithm to improve its performance. In particular, it makes use of the directionality of the charge/light footprints and a very naive light-calorimetry that is used along with the separation between the charge/light barycenter to build a chi2 that is used to perform charge/light matching.

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)

This PR is to be merged after:

SBNSoftware/sbncode#565
SBNSoftware/sbnanaobj#156
SBNSoftware/sbnobj#144

Link(s) to docdb describing changes (optional)

https://sbn-docdb.fnal.gov/cgi-bin/sso/RetrieveFile?docid=42327&filename=RecoMeeting_16_07.pdf&version=1
Is there a docdb describing the issue this solves or the feature added?

@nathanielerowe
Copy link
Contributor

@fjnicolas Can you take a look at this?

Copy link
Contributor

@fjnicolas fjnicolas left a comment

Choose a reason for hiding this comment

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

Thanks @asanchezcastillo ! Looks good to me

void GetPCA(std::vector<double> const& x, std::vector<double> const& y, std::vector<double> const& weight, std::vector<double>& PCA ); ///< Get the PCA
double GetSliceCharge(const std::vector<art::Ptr<recob::Hit>> &tpcHitsVec, const detinfo::DetectorPropertiesData det_prop, int tpc);
double GetFlashLight(double flash_pe, std::vector<double>& total_dir_visibility, std::vector<double>& total_ref_visibility);
void CreateOpHitList( std::vector<art::Ptr<recob::OpHit>> ophitlist, std::vector<double>& ophit_z, std::vector<double>& ophit_y, std::vector<double>& ophit_weight);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not use FlashPE_v so you do not need to load all the OpHits??

@nathanielerowe nathanielerowe moved this from Todo to Ready for CI in SBND 2025 Fall Production Sep 11, 2025
@nathanielerowe
Copy link
Contributor

trigger build ci_ref=v10_09_00 LArSoft/lar*@LARSOFT_SUITE_v10_09_00 SBNSoftware/sbncode#565 SBNSoftware/sbnalg@v10_09_00 SBNSoftware/sbnobj#144 SBNSoftware/sbnanaobj#156 SBNSoftware/sbndaq-artdaq-core@v1_10_06 SBNSoftware/sbndata@v01_07 SBNSoftware/sbndutil@v10_06_01 SBNSoftware/sbnd_data@v01_35_00

@FNALbuild
Copy link
Collaborator

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

@FNALbuild
Copy link
Collaborator

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

@FNALbuild
Copy link
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
Collaborator

⚠️ CI build for SBND Warning at phase ci_tests SBND on slf7 for e26:prof -- 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
Contributor

Approved

@nathanielerowe nathanielerowe moved this from Ready for CI to RM Approved in SBND 2025 Fall Production Sep 12, 2025
@nathanielerowe nathanielerowe merged commit f2826aa into develop Sep 16, 2025
@nathanielerowe nathanielerowe moved this from RM Approved to Wait for next release in SBND 2025 Fall Production Sep 16, 2025
@nathanielerowe nathanielerowe moved this from Wait for next release to Ready for CI in SBND 2025 Fall Production Sep 16, 2025
@nathanielerowe nathanielerowe moved this from Ready for CI to In tagged release in SBND 2025 Fall Production Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reco1/reco2 Reconstruction

Projects

Status: In tagged release

Development

Successfully merging this pull request may close these issues.

5 participants