Skip to content
Snippets Groups Projects
Commit 47a55c73 authored by Daniel Charles Craik's avatar Daniel Charles Craik
Browse files

Fix bug in bin indexing for >1D Histograms

parent 78e88540
No related branches found
No related tags found
1 merge request!1266Fix bug in bin indexing for >1D Histograms
......@@ -182,7 +182,7 @@ namespace Gaudi::Accumulators {
// compute local index for a given dimension
int localIndex = axis[dim].index( ( *this )[dim] );
// compute global index. Bins are stored in a row first manner
index = ( dim > 0 ? ( axis[dim - 1].nBins + 2 ) : 0 ) * index + localIndex;
index = ( dim > 0 ? ( axis[dim].nBins + 2 ) : 0 ) * index + localIndex;
}
return index;
}
......
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