Skip to content

Commit bbdc11e

Browse files
authored
Add files via upload
1 parent 2fd899b commit bbdc11e

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

PWGJE/Tasks/jetChargedV2.cxx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,12 +1580,14 @@ struct JetChargedV2 {
15801580
} else {
15811581
integralValue += fFitModulationV2v3->Integral(low, high);
15821582
}
1583-
if (integralValue < 0) {
1584-
integralValue = 0;
1585-
}
15861583

1587-
// double integralValue = fFitModulationV2v3->Integral(phi - selectedJetsRadius, phi + selectedJetsRadius);
1588-
double rholocal = collision.rho() / (2 * selectedJetsRadius * temppara[0]) * integralValue;
1584+
double rholocal = 0.0;
1585+
if (integralValue <= 0) {
1586+
rholocal = collision.rho();
1587+
} else {
1588+
// integralValue = fFitModulationV2v3->Integral(phi - selectedJetsRadius, phi + selectedJetsRadius);
1589+
rholocal = collision.rho() / (2 * selectedJetsRadius * temppara[0]) * integralValue;
1590+
}
15891591

15901592
if (nmode == cfgNmodA) {
15911593
double phiMinusPsi2;

0 commit comments

Comments
 (0)