some bugs fix
This commit is contained in:
parent
967935d5e0
commit
a988f63d3b
|
@ -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
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "ClassData.h"
|
||||
#include "../ClassData.h"
|
||||
|
||||
class FSUReader{
|
||||
|
||||
|
|
|
@ -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];
|
||||
|
@ -86,7 +87,7 @@ int main(int argc, char* argv[]){
|
|||
|
||||
//data->CloseSaveFile();
|
||||
builder->BuildEvents(true, true, true);
|
||||
|
||||
|
||||
data->PrintAllData();
|
||||
|
||||
builder->PrintAllEvent(); // TODO
|
||||
|
|
|
@ -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++){
|
||||
|
|
Loading…
Reference in New Issue
Block a user