gwdetchar/hveto

In aux channel plots show which triggers are coincident with main channel

Closed this issue · 1 comments

Matlab hveto and Python hveto have adopted a different convention in which triggers are being called and colored as "used" in the aux channel plots.

  • In Matlab hveto we color a trigger red and call it used if it meets the SNR threshold and frequency bands used in that round AND is occurs within +/-Twin/2 the time a main channel trigger (is coincident). This is the definition of “used” (and used percentage is the fraction of all aux triggers above the threshold and in the frequency band that are coincident).
  • However Python hveto currently colors the triggers red if they meet the SNR threshold and frequency criteria only. I.e. if they were used to construct veto segments whether or not an individual trigger actually vetoes something. So the colors just show where the thresholds are set.

I request that we make the color indicate that it was both used to make a veto segment and was in time coincidence with a main channel trigger.

For example:
https://ldas-jobs.ligo-la.caltech.edu/~laura.nuttall/detchar/hveto/1158809069_1158849063/plots/L1-HVETO_AUX_SNR_TIME_ROUND_9-1158809069-39994.png
In the above plot 438 triggers are shown in red, but the Use [%] is 22/438 for that round. I propose to make only the 22 be called "used" and given the color.

One possible way to implement this is using three colors:
black = all trigs for this aux channel [“all"]
blue = all trigs for this channel that match the snr, freq selections for this round [“pass thresholds"]
orange = the trigs for this channel that were actually found to be in time coincidence with a trigger in the primary channel [“used"]

As a potentially quicker/easier to implement solution I would be happy to simply switch the red dot color for the auxiliary channel plots to red for the case "the trigs for this channel that were actually found to be in time coincidence with a trigger in the primary channel [“used"]."