diff --git a/PWGJE/Tasks/jetChargedV2.cxx b/PWGJE/Tasks/jetChargedV2.cxx index e52154196e6..4fa96e86b1c 100644 --- a/PWGJE/Tasks/jetChargedV2.cxx +++ b/PWGJE/Tasks/jetChargedV2.cxx @@ -1580,12 +1580,14 @@ struct JetChargedV2 { } else { integralValue += fFitModulationV2v3->Integral(low, high); } - if (integralValue < 0) { - integralValue = 0; - } - // double integralValue = fFitModulationV2v3->Integral(phi - selectedJetsRadius, phi + selectedJetsRadius); - double rholocal = collision.rho() / (2 * selectedJetsRadius * temppara[0]) * integralValue; + double rholocal = 0.0; + if (integralValue <= 0) { + rholocal = collision.rho(); + } else { + // integralValue = fFitModulationV2v3->Integral(phi - selectedJetsRadius, phi + selectedJetsRadius); + rholocal = collision.rho() / (2 * selectedJetsRadius * temppara[0]) * integralValue; + } if (nmode == cfgNmodA) { double phiMinusPsi2;