Skip to content

Updates to Enable ICARUS WireMod Closure#660

Open
gputnam wants to merge 6 commits into
release/SBN2025Afrom
feature/fpoppi_wiremod_diagnostic_gputnam
Open

Updates to Enable ICARUS WireMod Closure#660
gputnam wants to merge 6 commits into
release/SBN2025Afrom
feature/fpoppi_wiremod_diagnostic_gputnam

Conversation

@gputnam

@gputnam gputnam commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

francescopoppi and others added 6 commits June 30, 2026 18:40
…age of SignalROIF, rounding of floats, fixed scaling factors to 1 at al. )
…ff when using additive modification. Second I modified the interpolation that was stopping at bin center for bins at the borders, in this case we clamp the interpolation to the outer bin edge. Third I introduced a flag which allows WireMod to either use interpolation or pick up the scaling factor from the closest bin center.
} else if (isnan(q_mod)) {
if (isnan(q_mod)) {
if (verbose)
std::cout << "WARNING: obtained q_mod = NaN... setting scale to 0" << std::endl;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

do we want a guard that sets scaling factors to 1.0 instead of 0? Probably we do

@francescopoppi francescopoppi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

" I think there is the need to add a guard to nan scaling factors with fallback scaling factors to 1. The finger points to Francesco to do it. Ok, I am on it, early US morning I will fix it. "
This was my old comment, but after going through the rabbit hole, q_nan is an implicit fallback to scaling factors of one, simply it does not scale the rois.
Besides this, I really would like to wait Thomas or SBND review to make sure we are not butchering their WireMod implementation. We should not, as the biggest changes come from additional parameters which are defaulted to current SBNcode implementation and are updated only through icarus fcls.

@francescopoppi francescopoppi self-assigned this Jul 10, 2026
@francescopoppi francescopoppi added the enhancement New feature or request label Jul 10, 2026
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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants