change the condition for time window from < to <=

This commit is contained in:
Ryan Tang 2022-02-10 16:52:00 -05:00
parent c8d6946528
commit ff5d6c6ad7

View File

@ -430,7 +430,7 @@ int main(int argc, char **argv) {
}else{ }else{
if( subevents[min_id][iptr[min_id]].timestamp - fillevents[0].timestamp < eventWindow ) { if( subevents[min_id][iptr[min_id]].timestamp - fillevents[0].timestamp <= eventWindow ) {
saveBuffer(nFill, min_id); saveBuffer(nFill, min_id);
if( fillevents[nFill].detID < 100 ) FillFlag = true; if( fillevents[nFill].detID < 100 ) FillFlag = true;