Skip to content

Commit 5f607e3

Browse files
authored
[PWGJE] jetChargedV2 task: Fix random cone phi-dependent quantities after leading jet exclusion (#17183)
1 parent 96f9444 commit 5f607e3

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

PWGJE/Tasks/jetChargedV2.cxx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,8 +1703,10 @@ struct JetChargedV2 {
17031703
float randomConeEta = randomNumber.Uniform(trackEtaMin + randomConeR, trackEtaMax - randomConeR);
17041704
float randomConePhi = randomNumber.Uniform(0.0, o2::constants::math::TwoPI);
17051705
float randomConePt = 0;
1706-
double integralValueRC = fFitModulationV2v3->Integral(randomConePhi - randomConeR, randomConePhi + randomConeR);
1707-
double rholocalRC = collision.rho() / (2 * randomConeR * temppara[0]) * integralValueRC;
1706+
double integralValueRC = 0.0;
1707+
double rholocalRC = 0.0;
1708+
integralValueRC = fFitModulationV2v3->Integral(randomConePhi - randomConeR, randomConePhi + randomConeR);
1709+
rholocalRC = collision.rho() / (2 * randomConeR * temppara[0]) * integralValueRC;
17081710

17091711
int nmode = cfgnMods->at(i);
17101712
if (nmode == cfgNmodA) {
@@ -1744,6 +1746,11 @@ struct JetChargedV2 {
17441746
}
17451747
if (jetWasInCone) {
17461748
randomConePt = 0.0;
1749+
integralValueRC = fFitModulationV2v3->Integral(randomConePhi - randomConeR, randomConePhi + randomConeR);
1750+
rholocalRC = collision.rho() / (2 * randomConeR * temppara[0]) * integralValueRC;
1751+
rcPhiPsi2 = RecoDecay::constrainAngle(randomConePhi - ep2, -o2::constants::math::PI);
1752+
absRcPhiPsi2 = std::abs(rcPhiPsi2);
1753+
17471754
for (auto const& track : tracks) {
17481755
if (jetderiveddatautilities::selectTrack(track, trackSelection)) { // if track selection is uniformTrack, dcaXY and dcaZ cuts need to be added as they aren't in the selection so that they can be studied here
17491756
float dPhi = RecoDecay::constrainAngle(track.phi() - randomConePhi, -o2::constants::math::PI);

0 commit comments

Comments
 (0)