Skip to content

Commit ad365b0

Browse files
committed
Fix bug in momentum calculation
For gen events that pass the reco, the calculation of the momentum of the pair had a typo.
1 parent dcbe034 commit ad365b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PWGUD/Tasks/fwdMuonsUpc.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ struct FwdMuonsUpc {
691691

692692
ROOT::Math::PxPyPzMVector p1Mc{McPart1.px(), McPart1.py(), McPart1.pz(), o2::constants::physics::MassMuon};
693693
ROOT::Math::PxPyPzMVector p2Mc{McPart2.px(), McPart2.py(), McPart2.pz(), o2::constants::physics::MassMuon};
694-
ROOT::Math::PxPyPzMVector pMc = p2Mc + p2Mc;
694+
ROOT::Math::PxPyPzMVector pMc = p1Mc + p2Mc;
695695

696696
// compute gen phi for azimuth anisotropy
697697
float phiGenAverage = 0;

0 commit comments

Comments
 (0)