From a52db652dd14ead598ca2c3261f6799b937ffd0d Mon Sep 17 00:00:00 2001 From: "carina@hades" Date: Wed, 4 Sep 2024 03:29:03 -0400 Subject: [PATCH] bug fix for no event build time is not shorted across multiple files --- Bin2Root.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Bin2Root.cpp b/Bin2Root.cpp index f257c61..e00e883 100644 --- a/Bin2Root.cpp +++ b/Bin2Root.cpp @@ -181,12 +181,13 @@ int main(int argc, char **argv) { } }while( reader[i].ReadBlock() == 1 ); }else{ - events.push_back(reader[i].data); - ID[i] ++; - reader[i].ReadBlock(); + events.push_back(reader[g0].data); + ID[g0] ++; + reader[g0].ReadBlock(); + break; } - if( timeWindow < 0) break; + //if( timeWindow < 0) break; } if( events.size() > 1 ){ @@ -274,4 +275,4 @@ int main(int argc, char **argv) { return 0; -} \ No newline at end of file +}