Skip to content
Snippets Groups Projects
Commit 3efd8073 authored by Cecilia Tosciri's avatar Cecilia Tosciri
Browse files

Update JwoJ algorithm to consider only positive gTowers for SumEt

parent 1938c339
No related merge requests found
......@@ -347,7 +347,7 @@ void gFEXJwoJAlgo::sumEtFPGA(gTowersCentral twrs, int & partial_sumEt ){
for( int irow = 0; irow < rows; irow++ ){
for(int jcolumn = 0; jcolumn<cols; jcolumn++){
partial_sumEt += twrs[irow][jcolumn];
partial_sumEt += (twrs[irow][jcolumn] > 0 ? twrs[irow][jcolumn]: 0);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment