WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@lynnt20
Copy link
Contributor

@lynnt20 lynnt20 commented Nov 13, 2025

Quick checklist

Goes with SBNSoftware/sbncode#604.

ClassVersion has been updated.

  • Have you run git fetch and pulled the latest changes from the branch you're basing your PR against?
  • If you're adding new classes, have you added them to classes_def.xml in the relevant directory?
  • If you're updating classes, have you incremented the ClassVersion in classes_def.xml?

Description

Add SR class for software trigger objects.

@lynnt20 lynnt20 moved this to Expected for validation II in SBND 2025 Fall Production Nov 13, 2025
@lynnt20 lynnt20 moved this from Expected for validation II to Draft in SBND 2025 Fall Production Nov 13, 2025
@linyan-w linyan-w moved this from Draft to Expected for validation II in SBND 2025 Fall Production Nov 14, 2025
@lynnt20 lynnt20 marked this pull request as ready for review November 17, 2025 19:36
@lynnt20 lynnt20 requested a review from linyan-w November 17, 2025 19:39
@linyan-w linyan-w moved this from Expected for validation II to Waiting on Reviewer in SBND 2025 Fall Production Nov 18, 2025
@nathanielerowe
Copy link
Contributor

@linyan-w @PetrilloAtWork similar to SBNSoftware/sbncode#604. I will consider this approved unless otherwise stated.

Copy link

@linyan-w linyan-w 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 to me!

@nathanielerowe nathanielerowe moved this from Waiting on Reviewer to Reviewer Approved in SBND 2025 Fall Production Nov 20, 2025
@kjplows kjplows moved this to Testing in SBN software development Nov 20, 2025
@kjplows
Copy link
Contributor

kjplows commented Nov 20, 2025

trigger build LArSoft/lar*@LARSOFT_SUITE_v10_12_02 SBNSoftware/sbncode#604

@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 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

@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 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

@kjplows kjplows moved this from Testing to To merge in SBN software development Nov 21, 2025
@kjplows kjplows moved this from Reviewer Approved to RM Approved in SBND 2025 Fall Production Nov 21, 2025
@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

@kjplows kjplows merged commit 2134793 into develop Nov 21, 2025
@github-project-automation github-project-automation bot moved this from To merge to Done in SBN software development Nov 21, 2025
@kjplows kjplows moved this from Done to Recently done in SBN software development Nov 21, 2025
Copy link
Member

@PetrilloAtWork PetrilloAtWork left a comment

Choose a reason for hiding this comment

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

There are show-stoppers with the checksums.

Also, comments need to be added to the data members.

Comment on lines +8 to +11
<class name="caf::StandardRecord" ClassVersion="17">
<version ClassVersion="17" checksum="3621177915"/>
<version ClassVersion="16" checksum="3162654488"/>
<version ClassVersion="15" checksum="2636549707"/>
Copy link
Member

Choose a reason for hiding this comment

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

Please regenerate this file.
Version 15 has its hash changed, which is not correct.

Comment on lines +21 to +23
int npmts = caf::kUninitializedInt;
float flash_peaktime = caf::kSignalingNaN;
float flash_peakpe = caf::kSignalingNaN;
Copy link
Member

Choose a reason for hiding this comment

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

Place a comment explaining units and details. For example:

Suggested change
int npmts = caf::kUninitializedInt;
float flash_peaktime = caf::kSignalingNaN;
float flash_peakpe = caf::kSignalingNaN;
int npmts = caf::kUninitializedInt; ///< Number of PMT pairs above threshold at trigger time.
float flash_peaktime = caf::kSignalingNaN; ///< Peak time of the reconstructed flash associated to the trigger [us]
float flash_peakpe = caf::kSignalingNaN; ///< Peak amplitude of the reconstructed flash associated to the trigger, in photoelectron units.

I don't know if these descriptions are correct (that's why some should be there! 😄).
Exception: the time unit can be omitted if it is the standard CAF one (microseconds). However, given that sometimes trigger-related times are specified in nanoseconds, it's still worth to be explicit.

<version ClassVersion="10" checksum="4144120809"/>
</class>

<class name="caf::SRSoftwareTrigger" />
Copy link
Member

Choose a reason for hiding this comment

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

Add ClassVersion="10" and rebuild, so that ROOT generates a checksum.

Suggested change
<class name="caf::SRSoftwareTrigger" />
<class name="caf::SRSoftwareTrigger" ClassVersion="10" />

@kjplows kjplows moved this from Recently done to Urgent checks in SBN software development Nov 21, 2025
@kjplows kjplows moved this from RM Approved to Reviewer Approved in SBND 2025 Fall Production Nov 21, 2025
@kjplows kjplows moved this from Reviewer Approved to Waiting on Reviewer in SBND 2025 Fall Production Nov 21, 2025
@kjplows kjplows self-assigned this Nov 21, 2025
@kjplows
Copy link
Contributor

kjplows commented Nov 21, 2025

Thanks for catching this @PetrilloAtWork , and apologies for the overly zealous merge 😅

@kjplows
Copy link
Contributor

kjplows commented Nov 21, 2025

@lynnt20 -- please take note of these comments. I will reopen a PR identical to this one. Thanks and sorry for the confusion!

@nathanielerowe nathanielerowe moved this from Waiting on Reviewer to RM Approved in SBND 2025 Fall Production Nov 21, 2025
@kjplows kjplows moved this from Urgent checks to Recently done in SBN software development Nov 21, 2025
@nathanielerowe nathanielerowe moved this from RM Approved to In tagged release in SBND 2025 Fall Production Nov 22, 2025
@kjplows kjplows moved this from Recently done to Done in SBN software development Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done
Status: In tagged release

Development

Successfully merging this pull request may close these issues.

8 participants