You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DataFormats/Reconstruction/src/TrackParametrizationWithError.cxx
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1364,12 +1364,12 @@ GPUd() bool TrackParametrizationWithError<value_T>::correctForMaterial(value_t x
1364
1364
}
1365
1365
auto m = this->getPID().getMass();
1366
1366
int charge2 = this->getAbsCharge() * this->getAbsCharge();
1367
-
value_t p = this->getP(), p0 = p, p02 = p * p, e2 = p02 + this->getPID().getMass2(), massInv = 1. / m, bg = p * massInv, dETot = 0.;
1367
+
value_t p = this->getP(), p0 = p, p02 = p * p, e2 = p02 + this->getPID().getMass2(), massInv = 1.f / m, bg = p * massInv, dETot = 0.f;
1368
1368
value_t e = gpu::CAMath::Sqrt(e2), e0 = e;
1369
1369
if (m > 0 && xrho != 0.f) {
1370
1370
value_t ekin = e - m, dedx = this->getdEdxBBOpt(bg);
1371
1371
#ifdef _BB_NONCONST_CORR_
1372
-
value_t dedxDer = 0., dedx1 = dedx;
1372
+
value_t dedxDer = 0.f, dedx1 = dedx;
1373
1373
#endif
1374
1374
if (charge2 != 1) {
1375
1375
dedx *= charge2;
@@ -1391,11 +1391,11 @@ GPUd() bool TrackParametrizationWithError<value_T>::correctForMaterial(value_t x
1391
1391
}
1392
1392
while (na--) {
1393
1393
#ifdef _BB_NONCONST_CORR_
1394
-
if (dedxDer != 0.) { // correction for non-constantness of dedx vs beta*gamma (in linear approximation): for a single step dE -> dE * [(exp(dedxDer) - 1)/dedxDer]
1394
+
if (dedxDer != 0.f) { // correction for non-constantness of dedx vs beta*gamma (in linear approximation): for a single step dE -> dE * [(exp(dedxDer) - 1)/dedxDer]
if (dedxDer != 0.) { // correction for non-constantness of dedx vs beta*gamma (in linear approximation): for a single step dE -> dE * [(exp(dedxDer) - 1)/dedxDer]
1529
+
if (dedxDer != 0.f) { // correction for non-constantness of dedx vs beta*gamma (in linear approximation): for a single step dE -> dE * [(exp(dedxDer) - 1)/dedxDer]
0 commit comments