Skip to content

Conversation

@aheggest
Copy link
Contributor

@aheggest aheggest commented Jun 3, 2025

Description

This pull request reads the special PMT Beam timing signal (RWM) into the CAFMaker which enables us to reconstruct the Beam Bunch structure seen by ICARUS PMTs.

The PMT Beam signals were originally stored in an icaruscode data product icarus::timing::PMTBeamSignal, but icaruscode PR #832 and sbnobj PR #130 together move the data product to a SBN common area, sbnobj/Common.

A std::vector<sbn::timing::PMTBeamSignal> is read into the CAFMaker and then passed to FillICARUSOpFlash if the PMTBeamSignal is valid. If running on MC, offbeam data or stage1 files without the sbn::timing::PMTBeamSignal data product, the srflash.rwmtime variable will be left to it's default value kSignalingNaN in SROpFlash.h.

Within FillICARUSOpFlash, two new helper functions defined in sbnobj/Common/PMT/Data/PMTBeamSignal.cxx are called.

  • SelectFirstOpHitByTime reads in a single OpHit and returns a startmap and risemap (holding the start and rise time of each OpHit channel).
  • getFlashBunchTime reads in the risemap and std::vector<sbn::timing::PMTBeamSignal> RWMTimes, finds the mean between the first OpHit RiseTimes on opposite walls to get the Flash Interaction time wrt the RWM time.

This PR is a companion to sbnanaobj PR #141. This PR requires icaruscode PR #832 and sbnobj PR #130 also being merged.

  • Have you added a label? (bug/enhancement/physics etc.)
  • Have you assigned at least 1 reviewer?
  • Is this PR related to an open issue / project?
  • Does this PR affect CAF data format? If so, please assign a CAF maintainer as additional reviewer.
  • Does this PR require merging another PR in a different repository (such as sbnanobj/sbnobj etc.)? If so, please link it in the description.
  • Are you submitting this PR on behalf of someone else who made the code changes? If so, please mention them in the description.

Copy link
Member

@mvicenzi mvicenzi left a comment

Choose a reason for hiding this comment

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

Generally looks good. Main comment is: we need to make sure this doesn't break if the product is missing (MC files, older data files). Have you tested this as well?

@aheggest aheggest marked this pull request as draft June 3, 2025 18:16
@aheggest aheggest moved this to PR in progress in SBN software development Jun 3, 2025
@aheggest aheggest marked this pull request as ready for review June 6, 2025 19:56
Copy link
Member

@mvicenzi mvicenzi left a comment

Choose a reason for hiding this comment

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

My comments were addressed by the recent changes, so I approve.

@kjplows kjplows moved this from PR in progress to Testing in SBN software development Jun 24, 2025
@kjplows
Copy link
Contributor

kjplows commented Jun 24, 2025

trigger build LArSoft/lar*@LARSOFT_SUITE_v10_06_00

@FNALbuild
Copy link

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

@FNALbuild
Copy link

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

@FNALbuild
Copy link

❌ 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

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

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

parent CI build details are available through the CI dashboard

@FNALbuild
Copy link

❌ CI build for SBND Failed at phase build SBND on slf7 for e26: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

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

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

parent CI build details are available through the CI dashboard

@kjplows
Copy link
Contributor

kjplows commented Jul 1, 2025

trigger build LArSoft/lar*@LARSOFT_SUITE_v10_06_00 SBNSoftware/sbnobj#130 SBNSoftware/sbnanaobj#141

@FNALbuild
Copy link

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

@FNALbuild
Copy link

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

@FNALbuild
Copy link

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

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

parent CI build details are available through the CI dashboard

@FNALbuild
Copy link

❌ 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

❌ CI build for SBND Failed at phase build SBND on slf7 for e26: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

❌ CI build for ICARUS Failed at phase ci_tests ICARUS on slf7 for e26:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the ci_tests ICARUS phase logs

parent CI build details are available through the CI dashboard

@kjplows
Copy link
Contributor

kjplows commented Aug 7, 2025

trigger build LArSoft/larsoft@LARSOFT_SUITE_v10_06_00_02 LArSoft/larwirecell@LARSOFT_SUITE_v10_06_00_02 LArSoft/lar*@LARSOFT_SUITE_v10_06_00 SBNSoftware/sbnobj#130 SBNSoftware/sbnanaobj#141

@FNALbuild
Copy link

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

@FNALbuild
Copy link

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

@FNALbuild
Copy link

❌ 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

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

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

parent CI build details are available through the CI dashboard

@FNALbuild
Copy link

⚠️ 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

@FNALbuild
Copy link

❌ CI build for ICARUS Failed at phase ci_tests ICARUS on slf7 for e26:prof - ignored warnings for build -- details available through the CI dashboard

🚨 For more details about the failed phase, check the ci_tests ICARUS phase logs

parent CI build details are available through the CI dashboard

@kjplows kjplows moved this from Testing to To merge in SBN software development Aug 9, 2025
@kjplows kjplows merged commit 8e4ab73 into develop Aug 11, 2025
@github-project-automation github-project-automation bot moved this from To merge to Done in SBN software development Aug 11, 2025
@kjplows kjplows moved this from Done to Recently done in SBN software development Aug 11, 2025
@kjplows kjplows moved this from Recently done to Done in SBN software development Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants