Skip to content

Commit 11bfdab

Browse files
authored
[EMCAL-524] Fix filling energy spectrum for DCAL supermodules (#812)
Bug introduced in #792: Supemodule ID was not checked against range, therefore all supermodules treated as EMCAL supermodules.
1 parent d8eccac commit 11bfdab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/EMCAL/src/DigitsQcTask.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ void DigitsQcTask::DigitsHistograms::fillHistograms(const o2::emcal::Cell& digit
465465
fillOptional2D(mDigitAmpSupermoduleCalib, digit.getEnergy(), supermoduleID);
466466
fillOptional2D(mDigitTimeSupermoduleCalib, digit.getTimeStamp() - timecalib, supermoduleID);
467467
}
468-
if (supermoduleID) {
468+
if (supermoduleID < 12) {
469469
fillOptional1D(mDigitAmplitudeEMCAL, digit.getEnergy());
470470
} else {
471471
fillOptional1D(mDigitAmplitudeDCAL, digit.getEnergy());

0 commit comments

Comments
 (0)