Skip to content

Commit 0a82d05

Browse files
committed
Bugfix
1 parent d1e87c1 commit 0a82d05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGLF/TableProducer/Strangeness/strangenesstofpid.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ struct strangenesstofpid {
850850
if (doQA) {
851851
// length factor due to eta (to offset e-loss)
852852
float positiveCosine = 1.0f/sqrt(1.0f + posTrack.getTgl() * posTrack.getTgl());
853-
float negativeCosine = 1.0f/sqrt(1.0f + posTrack.getTgl() * posTrack.getTgl());
853+
float negativeCosine = 1.0f/sqrt(1.0f + negTrack.getTgl() * negTrack.getTgl());
854854
if(correctELossInclination.value==false){
855855
negativeCosine = positiveCosine = 1.0f;
856856
}
@@ -1140,7 +1140,7 @@ struct strangenesstofpid {
11401140
if (doQA) {
11411141
// length factor due to eta (to offset e-loss)
11421142
float positiveCosine = 1.0f/sqrt(1.0f + posTrack.getTgl() * posTrack.getTgl());
1143-
float negativeCosine = 1.0f/sqrt(1.0f + posTrack.getTgl() * posTrack.getTgl());
1143+
float negativeCosine = 1.0f/sqrt(1.0f + negTrack.getTgl() * negTrack.getTgl());
11441144
float bachelorCosine = 1.0f/sqrt(1.0f + bachTrack.getTgl() * bachTrack.getTgl());
11451145
if(correctELossInclination.value==false){
11461146
negativeCosine = positiveCosine = bachelorCosine = 1.0f;

0 commit comments

Comments
 (0)