coincidence_HM.collect_background_candidates#
Back to Module page
Summary#
Function to collect background candidates (including real events)
Signature#
def collect_background_candidates(clist1, clist2, time_shift_tol, score_reduction_max, threshold_chi2, c0_pos, restricted_times = None, max_time_slide_shift = None, minimal_time_slide_jump = None, max_zero_lag_delay = None, origin = 0, score_func = utils.incoherent_score, **kwargs)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
Processedclist 1 |
||
|
Processedclist 2 |
||
|
Width (s) of buckets to collect triggers into, the \`friends” of a trigger with the same calpha live within the same bucket |
||
|
Absolute reduction in SNR^2 from the peak value in each bucket to retain (we also have a hardcoded relative reduction) |
||
|
Threshold in sum(SNR^2) above which we consider triggers for the background list (or signal) |
||
|
Index of c0 in the processedclists |
||
|
None |
If needed, list of times to restrict analysis to save time during injection campaign |
|
|
None |
Max delay allowed for background triggers |
|
|
None |
Jumps in timeslides |
|
|
None |
Maximum delay between detectors within the same timeslide. If not given, it defaults to time_shift_tol |
|
|
0 |
Origin for splitting the times relative to |
|
|
utils.incoherent_score |
Function that accepts coincident trigger(s) and returns score(s) |
|
|
Dictionary with extra parameters for score_func |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
n_candidate x 2 x len(Processedclist[0]) array with candidates |
Docstring#
Function to collect background candidates (including real events)
:param clist1: Processedclist 1
:param clist2: Processedclist 2
:param time_shift_tol:
Width (s) of buckets to collect triggers into, the `friends" of a
trigger with the same calpha live within the same bucket
:param score_reduction_max:
Absolute reduction in SNR^2 from the peak value in each bucket to
retain (we also have a hardcoded relative reduction)
:param threshold_chi2:
Threshold in sum(SNR^2) above which we consider triggers for the
background list (or signal)
:param c0_pos: Index of c0 in the processedclists
:param restricted_times:
If needed, list of times to restrict analysis to save time during
injection campaign
:param max_time_slide_shift: Max delay allowed for background triggers
:param minimal_time_slide_jump: Jumps in timeslides
:param max_zero_lag_delay:
Maximum delay between detectors within the same timeslide.
If not given, it defaults to time_shift_tol
:param origin: Origin for splitting the times relative to
:param score_func:
Function that accepts coincident trigger(s) and returns score(s)
:param kwargs: Dictionary with extra parameters for score_func
:return: n_candidate x 2 x len(Processedclist[0]) array with candidates