Skip to content

Commit 7d886c0

Browse files
committed
fix for ML, part 5
1 parent 4267b0f commit 7d886c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PWGCF/MultiparticleCorrelations/Core/MuPa-MemberFunctions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14502,7 +14502,7 @@ void insanitizeDiffWeightsSparse(THnSparseF* const sparse)
1450214502
LOGF(fatal, "\033[1;31m%s at line %d : axis %d (Charge) of sparse %s has upper boundary %f, while upper cut on that variable is %f. This means that for some particles I won't be able to fetch weights from this sparse. \033[0m", __FUNCTION__, __LINE__, d, sparse->GetName(), sparse->GetAxis(d)->GetBinUpEdge(sparse->GetAxis(d)->GetNbins()), pc.fdParticleCuts[eCharge][eMax]);
1450314503
}
1450414504

14505-
} else if (!(axisTitle.starts_with("Centrality") || axisTitle.find("Centrality"))) { // I have to use here find() instead, because title also contains centrality estimator name, e.g. "Centality (FT0C)". I added starts_with() per MegaLinter suggestion
14505+
} else if (!axisTitle.starts_with("Centrality")) { // I have to use here axisTitle.starts_with("Centrality"), because title also contains centrality estimator name, e.g. "Centality (FT0C)". If I ever reformat the axis title, see if I need to use instead axisTitle.find("Centrality")
1450614506

1450714507
// check lower boundary:
1450814508
if ((ec.fdEventCuts[eCentrality][eMin] < sparse->GetAxis(d)->GetBinLowEdge(1)) && (std::abs(sparse->GetAxis(d)->GetBinLowEdge(1) - ec.fdEventCuts[eCentrality][eMin]) > tc.fFloatingPointPrecision)) {

0 commit comments

Comments
 (0)