Skip to content
Snippets Groups Projects
Commit 39bca0e2 authored by Bertrand Martin Dit Latour's avatar Bertrand Martin Dit Latour Committed by Melissa Yexley
Browse files

JetCalibTools: fix overflow/underflow in JMSCorrection

JetCalibTools: fix overflow/underflow in JMSCorrection

Hello,

This MR is fixing the treatment of underflows and overflows in JMSCorrection. The problem was reported in ATEAM-955.
Somehow in the trigger, it happens that we pass `pT_uncorr=3000` to `getMassCorr`, which corresponds precisely to `pTMax`.
In that case, ` if ( pT_uncorr > pTMax ) pT_uncorr = pTMax-1e-6 ;` does nothing, and `m_respFactorsMass[etabin]->Interpolate( pT_uncorr, mass_uncorr );` complains that we're out of the validity range.
So I changed `>` to `>=` and `<` to `<=`.

Cheers,
Bertrand
parent 7e9a1fdd
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment