Skip to content

Commit 93f05b3

Browse files
committed
Efficiency validity check
1 parent 106e1a8 commit 93f05b3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

PWGDQ/Tasks/taskJPsiMu.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,5 +258,8 @@ double getWeight(const double pT, const std::vector<double>& pT_bins, const std:
258258
break;
259259
}
260260
}
261+
if ((efficiency[eff_bin] * (getRapidity(pT, eta_max) - getRapidity(pT, eta_min))) == 0) {
262+
LOG(info) << "Efficiency correction factor is zero for pT: " << pT << ", efficiency: " << efficiency[eff_bin] << ", eta range: [" << eta_min << ", " << eta_max << "].";
263+
}
261264
return 1.0 / (efficiency[eff_bin] * (getRapidity(pT, eta_max) - getRapidity(pT, eta_min)));
262265
}

0 commit comments

Comments
 (0)