Skip to content

Commit 6617cfd

Browse files
committed
fix bug in VM daughter direction
1 parent ab4fa43 commit 6617cfd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PWGDQ/Core/VarManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4643,7 +4643,7 @@ void VarManager::FillPairMC(T1 const& t1, T2 const& t2, float* values)
46434643

46444644
if (fgUsedVars[kCos2DeltaPhiRP_Random] || fgUsedVars[kCos2DeltaPhiPP_Random] || fgUsedVars[kCos2DeltaPhiRP_MC] || fgUsedVars[kCos2DeltaPhiPP_MC]) {
46454645
ROOT::Math::Boost boostv12{v12.BoostToCM()};
4646-
ROOT::Math::PtEtaPhiMVector v_daughter = boostv12(t1.sign() > 0 ? v1 : v2);
4646+
ROOT::Math::PtEtaPhiMVector v_daughter = boostv12(t1.pdgCode() > 0 ? v1 : v2);
46474647

46484648
// reaction plane
46494649
float phi = v_daughter.Phi() > TMath::Pi() ? v_daughter.Phi() - 2. * TMath::Pi() : v_daughter.Phi();

0 commit comments

Comments
 (0)