From c9675bc77df41ece4f75eaf9de790f68e7e8a78b Mon Sep 17 00:00:00 2001 From: splitPoleDAQ Date: Thu, 11 Jan 2024 18:05:18 -0500 Subject: [PATCH] UI improvment for eventbuilder --- Aux/EventBuilder.cpp | 2 +- MultiBuilder.cpp | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Aux/EventBuilder.cpp b/Aux/EventBuilder.cpp index 8289b07..41e4b7a 100644 --- a/Aux/EventBuilder.cpp +++ b/Aux/EventBuilder.cpp @@ -68,7 +68,7 @@ int main(int argc, char **argv) { printf(" Number of Files : %d \n", nFile); for( int i = 0; i < nFile; i++) printf("%2d | %s \n", i, inFileName[i].Data()); printf("=====================================\n"); - printf(" Time Window = %u \n", timeWindow); + printf(" Time Window = %u ns = %.1f us\n", timeWindow, timeWindow/1000.); printf(" Buffer size = %.0f event/channel\n", MaxNData * bufferSize); printf("===================================== input files:\n"); printf("Scanning files.....\n"); diff --git a/MultiBuilder.cpp b/MultiBuilder.cpp index 41375ff..7834c12 100644 --- a/MultiBuilder.cpp +++ b/MultiBuilder.cpp @@ -286,10 +286,12 @@ void MultiBuilder::BuildEvents(bool isFinal, bool skipTrace, bool verbose){ // //if there is a time jump, say, bigger than TimeJump. break if( earlistTime - lastEventTime > timeJump ) { - printf("%6lu, %16llu\n", eventIndex, earlistTime); - printf("%5s - %16llu \n", "", lastEventTime); - printf("%5s > %16llu \n", "", timeJump); - printf("!!!!!!!! Time Jump detected stop event building. stop event buinding and get more data.\n"); + if( verbose ){ + printf("%6lu, %16llu\n", eventIndex, earlistTime); + printf("%5s - %16llu \n", "", lastEventTime); + printf("%5s > %16llu \n", "", timeJump); + printf("!!!!!!!! Time Jump detected stop event building. stop event buinding and get more data.\n"); + } return; }