From ea7ad3167c2c39cd177f0c7e80831d1309244207 Mon Sep 17 00:00:00 2001 From: Markus Fasel Date: Thu, 18 Apr 2024 13:48:20 +0200 Subject: [PATCH] [EMCAL-1114] Fix filling low gain histograms (#2244) --- Modules/EMCAL/src/PedestalTask.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/EMCAL/src/PedestalTask.cxx b/Modules/EMCAL/src/PedestalTask.cxx index e726d94b81..d1f42361f9 100644 --- a/Modules/EMCAL/src/PedestalTask.cxx +++ b/Modules/EMCAL/src/PedestalTask.cxx @@ -106,22 +106,22 @@ void PedestalTask::monitorData(o2::framework::ProcessingContext& ctx) mNumberObjectsFetched++; for (int ichan = 0; ichan < mPedestalChannelFECHG->GetXaxis()->GetNbins(); ichan++) { auto pedestalLow = pedestals->getPedestalValue(ichan, false, false), - pedestalHigh = pedestals->getPedestalValue(ichan, false, false); + pedestalHigh = pedestals->getPedestalValue(ichan, true, false); mPedestalChannelFECHG->SetBinContent(ichan + 1, pedestalHigh); mPedestalChannelFECLG->SetBinContent(ichan + 1, pedestalLow); auto [row, col] = mGeometry->GlobalRowColFromIndex(ichan); mPedestalPositionFECHG->SetBinContent(col + 1, row + 1, pedestalHigh); - mPedestalPositionFECLG->SetBinContent(col + 1, row + 1, pedestalHigh); + mPedestalPositionFECLG->SetBinContent(col + 1, row + 1, pedestalLow); } for (auto ichan = 0; ichan < mPedestalChannelLEDMONHG->GetXaxis()->GetNbins(); ichan++) { auto pedestalLow = pedestals->getPedestalValue(ichan, false, false), - pedestalHigh = pedestals->getPedestalValue(ichan, false, false); + pedestalHigh = pedestals->getPedestalValue(ichan, true, false); mPedestalChannelLEDMONHG->SetBinContent(ichan + 1, pedestalHigh); mPedestalChannelLEDMONLG->SetBinContent(ichan + 1, pedestalLow); int col = ichan % 48, row = ichan / 48; mPedestalPositionLEDMONHG->SetBinContent(col + 1, row + 1, pedestalHigh); - mPedestalPositionLEDMONLG->SetBinContent(col + 1, row + 1, pedestalHigh); + mPedestalPositionLEDMONLG->SetBinContent(col + 1, row + 1, pedestalLow); } } }