Skip to content

Remove nearest neighbor hack - #173

Open
parshadkp wants to merge 12 commits into
cositools:develop/emfrom
parshadkp:NN_strip_fix
Open

Remove nearest neighbor hack#173
parshadkp wants to merge 12 commits into
cositools:develop/emfrom
parshadkp:NN_strip_fix

Conversation

@parshadkp

Copy link
Copy Markdown

This will remove the nearest neighbor hack that was introduced a while ago to calculate the correct dead time in the strip trigger module. The change is simple but I will make this "ready to review" once PR #165 is merged. This will also close Issue #93.

@parshadkp
parshadkp requested a review from fhagemann June 29, 2026 19:48
@parshadkp parshadkp added the DEE Development related to the detector effects engine label Jun 29, 2026
@fhagemann

Copy link
Copy Markdown

This might probably also need the implementation of strip thresholds + some nearest neighbor logic on top of #165, but I can take care of that once #165 is approved.

@parshadkp parshadkp linked an issue Jun 29, 2026 that may be closed by this pull request
@fhagemann

Copy link
Copy Markdown

Now that #165 is merged, we should also tackle this.

@parshadkp
parshadkp marked this pull request as ready for review August 11, 2026 16:47
@fhagemann

Copy link
Copy Markdown

You might want to check if this PR still gives reasonable results with the changes in #190 ;)
If not, let me know, then this might be a bug in #190.

@ckierans ckierans left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good, Parshad. I'm fine with you removing the CountRate function, since it seems like something that doesn't quite belong here as a diagnostic, but I just wanted to check your motivation for removing it.

bool ProcessStripHits(MReadOutAssembly* Event);

//! Helper function for getting count rate (including nearest neighbor)
bool CountRate(vector<int> ASICChannels, vector<double> CountTime);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What's the motivation for removing this function?

ASICChannelsSet.insert(ID);
ASICChannelsSet.insert(ID + 1);
}
ASICChannelsSet.insert(ID);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

That's much easier :)

@cositools cositools deleted a comment from codecov-commenter Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DEE Development related to the detector effects engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove nearest neighbor hack

3 participants