some bugs fix

This commit is contained in:
splitPoleDAQ 2023-12-08 17:03:52 -05:00
parent 967935d5e0
commit a988f63d3b
4 changed files with 7 additions and 6 deletions

View File

@ -6,7 +6,7 @@
CC = g++
#COPTS = -fPIC -DLINUX -O2 -std=c++17 -lpthread
COPTS = -fPIC -DLINUX -g -O2 -Wall -std=c++17 -lpthread
COPTS = -fPIC -DLINUX -g -O0 -Wall -std=c++17 -lpthread
CAENLIBS = -lCAENDigitizer

View File

@ -1,4 +1,4 @@
#include "ClassData.h"
#include "../ClassData.h"
class FSUReader{

View File

@ -75,7 +75,8 @@ int main(int argc, char* argv[]){
data->PrintAllData(true);
builder->BuildEvents(false, true, true);
//builder->BuildEvents(false, true, true);
builder->BuildEventsBackWard(20, true);
builder->PrintStat();
// int index = data->NumEventsDecoded[0];

View File

@ -281,7 +281,7 @@ void MultiBuilder::BuildEventsBackWard(int maxNumEvent, bool verbose){
// remember the end of DataIndex, prevent over build
for( int k = 0; k < nData; k++){
for( int i = 0; i < data[i]->GetNChannel(); i++){
for( int i = 0; i < data[k]->GetNChannel(); i++){
nextIndex[k][i] = data[k]->DataIndex[i];
loopIndex[k][i] = data[k]->LoopIndex[i];
}
@ -363,7 +363,7 @@ void MultiBuilder::BuildEventsBackWard(int maxNumEvent, bool verbose){
}
}while(nExhaushedCh < nData * MaxNChannels && eventBuilt <= maxNumEvent);
}while(nExhaushedCh < nData * MaxNChannels && eventBuilt < maxNumEvent);
// // remember the end of DataIndex, prevent over build
// for( int k = 0; k < nData; k++){