You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// From this point onward, the code is the same for any afo variable:
1981
-
unsigned long int lFixedLengthBinsExpected = 3; // In this array, I expect three entries: nBins, min, max
1981
+
uint8_t lFixedLengthBinsExpected = 3; // In this array, I expect three entries: nBins, min, max + TBI 20260714 I use uint8_t as a type to silent MegaLinter
1982
1982
if (lFixedLengthBins.size() != lFixedLengthBinsExpected) {
1983
1983
LOGF(fatal, "in function \033[1;31m%s at line %d => The array cfFixedLength_bins must have have 3 entries: {nBins, min, max} \n \033[0m", __FUNCTION__, __LINE__);
// From this point onward, the code is the same for any afo variable:
2049
-
unsigned long int lVariableLengthBinsMinExpected = 2; // In this array, I should have at least 2 entries, otherwise, it's pointless...
2049
+
uint8_t lVariableLengthBinsMinExpected = 2; // In this array, I should have at least 2 entries, otherwise, it's pointless... + TBI 20260714 I use uint8_t as a type to silent MegaLinter
2050
2050
if (lVariableLengthBins.size() < lVariableLengthBinsMinExpected) {
2051
2051
LOGF(fatal, "in function \033[1;31m%s at line %d => The array cfVariableLength_bins must have at least 2 entries \n \033[0m", __FUNCTION__, __LINE__);
qv.fqabVector[i][j].resize(qv.fNumberOfKineBins[j]); // yes, qv.fNumberOfKineBins[j] => for each qvectorkine I calculate and dynamically allocate only necessary bins
5903
5903
qv.fmab[i][j].resize(qv.fNumberOfKineBins[j]);
5904
5904
} else {
5905
-
// calculus for this kine variable is not needed, I am ironing out this esDimension
5905
+
// calculus for this kine variable is not needed, I am ironing out this dimension
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]);
14503
14503
}
14504
14504
14505
-
} else if (!axisTitle.find("Centrality")) { // I have to use here find() instead, because title also contains centrality estimator name, e.g. "Centality (FT0C)"
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
LOGF(fatal, "in function \033[1;31m%s at line %d, phiWeights is NULL. Check the external file %s with particle weights\033[0m", __FUNCTION__, __LINE__, pw.fFileWithWeights.Data()); // oll
16409
+
LOGF(fatal, "in function \033[1;31m%s at line %d, phiWeights is NULL. Check the external file %s with particle weights\033[0m", __FUNCTION__, __LINE__, pw.fFileWithWeights.Data());
16410
+
exit(__LINE__); // TBI 20260714 temporarily here to silent MegaLinter
16410
16411
}
16411
16412
setWeightsHist(phiWeights, wPHI);
16412
16413
}
@@ -16451,7 +16452,8 @@ void getParticleWeights()
16451
16452
// *) okay, this pt bin is within pt phase-space window, defined by pt cut:
LOGF(fatal, "\033[1;31m%s at line %d : phiptWeights is NULL. Check the external file %s with particle weights\033[0m", __FUNCTION__, __LINE__, pw.fFileWithWeights.Data()); // oll
16455
+
LOGF(fatal, "\033[1;31m%s at line %d : phiptWeights is NULL. Check the external file %s with particle weights\033[0m", __FUNCTION__, __LINE__, pw.fFileWithWeights.Data());
16456
+
exit(__LINE__); // TBI 20260714 temporarily here to silent MegaLinter
LOGF(fatal, "in function \033[1;31m%s at line %d : centralityWeights is NULL. Check the external file %s with centrality weights\033[0m", __FUNCTION__, __LINE__, cw.fFileWithCentralityWeights.Data()); // oll
16668
+
LOGF(fatal, "in function \033[1;31m%s at line %d : centralityWeights is NULL. Check the external file %s with centrality weights\033[0m", __FUNCTION__, __LINE__, cw.fFileWithCentralityWeights.Data());
16669
+
exit(__LINE__); // TBI 20260714 temporarily here to silent MegaLinter
0 commit comments