Skip to content

Updates to Enable ICARUS WireMod Closure - #660

Merged
hgreenlee merged 6 commits into
release/SBN2025Afrom
feature/fpoppi_wiremod_diagnostic_gputnam
Jul 10, 2026
Merged

Updates to Enable ICARUS WireMod Closure#660
hgreenlee merged 6 commits into
release/SBN2025Afrom
feature/fpoppi_wiremod_diagnostic_gputnam

Conversation

@gputnam

Copy link
Copy Markdown
Contributor

No description provided.

francescopoppiand 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

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

@francescopoppifrancescopoppi self-assigned this Jul 10, 2026
@francescopoppifrancescopoppi added the enhancement New feature or request label Jul 10, 2026
@hgreenlee
hgreenlee merged commit ad8f222 into release/SBN2025AJul 10, 2026
1 check passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancementNew feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@gputnam@francescopoppi@hgreenlee