1 parent 484f4b1 commit e3f1888Copy full SHA for e3f1888
1 file changed
Common/Tasks/centralityQa.cxx
@@ -158,7 +158,7 @@ struct CentralityQa {
158
mcScalePars[ixpar] = mcScale->GetParameter(ixpar);
159
}
160
161
- auto scaleMC = [](float x, const std::array<float, NSuperCalibPars> pars) {
+ auto scaleMC = [](float x, const std::array<float, NSuperCalibPars>& pars) {
162
float core = ((pars[0] + pars[1] * std::pow(x, pars[2])) - pars[3]) / pars[4];
163
if (core < 0.0f) {
164
return 0.0f; // this should be marked as low multiplicity and not mapped, core^pars[5] would be NaN
0 commit comments