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
LOG(debug) << "Recalculation of Sigma momentum failed: mother momentum is zero " << sigmaPx << ", " << sigmaPy << ", " << sigmaPz;
573
574
return -999.f;
574
575
}
@@ -588,7 +589,7 @@ struct lambda1405analysis {
588
589
double B = -4.0 * a * K;
589
590
double C = 4.0 * eChDau * eChDau * massSigma * massSigma - K * K;
590
591
591
-
if (std::abs(A) < 1e-6f) {
592
+
if (std::abs(A) < zeroValTolerance) {
592
593
LOG(debug) << "Recalculation of Sigma momentum failed: A is zero " << sigmaPx << ", " << sigmaPy << ", " << sigmaPz << ", A = " << A << ", B = " << B << ", C = " << C;
593
594
return -999.f;
594
595
}
@@ -598,20 +599,20 @@ struct lambda1405analysis {
598
599
rSelections.fill(HIST("hRecalcSigmaPlusMom"), 2); // Non-zero A
599
600
}
600
601
601
-
doubleD = B * B - 4.0 * A * C;
602
-
if (D < 0.0) {
603
-
LOG(debug) << "Recalculation of Sigma momentum failed: D is negative " << sigmaPx << ", " << sigmaPy << ", " << sigmaPz << ", A = " << A << ", B = " << B << ", C = " << C << ", D = " << D;
602
+
doubledet = B * B - 4.0 * A * C;
603
+
if (det < 0.0) {
604
+
LOG(debug) << "Recalculation of Sigma momentum failed: determinant is negative " << sigmaPx << ", " << sigmaPy << ", " << sigmaPz << ", A = " << A << ", B = " << B << ", C = " << C << ", determinant = " << det;
604
605
return -999.f;
605
606
}
606
607
if (isSigmaMinus) {
607
-
rSelections.fill(HIST("hRecalcSigmaMinusMom"), 3); // Positive D
0 commit comments