You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 523ec98
Browse filesBrowse the repository at this point in the historyBrowse files
[PWGJE] EMCal correction task: apply MC cell corrections after cross-talk
In processMCFull and processMCWithSecondaries the shaper correction was
applied to low-gain cells twice: once while converting the cells, and
again after the cross-talk emulation. The second pass did not check
hasShaperCorrection, so it also ran when the correction was disabled.
All MC cell corrections now happen in one loop after the cross-talk
emulation, in this order:
- shaper correction for LG cells (only if hasShaperCorrection is set)
- mcCellEnergyShift
- mcCellEnergyResolutionBroadening
- cell time shift and smearing (getCellTimeShift), evaluated with the
corrected cell energy
As a result:
- the cross-talk emulation works on the uncorrected cell amplitudes and
times
- cells added by the cross-talk emulation now also get the energy shift,
resolution broadening and time shift/smearing
- hCellEnergyDistAfter is filled after the corrections, and its title
says so
Copy file name to clipboardExpand all lines: PWGJE/TableProducer/emcalCorrectionTask.cxx
+27-29Lines changed: 27 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -391,7 +391,7 @@ struct EmcalCorrectionTask {
391
391
emcCrossTalk.initObjects(emcCrossTalkConf);
392
392
if (emcCrossTalkConf.createHistograms.value) {
393
393
mHistManager.add<TH1>("hCellEnergyDistBefore", "Cell energy before cross-talk emulation", {o2::framework::HistType::kTH1D, {energyDenseAxis}});
394
-
mHistManager.add<TH1>("hCellEnergyDistAfter", "Cell energy after cross-talk emulation", {o2::framework::HistType::kTH1D, {energyDenseAxis}});
394
+
mHistManager.add<TH1>("hCellEnergyDistAfter", "Cell energy after cross-talk emulation and corrections", {o2::framework::HistType::kTH1D, {energyDenseAxis}});
if (static_cast<bool>(hasShaperCorrection) && emcal::intToChannelType(cell.cellType()) == emcal::ChannelType_t::LOW_GAIN) { // Apply shaper correction to LG cells
if (static_cast<bool>(hasShaperCorrection) && emcal::intToChannelType(cell.cellType()) == emcal::ChannelType_t::LOW_GAIN) { // Apply shaper correction to LG cells
0 commit comments