From bbdc11e4249bed5d8cd812a361a480cfe94638c1 Mon Sep 17 00:00:00 2001 From: YubiaoWang Date: Sun, 5 Jul 2026 21:39:01 +0200 Subject: [PATCH] Add files via upload --- PWGJE/Tasks/jetChargedV2.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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;