Skip to content

Feature/icarus bnb only #523

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 33 commits into
base: develop
Choose a base branch
from
Open

Conversation

nathanielerowe
Copy link
Contributor

Fixes #479, restructures code so SBND BNB modules and ICARUS BNB modules can share some code. Open to feedback on the best way to handle this, since I did not write the original BNBRetriever module.

@nathanielerowe nathanielerowe added maintenance bugfix Addresses one or more bugs labels Mar 19, 2025
@nathanielerowe nathanielerowe marked this pull request as ready for review April 3, 2025 15:25
@nathanielerowe
Copy link
Contributor Author

Might need an additional PR to account for changes in the icarus pot label, still in the process of figuring out where that would be stored.

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.

I wonder the sense of leaving modules that are now plainly experiment-specific in sbncode.

Comments on POTTools.h:

  • Thank you for extracting the common code, it's very useful and I hope will save time in the future.
  • Could you move the description of the functions from the comments in the implementation file to the header in Doxygen format?
  • I feel these functions may be better enclosed in their own namespace. In particular, a class named TriggerInfo_t can contain many different things, and I am not sure if we want to commit the sbn::TriggerInfo_t name to this one (I can count at least three TriggerInfo_t in the ICARUS code stack, two are class members and one is icarus::trigger::details::TriggerInfo_t); proposal: sbn::pot (module files are allowed to using namespace sbn::pot;, although I still recommend against it).

TimePadding: 0.0333 #unit seconds, Booster Rep Rate is 15 Hz, so the closest spill could be 66ms away
BESOffset: 0.036 #unit seconds, we expect the BES to be about 35 ms from $1D. Need to adjust search range accordingly.
Copy link
Member

Choose a reason for hiding this comment

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

✔️ From some tests it appears to be about 35.746 ms in ICARUS.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is set now!

Copy link
Member

Choose a reason for hiding this comment

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

(now you are going to kill me...)
My intention was to confirm the value that you inserted. On one side, 1 ms does not matter since when we match to the database we have elements 66 ms apart. On the other, if you put a number with four significant digits, that begs a reference, possibly something more reliable than "Gianluca wrote so in a chat"; I have not presented that value publicly yet, and I don't know when I will (and if then I will be told I did it all wrong).
In fact, also the previous 0.036 begs for a reference, just less loudly.
If nothing better, you can cite SBN DocDB 40669. Which does not exist, but I promise it will at a certain point in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No worries, references are always better to have than not imo, so I will put that link in when I get a chance.

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.

I have left one more comment that the author can take action upon, but I consider the PR approved.

@kjplows kjplows moved this from PR in progress to Partially reviewed in SBN software development Apr 10, 2025
@kjplows
Copy link
Contributor

kjplows commented Apr 25, 2025

trigger build

@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 ICARUS Warning at phase ci_tests ICARUS on slf7 for e26:prof -- details available through the CI dashboard

🚨 For more details about the warning phase, check the ci_tests 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 -- 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


process_name: BNBInfoGen
process_name: ICARUSBNBInfoGen
Copy link
Member

Choose a reason for hiding this comment

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

Alternative proposal following the suggestion from SBNSoftware/icaruscode#823:

Suggested change
process_name: ICARUSBNBInfoGen
process_name: BNBInfoGen

@@ -28,17 +28,17 @@ source: {

physics: {
producers: {
bnbinfo: @local::bnbspillinfo
icarusbnbinfo: @local::icarusbnbspillinfo
Copy link
Member

Choose a reason for hiding this comment

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

Alternative proposal following the suggestion from SBNSoftware/icaruscode#823:

Suggested change
icarusbnbinfo: @local::icarusbnbspillinfo
bnbinfo: @local::icarusbnbspillinfo

}

simulate: [bnbinfo ]
simulate: [icarusbnbinfo ]
Copy link
Member

Choose a reason for hiding this comment

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

Alternative proposal following the suggestion from SBNSoftware/icaruscode#823:

Suggested change
simulate: [icarusbnbinfo ]
simulate: [ bnbinfo ]

stream1: [ out1 ]
}

outputs: {
out1: {
module_type: RootOutput
fileName: "%ifb_%tc_bnbinfo.root"
fileName: "%ifb_%tc_icarusbnbinfo.root"
Copy link
Member

Choose a reason for hiding this comment

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

Alternative proposal following the suggestion from SBNSoftware/icaruscode#823:

Suggested change
fileName: "%ifb_%tc_icarusbnbinfo.root"
fileName: "%ifb_%tc_bnbinfo.root"

(the change in this PR could actually affecting the workflow by changing the output file names)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Addresses one or more bugs maintenance
Projects
Status: Partially reviewed
Development

Successfully merging this pull request may close these issues.

BNBRetriever Cache Bug
5 participants