Commit 2b997d18 authored by Ian Harry's avatar Ian Harry
Browse files

Stop clustering routine from clustering across time slides

Original: f87eef6339dc21d54e63708a4e0f6309070445f2
parent d687c3c7
......@@ -1366,21 +1366,24 @@ UINT4 coh_PTF_accept_trig_check(
{
time2.gpsSeconds=currEvent->end_time.gpsSeconds;
time2.gpsNanoSeconds=currEvent->end_time.gpsNanoSeconds;
if (fabs(XLALGPSDiff(&time1,&time2)) < params->clusterWindow)
if (thisEvent.time_slide_id == currEvent.time_slide_id)
{
if (thisEvent.snr_dof == currEvent->snr_dof)
if (fabs(XLALGPSDiff(&time1,&time2)) < params->clusterWindow)
{
if (thisEvent.snr < currEvent->snr\
&& (thisEvent.event_id->id != currEvent->event_id->id))
if (thisEvent.snr_dof == currEvent->snr_dof)
{
if ( XLALGPSDiff(&time1,&time2) < 0 )
loudTrigBefore = 1;
else
loudTrigAfter = 1;
if (loudTrigBefore && loudTrigAfter)
if (thisEvent.snr < currEvent->snr\
&& (thisEvent.event_id->id != currEvent->event_id->id))
{
return 0;
if ( XLALGPSDiff(&time1,&time2) < 0 )
loudTrigBefore = 1;
else
loudTrigAfter = 1;
if (loudTrigBefore && loudTrigAfter)
{
return 0;
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment