Skip to content
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

Zeroing out stateful values in TA/TP Window upon their initialization. #90

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

JamesJieranShen
Copy link

Currently, TAMs/TCMs rely on calling the clear() method in the Window classes in order to prepare a zero state for the windows. This should be done by default when a new window is created, so that the clear does not need to be called upon initialization.

Current implementation causes issues at least for the Adjacency TAM, where windows are spawned in the middle of a run and never cleared before use.

@ArturSztuc ArturSztuc self-requested a review January 9, 2025 17:01
Copy link
Contributor

@ArturSztuc ArturSztuc left a comment

Choose a reason for hiding this comment

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

LGTM!
I briefly tested it offline, and haven't noticed much of a change -- but it definitely makes sense to initialise integral & time start to 0.

@ArturSztuc ArturSztuc merged commit 7b0a236 into DUNE-DAQ:develop Jan 13, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants