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
@@ -1427,12 +1427,12 @@ GPUd() bool TrackParametrizationWithError<value_T>::correctForMaterial(value_t x
1427
1427
}
1428
1428
auto m = this->getPID().getMass();
1429
1429
int charge2 = this->getAbsCharge() * this->getAbsCharge();
1430
-
value_t p = this->getP(), p0 = p, p02 = p * p, e2 = p02 + this->getPID().getMass2(), massInv = 1. / m, bg = p * massInv, dETot = 0.;
1430
+
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;
1431
1431
value_t e = gpu::CAMath::Sqrt(e2), e0 = e;
1432
1432
if (m > 0 && xrho != 0.f) {
1433
1433
value_t ekin = e - m, dedx = this->getdEdxBBOpt(bg);
1434
1434
#ifdef _BB_NONCONST_CORR_
1435
-
value_t dedxDer = 0., dedx1 = dedx;
1435
+
value_t dedxDer = 0.f, dedx1 = dedx;
1436
1436
#endif
1437
1437
if (charge2 != 1) {
1438
1438
dedx *= charge2;
@@ -1454,11 +1454,11 @@ GPUd() bool TrackParametrizationWithError<value_T>::correctForMaterial(value_t x
1454
1454
}
1455
1455
while (na--) {
1456
1456
#ifdef _BB_NONCONST_CORR_
1457
-
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]
1457
+
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]
1592
+
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