@@ -1262,8 +1262,8 @@ class MultModule
12621262 auto populateTable = [&](auto & table, struct CalibrationInfo & estimator, float multiplicity, bool isInelGt0) {
12631263 const bool assignOutOfRange = internalOpts.embedINELgtZEROselection && !isInelGt0;
12641264 auto scaleMC = [](float x, const float pars[6 ]) {
1265- float core = ((pars[0 ] + pars[1 ] * std::pow (x, pars[2 ])) - pars[3 ]) / pars[4 ];
1266- if (core< 0 .0f ){
1265+ float core = ((pars[0 ] + pars[1 ] * std::pow (x, pars[2 ])) - pars[3 ]) / pars[4 ];
1266+ if (core < 0 .0f ) {
12671267 return 0 .0f ; // this should be marked as low multiplicity and not mapped, core^pars[5] would be NaN
12681268 }
12691269 return std::pow (((pars[0 ] + pars[1 ] * std::pow (x, pars[2 ])) - pars[3 ]) / pars[4 ], 1 .0f / pars[5 ]);
@@ -1351,8 +1351,8 @@ class MultModule
13511351 ConfigureCentralityRun2 (ccdb, metadataInfo, firstbc);
13521352
13531353 auto scaleMC = [](float x, const float pars[6 ]) {
1354- float core = ((pars[0 ] + pars[1 ] * std::pow (x, pars[2 ])) - pars[3 ]) / pars[4 ];
1355- if (core< 0 .0f ){
1354+ float core = ((pars[0 ] + pars[1 ] * std::pow (x, pars[2 ])) - pars[3 ]) / pars[4 ];
1355+ if (core < 0 .0f ) {
13561356 return 0 .0f ; // this should be marked as low multiplicity and not mapped, core^pars[5] would be NaN
13571357 }
13581358 return std::pow (((pars[0 ] + pars[1 ] * std::pow (x, pars[2 ])) - pars[3 ]) / pars[4 ], 1 .0f / pars[5 ]);
0 commit comments