Skip to content

Commit 37bbce6

Browse files
authored
[PWGLF] fix histogram filling using eta (#11732)
1 parent 7f127f5 commit 37bbce6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

PWGLF/TableProducer/Strangeness/strangeTreeCreator.cxx

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

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

464466
histos.fill(HIST("QA/massLambda"), centrality, ptV0, mLambda);
465467
histos.fill(HIST("QA/massK0s"), ptV0, mK0Short);
466-
histos.fill(HIST("massKineBias"), ptPos, massKineBias);
467-
histos.fill(HIST("massKineReso"), ptPos, massKineReso);
468+
histos.fill(HIST("massKineBias"), etaPos, ptPos, massKineBias);
469+
histos.fill(HIST("massKineReso"), etaPos, ptPos, massKineReso);
468470

469471
CandidateV0 candV0;
470472
candV0.pt = matter > 0. ? ptV0 : -ptV0;

0 commit comments

Comments
 (0)