Skip to content

Commit eabeccd

Browse files
authored
change variable name to avoid clash with existing one
1 parent b12e1db commit eabeccd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGLF/TableProducer/Strangeness/strangeTreeCreator.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,8 @@ struct StrangeTreeCreator {
457457
}
458458

459459
float ptPos = std::hypot(momPos[0], momPos[1]);
460-
float momPos = std::hypot(momPos[0], momPos[1], momPos[2]);
461-
float etaPos = 0.5 * std::log((momPos + momPos[2]) / (momPos - momPos[2]));
460+
float pPos = std::hypot(momPos[0], momPos[1], momPos[2]);
461+
float etaPos = 0.5 * std::log((pPos + momPos[2]) / (pPos - momPos[2]));
462462
float deltaMass = mK0Short - o2::constants::physics::MassK0;
463463
float massKineBias = deltaMass / kineFactor(momV0, momPos, momNeg, o2::constants::physics::MassPiMinus, o2::constants::physics::MassPiMinus, false);
464464
float massKineReso = deltaMass / kineFactor(momV0, momPos, momNeg, o2::constants::physics::MassPiMinus, o2::constants::physics::MassPiMinus, true);

0 commit comments

Comments
 (0)