From 87ec6b164be585fdafcf088309ddb1a339135ee5 Mon Sep 17 00:00:00 2001 From: jml985 <44065529+jml985@users.noreply.github.com> Date: Wed, 3 Apr 2024 14:27:09 -0400 Subject: [PATCH] Eliminate some compile warnings (#672) Commented out lines that have no effect. Original authors desired behavior is unclear --- OnlTools/Jevp/StJevpBuilders/fttBuilder.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/OnlTools/Jevp/StJevpBuilders/fttBuilder.cxx b/OnlTools/Jevp/StJevpBuilders/fttBuilder.cxx index 53a62bb71a9..c34ced10c03 100644 --- a/OnlTools/Jevp/StJevpBuilders/fttBuilder.cxx +++ b/OnlTools/Jevp/StJevpBuilders/fttBuilder.cxx @@ -439,10 +439,17 @@ void fttBuilder::drawStrip( TH2 * h2, int row, int strip, VMMHardwareMap::Quadra int ix0 = ax->FindBin( x0 + row * rLength ); int ix1 = ax->FindBin( x0 + (row + 1) * rLength - 1 ); + + /* This code does nothing! ---------------------- + Most likely it was intended to adjust the indexes for this specific + region of the detector, but not known if needed; -jml 3/25/24 + if ( VMMHardwareMap::Quadrant::C == q || VMMHardwareMap::Quadrant::D == q ){ int ix0 = ax->FindBin( x0 + (row - 1) * rLength ); int ix1 = ax->FindBin( x0 + (row) * rLength - 1 ); } + */ + const int iy0 = ay->FindBin( y0 + strip * sPitch ); const int iy1 = ay->FindBin( y0 + (strip) * sPitch ); floodFill( h2, ix0, iy0, ix1, iy1 );