Skip to content

Conversation

@npallat
Copy link
Contributor

@npallat npallat commented Sep 22, 2025

Description

This includes updates to trigger code to include trigger emulation. Specifically this includes a new LArService that is called in both data and Monte Carlo analysis modules. The LArService include two functions originally from the data analyzer module (ConstructMonPulse and ConstructBinary response) and puts them in this general step that can be applied to both data and Monte Carlo. The functions have also been modified to work with data and Monte Carlo separately where needed. The data analyzer module now simply calls this LArService and the output matches the previous version. The Monte Carlo analyzer module calls this LArService too and now has an interface (in the analyzer module) that slices up the waveforms based on the triggers and consistent with the shorter 10us format of the data waveforms. These new triggered waveforms, the old triggered waveforms, a boolean of if the event passed/failed the trigger, and information to reconstruct the result of ConstructMonPulse (for the purposes of debugging during validation).

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. [These changes will affect CAF data format but I am creating a separate PR for that as instructed by Linyan]
  • Does this affect the standard workflow? [No]
  • Is this PR a patch for the ongoing production? If so, separate PR must also be made for production/v10_06_00 branch! [These changes are for the validation production, not the ongoing production/v10_06_00 ]

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?
Here are a couple relevant links to presentations on this work:

Copy link
Contributor

@miquelnebot miquelnebot left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you for the amazing work

@Jjm321814
Copy link
Contributor

There is one bit of strange behavior I want to look into in data, with the large MonPulse multiplicity at the tail end of the waveforms.

This might be being caused by the default values being used, but I don't understand it yet.

@Jjm321814
Copy link
Contributor

Before adjusting the default values
image

After adjusting the default values
image

So we to set
PMTPerBoard: 15
TotalCAENBoards: 8

@Jjm321814
Copy link
Contributor

BeamRatesCalib_module fcl params are now sometimes redundant. That should not block this merge, as I am the only one who uses that module, but I should update it at some point in the future.

@nathanielerowe
Copy link
Contributor

running CI to catch anything not mentioned here that might be broken

@nathanielerowe
Copy link
Contributor

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

@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 LArSoft Succeeded on slf7 for e26: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 - 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

…ue changes, numPairsOverThreshold calculation, and saving MonPulse in the PMTDecoder
@Jjm321814
Copy link
Contributor

I am happy as soon as we verify the decoders can still run over raw data with the new changes

@Jjm321814
Copy link
Contributor

Happy with all commits now

@nathanielerowe
Copy link
Contributor

trigger build ci_ref=v10_10_02 LArSoft/lar*@LARSOFT_SUITE_v10_10_03 SBNSoftware/sbndaq_artdaq_core@v1_10_06 SBNSoftware/sbnd_data@v01_36_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 - 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 nathanielerowe merged commit 997ed95 into develop Oct 6, 2025
@linyan-w linyan-w moved this from Waiting on Reviewer 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

detsim Detector simulation trigger

Projects

Status: In tagged release

Development

Successfully merging this pull request may close these issues.

Trigger Emulation

6 participants