ClassData::ClearData reset the outFileIndex = 0

This commit is contained in:
Ryan Tang 2024-06-13 14:55:51 -04:00
parent a9b98c36f3
commit e9e5ae3023
2 changed files with 3 additions and 1 deletions

View File

@ -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()};

View File

@ -330,6 +330,8 @@ inline void Data::ClearData(){
tempDigiWaveform3.clear();
tempDigiWaveform4.clear();
outFileIndex = 0;
ClearNumEventsDecoded();
ClearTriggerRate();