Skip to content
Snippets Groups Projects
Commit 8a1c1a73 authored by Christopher Rob Jones's avatar Christopher Rob Jones
Browse files

Merge branch 'remove-old-gaudi-workarounds-RICH' into 'master'

RichDetectorHits: Remove workarounds for Gaudi < v39

See merge request !4220
parents 6251c857 8927e614
No related branches found
No related tags found
1 merge request!4220RichDetectorHits: Remove workarounds for Gaudi < v39
Pipeline #9877087 passed
......@@ -182,13 +182,8 @@ namespace Rich::Future::Rec::Moni {
const auto& yaxis = h_pdXYOcc[rich].axis<1>();
for ( auto iX = 0u; iX < xaxis.nBins; ++iX ) {
for ( auto iY = 0u; iY < yaxis.nBins; ++iY ) {
#if GAUDI_MAJOR_VERSION < 39
const auto X = xaxis.minValue + ( ( 0.5 + iX ) * ( xaxis.maxValue - xaxis.minValue ) / xaxis.nBins );
const auto Y = yaxis.minValue + ( ( 0.5 + iY ) * ( yaxis.maxValue - yaxis.minValue ) / yaxis.nBins );
#else
const auto X = xaxis.minValue() + ( ( 0.5 + iX ) * ( xaxis.maxValue() - xaxis.minValue() ) / xaxis.nBins );
const auto Y = yaxis.minValue() + ( ( 0.5 + iY ) * ( yaxis.maxValue() - yaxis.minValue() ) / yaxis.nBins );
#endif
const auto occ = pdOccXY[iX][iY];
hb_pdXYOcc[rich][{X, Y}] += occ;
hb_pdXOcc[rich][X] += occ;
......
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