Skip to content

Commit

Permalink
[EMCAL-1114] Fix filling low gain histograms (#2244)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfasDa authored Apr 18, 2024
1 parent d649ffc commit ea7ad31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Modules/EMCAL/src/PedestalTask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit ea7ad31

Please sign in to comment.