From e9e5ae3023a84e7667deaa56121a14d026d848fc Mon Sep 17 00:00:00 2001 From: "Ryan@SOLARIS_testStation" Date: Thu, 13 Jun 2024 14:55:51 -0400 Subject: [PATCH] ClassData::ClearData reset the outFileIndex = 0 --- Aux/EventBuilder.cpp | 2 +- ClassData.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Aux/EventBuilder.cpp b/Aux/EventBuilder.cpp index b3853b6..f6d5662 100644 --- a/Aux/EventBuilder.cpp +++ b/Aux/EventBuilder.cpp @@ -84,7 +84,7 @@ int main(int argc, char **argv) { totalHitCount += readerA->GetHitCount(); for( int i = 1; i < nFile; i++){ - FSUReader * readerB = new FSUReader(inFileName[i].Data(), 1, 0); + FSUReader * readerB = new FSUReader(inFileName[i].Data(), 1, 1); readerB->ScanNumBlock(0,0); totalHitCount += readerB->GetHitCount(); fileInfo = {inFileName[i].Data(), readerB->GetSN() * 1000 + readerB->GetFileOrder(), readerB->GetHitCount()}; diff --git a/ClassData.h b/ClassData.h index 92cbed4..676cd19 100644 --- a/ClassData.h +++ b/ClassData.h @@ -330,6 +330,8 @@ inline void Data::ClearData(){ tempDigiWaveform3.clear(); tempDigiWaveform4.clear(); + outFileIndex = 0; + ClearNumEventsDecoded(); ClearTriggerRate();