Add list of all S events within a window to a g event
Uses pre-determined time window settings to create a list of all super events within the time window of a g event. In most cases this will just return the s event associated with the g event.
Edit:
The new entry is part of the event packet that gets included in a g-event and external event's REST response and igwn-
/lvalert
.
The entry is a list of superevent_id
s of existing superevents with in a prescribed window of the event gpstime
. A sample LVAlert is shown below. Note that the presence of more than one superevent is a byproduct of having an exaggeratedly large window for testing purposes:
{'uid': 'G26833',
'alert_type': 'log',
'data': {'N': 29,
'comment': '<p>test</p>',
'created': '2021-12-03 14:58:06 UTC',
'issuer': 'alexander.pace@LIGO.ORG',
'filename': '',
'file_version': None,
'tag_names': [],
'self': 'https://gracedb-dev2.ligo.org/api/events/G26833/log/29',
'tags': 'https://gracedb-dev2.ligo.org/api/events/G26833/log/29/tag/',
'file': None},
'object': {'submitter': 'duncan.meacher@LIGO.ORG',
'created': '2021-04-30 02:52:57 UTC',
'group': 'CBC',
'graceid': 'G26833',
'pipeline': 'gstlal',
'gpstime': 1303768387.023946,
'instruments': 'H1,L1',
'nevents': 2,
'offline': False,
'search': 'AllSky',
'far': 1.015631092756212e-06,
'far_is_upper_limit': False,
'likelihood': 7.102756279364618,
'labels': ['SKYMAP_READY', 'PASTRO_READY'],
'extra_attributes': {'CoincInspiral': {'ifos': 'H1,L1',
'end_time': 1303768387,
'end_time_ns': 23945847,
'mass': 33.25822162628174,
'mchirp': 8.482876777648926,
'minimum_duration': 10.69916749000549,
'snr': 8.132830463379912,
'false_alarm_rate': 1.0,
'combined_far': 1.015631092756212e-06},
'SingleInspiral': [{'spin2x': 0.0,
'Gamma3': 0.0,
'snr': 4.4854383,
'event_duration': 0.0,
'tau3': 2.0797865,
'mchirp': 8.4828768,
'tau0': 13.399828,
'psi0': 0.0,
'alpha6': 0.0,
'alpha4': 0.0,
'Gamma8': 0.0,
'spin2z': -0.7718026,
'ttotal': 0.0,
'cont_chisq_dof': 0,
'Gamma9': 0.0,
'Gamma4': 0.0,
'mass1': 29.398598,
'cont_chisq': 0.0,
'tau4': 0.0,
'Gamma2': 0.0,
'alpha1': 0.0,
'chi': 0.0,
'Gamma6': 0.0,
'ifo': 'H1',
'amplitude': 0.0,
'tau5': 0.0,
'alpha5': 0.0,
'mtotal': 33.258221,
'bank_chisq': 4.4854383,
'end_time_gmst': 46546.36006766932,
'end_time_ns': 296526746,
'Gamma0': 8754102.0,
'impulse_time_ns': 0,
'spin1y': 0.0,
'alpha2': 0.0,
'spin1x': 0.0,
'channel': 'GDS-CALIB_STRAIN_CLEAN',
'Gamma5': 0.0,
'chisq_dof': 1,
'bank_chisq_dof': 0,
'tau2': 0.0,
'Gamma7': 0.0,
'psi3': 0.0,
'alpha3': 0.0,
'beta': 0.0,
'f_final': 1024.0,
'sigmasq': 94135947.51864928,
'spin1z': -0.023584178,
'coa_phase': 1.0123366,
'spin2y': 0.0,
'end_time': 1269006850,
'template_duration': 16.54621628092527,
'chisq': 0.84257615,
'search': '',
'impulse_time': 0,
'kappa': 0.0,
'mass2': 3.8596239,
'Gamma1': 682.0,
'alpha': 0.0,
'eta': 0.10258257,
'rsqveto_duration': 0.0},
{'spin2x': 0.0,
'Gamma3': 0.0,
'snr': 6.7840824,
'event_duration': 0.0,
'tau3': 2.0797865,
'mchirp': 8.4828768,
'tau0': 13.399828,
'psi0': 0.0,
'alpha6': 0.0,
'alpha4': 0.0,
'Gamma8': 0.0,
'spin2z': -0.7718026,
'ttotal': 0.0,
'cont_chisq_dof': 0,
'Gamma9': 0.0,
'Gamma4': 0.0,
'mass1': 29.398598,
'cont_chisq': 0.0,
'tau4': 0.0,
'Gamma2': 0.0,
'alpha1': 0.0,
'chi': 0.0,
'Gamma6': 0.0,
'ifo': 'L1',
'amplitude': 0.0,
'tau5': 0.0,
'alpha5': 0.0,
'mtotal': 33.258221,
'bank_chisq': 6.7840824,
'end_time_gmst': 46546.36006798331,
'end_time_ns': 300832569,
'Gamma0': 8754102.0,
'impulse_time_ns': 0,
'spin1y': 0.0,
'alpha2': 0.0,
'spin1x': 0.0,
'channel': 'GDS-CALIB_STRAIN_CLEAN',
'Gamma5': 0.0,
'chisq_dof': 1,
'bank_chisq_dof': 0,
'tau2': 0.0,
'Gamma7': 0.0,
'psi3': 0.0,
'alpha3': 0.0,
'beta': 0.0,
'f_final': 1024.0,
'sigmasq': 147851034.091153,
'spin1z': -0.023584178,
'coa_phase': -2.6118183,
'spin2y': 0.0,
'end_time': 1269006850,
'template_duration': 16.54621628092527,
'chisq': 0.80979407,
'search': '',
'impulse_time': 0,
'kappa': 0.0,
'mass2': 3.8596239,
'Gamma1': 682.0,
'alpha': 0.0,
'eta': 0.10258257,
'rsqveto_duration': 0.0}]},
'superevent': 'S210429ev',
'superevent_neighbours': ['S210429ev',
'S210429eu',
'S210429et',
'S210429es',
'S210429er',
'S210429eq',
'S210429ep',
'S210429eo',
'S210429en'],
'links': {'neighbors': 'https://gracedb-dev2.ligo.org/api/events/G26833/neighbors/',
'log': 'https://gracedb-dev2.ligo.org/api/events/G26833/log/',
'emobservations': 'https://gracedb-dev2.ligo.org/api/events/G26833/emobservation/',
'files': 'https://gracedb-dev2.ligo.org/api/events/G26833/files/',
'labels': 'https://gracedb-dev2.ligo.org/api/events/G26833/labels/',
'self': 'https://gracedb-dev2.ligo.org/api/events/G26833',
'tags': 'https://gracedb-dev2.ligo.org/api/events/G26833/tag/'}}}