From 19454fc7a84073de890204bc53cdbe20d4db3737 Mon Sep 17 00:00:00 2001 From: shahoian Date: Thu, 11 Jan 2024 16:45:45 +0100 Subject: [PATCH] fix propagation of q!=1 tracks with 3D field --- .../Reconstruction/src/TrackParametrizationWithError.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DataFormats/Reconstruction/src/TrackParametrizationWithError.cxx b/DataFormats/Reconstruction/src/TrackParametrizationWithError.cxx index 25d02fdad7006..dc83da48393d8 100644 --- a/DataFormats/Reconstruction/src/TrackParametrizationWithError.cxx +++ b/DataFormats/Reconstruction/src/TrackParametrizationWithError.cxx @@ -553,8 +553,8 @@ GPUd() bool TrackParametrizationWithError::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]; @@ -593,7 +593,7 @@ GPUd() bool TrackParametrizationWithError::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; }