Skip to content

Commit e3f1888

Browse files
committed
Function parameter 'pars' should be passed by const reference
1 parent 484f4b1 commit e3f1888

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Common/Tasks/centralityQa.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ struct CentralityQa {
158158
mcScalePars[ixpar] = mcScale->GetParameter(ixpar);
159159
}
160160

161-
auto scaleMC = [](float x, const std::array<float, NSuperCalibPars> pars) {
161+
auto scaleMC = [](float x, const std::array<float, NSuperCalibPars>& pars) {
162162
float core = ((pars[0] + pars[1] * std::pow(x, pars[2])) - pars[3]) / pars[4];
163163
if (core < 0.0f) {
164164
return 0.0f; // this should be marked as low multiplicity and not mapped, core^pars[5] would be NaN

0 commit comments

Comments
 (0)