Skip to content
Snippets Groups Projects
Commit bb02d6c1 authored by chad.hanna's avatar chad.hanna
Browse files

gstlal_inspiral, far, lloidparts: switch to network snr based clustering rather than a cut

parent a4b58016
No related branches found
No related tags found
No related merge requests found
Pipeline #45706 passed
......@@ -834,7 +834,7 @@ for output_file_number, (svd_bank_url_dict, output_url, ranking_stat_output_url,
sngls_snr_threshold = options.singles_threshold,
tag = options.job_tag,
kafka_server = options.output_kafka_server,
cluster = options.data_source in ("lvshm", "framexmit"),# we cluster when running online within thinca.
cluster = True,#options.data_source in ("lvshm", "framexmit"),# If uncommented, we only cluster when running online
verbose = options.verbose
)
if options.verbose:
......
......@@ -129,7 +129,8 @@ class RankingStat(snglcoinc.LnLikelihoodRatioMixin):
pass
# network SNR threshold
network_snrsq_threshold = 5.0**2.
# now clustering is enabled
network_snrsq_threshold = 0
def __init__(self, template_ids = None, instruments = frozenset(("H1", "L1", "V1")), population_model_file = None, min_instruments = 1, delta_t = 0.005, horizon_factors = None):
self.numerator = inspiral_lr.LnSignalDensity(template_ids = template_ids, instruments = instruments, delta_t = delta_t, population_model_file = population_model_file, min_instruments = min_instruments, horizon_factors = horizon_factors)
......
......@@ -691,10 +691,11 @@ def mkLLOIDmulti(pipeline, detectors, banks, psd, psd_fft_length = 32, ht_gate_t
if chisq_type == 'autochisq':
# FIXME don't hardcode
# peak finding window (n) in samples is 1 second at max rate, ie max(rates)
nsamps_window = max(max(bank.get_rates()) / 4, 256) # FIXME stupid hack
if instrument == 'H1' or instrument == 'L1':
head = pipeparts.mkitac(pipeline, snr, 1 * max(bank.get_rates()), bank.template_bank_filename, autocorrelation_matrix = bank.autocorrelation_bank, mask_matrix = bank.autocorrelation_mask, snr_thresh = 4, sigmasq = bank.sigmasq)
head = pipeparts.mkitac(pipeline, snr, nsamps_window, bank.template_bank_filename, autocorrelation_matrix = bank.autocorrelation_bank, mask_matrix = bank.autocorrelation_mask, snr_thresh = 4, sigmasq = bank.sigmasq)
else:
head = pipeparts.mkitac(pipeline, snr, 1 * max(bank.get_rates()), bank.template_bank_filename, autocorrelation_matrix = bank.autocorrelation_bank, mask_matrix = bank.autocorrelation_mask, snr_thresh = bank.snr_threshold, sigmasq = bank.sigmasq)
head = pipeparts.mkitac(pipeline, snr, nsamps_window, bank.template_bank_filename, autocorrelation_matrix = bank.autocorrelation_bank, mask_matrix = bank.autocorrelation_mask, snr_thresh = bank.snr_threshold, sigmasq = bank.sigmasq)
if verbose:
head = pipeparts.mkprogressreport(pipeline, head, "progress_xml_%s" % suffix)
triggersrcs[instrument].add(head)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment