Skip to content

Commit 72a94cd

Browse files
committed
Replace eta with rapidity
1 parent ba92c0d commit 72a94cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,9 @@ struct lambdaspincorrderived {
379379
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)