bug fix on EventBuilder

This commit is contained in:
Ryan Tang 2024-03-12 17:34:33 -04:00
parent 2be2b21923
commit 729b8bc4f1
2 changed files with 9 additions and 3 deletions

View File

@ -165,7 +165,7 @@ int main(int argc, char **argv) {
for( size_t j = 0; j < fileGroupList[i].size(); j++){
fList.push_back( fileGroupList[i][j].fileName );
}
reader[i] = new FSUReader(fList, 1, debug);
reader[i] = new FSUReader(fList, 600, debug);
hitList[i] = reader[i]->ReadBatch(batchSize, debug );
reader[i]->PrintHitListInfo(hitList[i], "hitList-" + std::to_string(reader[i]->GetSN()));
ID[i] = 0;
@ -337,6 +337,11 @@ int main(int argc, char **argv) {
printf(" total data duration = %.2f sec = %.2f min\n", tDuration_sec, tDuration_sec/60.);
printf("==============> saved to %s \n", outFileName.Data());
TMacro info;
info.AddLine(Form("tStart= %20llu ns",tStart));
info.AddLine(Form(" tEnd= %20llu ns",tEnd));
info.Write("info");
outRootFile->Close();
for( int i = 0; i < nGroup; i++) delete reader[i];

View File

@ -478,6 +478,7 @@ inline std::vector<Hit> FSUReader::ReadBatch(unsigned int batchSize, bool verbos
hitList_A = hit;
hit.clear();
}else{
hitList_A = hit;
@ -569,8 +570,8 @@ inline std::vector<Hit> FSUReader::ReadBatch(unsigned int batchSize, bool verbos
printf("=========== sume of A + B : %zu \n", hitList_A.size() + hit.size());
}
}
}
return hitList_A;
}