Skip to content

Commit 19454fc

Browse files
committed
fix propagation of q!=1 tracks with 3D field
1 parent a97b22b commit 19454fc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

DataFormats/Reconstruction/src/TrackParametrizationWithError.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,8 @@ GPUd() bool TrackParametrizationWithError<value_T>::propagateTo(value_t xk, cons
553553
vecLab[6]};
554554

555555
// Do the helix step
556-
value_t sgn = this->getSign();
557-
g3helx3(sgn * bb, step, vect);
556+
value_t q = this->getCharge();
557+
g3helx3(q * bb, step, vect);
558558

559559
// Rotate back to the Global System
560560
vecLab[0] = cosphi * costet * vect[0] - sinphi * vect[1] + cosphi * sintet * vect[2];
@@ -593,7 +593,7 @@ GPUd() bool TrackParametrizationWithError<value_T>::propagateTo(value_t xk, cons
593593
this->setZ(z);
594594
this->setSnp(vecLab[4] * t);
595595
this->setTgl(vecLab[5] * t);
596-
this->setQ2Pt(sgn * t / vecLab[6]);
596+
this->setQ2Pt(q * t / vecLab[6]);
597597

598598
return true;
599599
}

0 commit comments

Comments
 (0)