Skip to content

Gen2 Production PR: Update to SBND LightPropagation Module - #967

Open
VCLanNguyen wants to merge 1 commit into
production/sbnd-gen2from
bugfix_gen2_mctiming_merge_correctedopflash
Open

VCLanNguyen wants to merge 1 commit into
production/sbnd-gen2from
bugfix_gen2_mctiming_merge_correctedopflash

Conversation

@VCLanNguyen

@VCLanNguyen VCLanNguyen commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

  1. Update cafmakerjob_sbnd_data_sce.fcl to pick up the correct SCE label
  2. Reorder reco2_data.fcl to run FrameShift module before LightPropagation module
  3. Update LightPropogation to pick FrameShift products

$${\color{blue}!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!}$$

$${\color{blue}\bf{\textrm{IMPORTANT UPDATE Feb 2nd 2026:}}}$$ If you are making a PR which is intended as a patch for the CURRENT production for gen 2 SBND analyses, you must make two PRs: one for develop and one for the production/sbnd-gen2 branch.

$${\color{red}\bf{\textrm{RESPONSE:}}}$$ This PR is unique to gen2 production. For develop, the FrameShift module is run at decoder level and every downstream products inherit it. For more information, see docdb#45982

$${\color{blue}!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!}$$

Relevant PR links (optional)

sbndcode: #967
sbncode: SBNSoftware/sbncode#675
sbnanaobj: SBNSoftware/sbnanaobj#199

Link(s) to docdb describing changes (optional)

See slide 27-29 on docdb#49588

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 tjones79) 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!

…nment

cafmakerjob_sbnd_data_sce.fcl was not remapping CorrectedOpFlashLabel to
its SCE variant, so CAFMaker's association lookup used a label nothing
produced ("lightpropagationcorrection" instead of
"lightpropagationcorrectionSCE"), leaving correctedOpFlash.* at the
-9999. sentinel in data.

LightPropagationCorrection_module now reads the sbnd::timing::FrameShiftInfo
product (produced by FrameShift_module, reordered earlier in
reco2_data.fcl's physics.reco2 path) instead of computing its own shift
from raw SPECTDC RWM/trigger hits. This picks up the RWM-to-gate alignment
FrameShift_module already applies (including the ~1738ns BNBLight mean)
and is stream-agnostic (BNB/Offbeam/Xmuon) since FrameApplyAtCaf is
resolved per-stream upstream. The FrameShiftInfo read is now done once per
event before the slice loop rather than once per slice.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@VCLanNguyen
VCLanNguyen marked this pull request as draft September 30, 2026 18:54
@VCLanNguyen VCLanNguyen changed the title Fix data-side CorrectedOpFlash timing: SCE label and RWM-to-gate alig… Gen2 Production PR: 1. Manual Fix for GENIE timing bug in CAFMaker, 2. Extend existing-data shift in CAFMaker, 3. Update to SBND LightPropagation Module Sep 30, 2026
@VCLanNguyen VCLanNguyen changed the title Gen2 Production PR: 1. Manual Fix for GENIE timing bug in CAFMaker, 2. Extend existing-data shift in CAFMaker, 3. Update to SBND LightPropagation Module Gen2 Production PR: Update to SBND LightPropagation Module Sep 30, 2026
@VCLanNguyen VCLanNguyen self-assigned this Sep 30, 2026
@VCLanNguyen VCLanNguyen added pds Photon Detection System data features for data processing labels Sep 30, 2026
@VCLanNguyen
VCLanNguyen marked this pull request as ready for review October 1, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data features for data processing pds Photon Detection System

Projects

Status: Waiting on Reviewer

Development

Successfully merging this pull request may close these issues.

1 participant