Skip to content

Conversation

@lihaoahil
Copy link
Contributor

A pre-sorting loop over all combos is added to give an sequence of <ComboIndex, chiSq> pairs with ascending order of ChiSq values, so that later when loop over all combos with certain selection criteria, the first combo survived and filled into the histogram is automatically the combo with the best chiSq. And if the uniqueness tracking on beam photon candidates is used, the combinatorics shall be dealt with in what we called the "hybrid" method (https://halldweb.jlab.org/doc-private/DocDB/ShowDocument?docid=6577).

Copy link
Contributor

@jrstevenjlab jrstevenjlab left a comment

Choose a reason for hiding this comment

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

Nice implementation of "hybrid" subtraction of accidental beam photons by sorting combinations for each beam photon by their KinFit chi^2. No change to DSelector library, but provides example code in MakeDSelector template for users to implement in their existing and new DSelectors with minimal changes.

@jrstevenjlab jrstevenjlab merged commit 994de9a into master Aug 2, 2024
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