Skip to content

Commit

Permalink
fix propagation of q!=1 tracks with 3D field
Browse files Browse the repository at this point in the history
  • Loading branch information
shahor02 committed Jan 11, 2024
1 parent a97b22b commit 19454fc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,8 @@ GPUd() bool TrackParametrizationWithError<value_T>::propagateTo(value_t xk, cons
vecLab[6]};

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

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

return true;
}
Expand Down

0 comments on commit 19454fc

Please sign in to comment.