Skip to content

Commit 5a565c8

Browse files
committed
Bugfix
1 parent 1d390a7 commit 5a565c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PWGLF/TableProducer/Strangeness/strangenesstofpid.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,9 @@ struct strangenesstofpid {
374374
float timeKaonFinal = ltIntegral.getTOF(o2::track::PID::Kaon);
375375
float timePionFinal = ltIntegral.getTOF(o2::track::PID::Pion);
376376
float fraction = (tofPosition - segmentedR)/(segmentedRFinal-segmentedR+1e-6); // proportional fraction
377-
timeProton = currentTimeProton + (timeProtonFinal-timeProton)*fraction;
378-
timeKaon = currentTimeKaon + (timeKaonFinal-timeKaon)*fraction;
379-
timePion = currentTimePion + (timePionFinal-timePion)*fraction;
377+
timeProton = currentTimeProton + (timeProtonFinal-currentTimeProton)*fraction;
378+
timeKaon = currentTimeKaon + (timeKaonFinal-currentTimeKaon)*fraction;
379+
timePion = currentTimePion + (timePionFinal-currentTimePion)*fraction;
380380
histos.fill(HIST("hTOFPositionFinal"), previousX+fraction*(xyz[0]-previousX), previousY+fraction*(xyz[1]-previousY)); // for debugging purposes
381381
return; // get out of the entire function and return (don't just break)
382382
}

0 commit comments

Comments
 (0)