Skip to content

Commit a16b26d

Browse files
authored
[PWGLF] Replace eta with rapidity (#14759)
1 parent 3b2ba10 commit a16b26d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,12 @@ struct lambdaspincorrderived {
376376
double dphi2 = RecoDecay::constrainAngle(particle2.Phi(), 0.0F, harmonic);
377377
double deta2 = particle2.Eta();
378378

379-
double deta_pair = std::abs(deta1 - deta2);
379+
// double deta_pair = std::abs(deta1 - deta2);
380380
double dphi_pair = RecoDecay::constrainAngle(particle1.Phi() - particle2.Phi(), -TMath::Pi(), harmonicDphi);
381381

382-
double deltaR = TMath::Sqrt(deta_pair * deta_pair + dphi_pair * dphi_pair);
382+
// double deltaR = TMath::Sqrt(deta_pair * deta_pair + dphi_pair * dphi_pair);
383383
double deltaRap = std::abs(particle1.Rapidity() - particle2.Rapidity());
384+
double deltaR = TMath::Sqrt(deltaRap * deltaRap + dphi_pair * dphi_pair);
384385

385386
double epsWeight1 = 1.0;
386387
double epsWeight2 = 1.0;

0 commit comments

Comments
 (0)