ranking_HM#
Back to API tree index
Purpose#
Candidate aggregation, reweighting, and ranking logic.
Module summary#
No module-level description available.
Function |
Summary |
|---|---|
No docstring summary available. |
|
Populates events in lists of pure background, zero-lag candidates, LSC events, and injected events |
|
No docstring summary available. |
|
No docstring summary available. |
|
Our injection codes populate bg_fg_max, but not bg_fg_by_subbank. We also want to save indices into bg_fg_by_subbank in bg_fg_max to avoid duplication in memory, but old codes might not have saved it in this format. This function fixes both issues. Run this before scoring, and re-score after. |
|
No docstring summary available. |
|
Populates a single list in bg_fg_max |
|
|
|
No docstring summary available. |
|
We want to calculate the non-Gaussian correction to the ranking statistic (see arXiv: 2405.17400). We therefore want to compare the empirical histogram of the SNR^2 to that expected from the Gaussian noise hypothesis (see Fig.3 of the paper). The empirical histogram is unfortunately also affected by downsampling at the low SNR^2 end due to using HM marginalized statistic based threshold in the matched_filtering stage (instead of using rho_incoherent^2 as the threshold). To remedy this, we do a quick and rough calculation of the downsampling correction. and fit it by a parabolic function to avoid noise at the high SNR^2 end. The fit is then used to correct the empirical histogram or rank function. |
|
TODO_Jay: We only need the sensitivity (where?) and not ts_out, rezs, imzs |
|
Returns information useful for maximize_over_groups |
|
Note that Seth vetoed the triggers before the bank assignment |
|
Convenience function to use saved options to maximize_over_banks |
|
Finds the amount to shift the detectors’ data streams by |
|
Define a parabolic function to fit downsampling corrections |
|
No docstring summary available. |
|
Print the top candidates from the rank_objs |
|
Edits input structures in place via aliasing and returns scores_bg_by_subbank |
|
No docstring summary available. |
|
Top candidates in the cands_preveto_max list which are subthreshold (i.e. have SNR below min_veto_chi2) are passed through all the veto tests again |