From 76582e2a51eb1030b8e9b3f54e244478724316a0 Mon Sep 17 00:00:00 2001 From: "Ryan@Home" Date: Wed, 25 Sep 2024 17:49:01 -0400 Subject: [PATCH] some debug lines --- Bin2Root.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Bin2Root.cpp b/Bin2Root.cpp index 68ef93f..f4415bb 100644 --- a/Bin2Root.cpp +++ b/Bin2Root.cpp @@ -16,7 +16,7 @@ inline unsigned int getTime_us(){ #include "TMacro.h" #define MAX_TRACE_LENGTH 2000 -#define MAX_MULTI 1000 +#define MAX_MULTI 500 #define NMINARG 5 #define debug 0 // for > 1 number of hit to debug @@ -92,7 +92,7 @@ int extractDigiSN(const std::string& str, int n = 1) { void SetTimeOffset(BinReader * reader, std::vector>& timeOffsetList){ int bd = reader->data.BoardID; for( size_t i = 0 ; i < timeOffsetList.size(); i++){ - if( bd == timeOffsetList[i].first) reader->data.TimeStamp += timeOffsetList[i].second; + if( bd == timeOffsetList[i].first) reader->data.TimeStamp += timeOffsetList[i].second ; } } @@ -306,6 +306,9 @@ int main(int argc, char **argv) { multi = events.size() ; if( events.size() >= MAX_MULTI ) { printf("\033[31m event %lld has size = %d > MAX_MULTI = %d \033[0m\n", evID, multi, MAX_MULTI); + // for( int k = 0 ; k < multi; k++){ + // printf("%d | %d %2d %llu | %llu , %llu , %llu\n", k, events[k].BoardID, events[k].Channel, events[k].TimeStamp, (long int)( events[k].TimeStamp - t0), t0, timeWindow); + // } multi = MAX_MULTI; } if( debug ) printf("=================================== filling data | %u \n", multi);