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
// LOGF(fatal, "\033[1;31m%s at line %d : this crash can happen if in the output file there is no list with weights for the current run number = %s\033[0m", __FUNCTION__, __LINE__, tc.fRunNumber.Data());
@@ -346,9 +362,9 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to
346
362
if (!hist) {
347
363
LOGF(fatal, "%s: histogram 'hist1' not found in run list", __FUNCTION__);
348
364
}
349
-
hist->SetDirectory(0);
365
+
hist->SetDirectory(nullptr);
350
366
auto histClone = dynamic_cast<TH1D*>(hist->Clone());
351
-
histClone->SetDirectory(0);
367
+
histClone->SetDirectory(nullptr);
352
368
353
369
delete baseList; // release back the memory
354
370
@@ -398,6 +414,9 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to
398
414
caseENTPV:
399
415
thisCent = collision.centNTPV();
400
416
break;
417
+
default:
418
+
LOG(warning) << "Unknown centrality estimator. Using FT0C as default.";
419
+
break; // thisCent is already FT0C
401
420
}
402
421
403
422
auto thisRefMult = collision.multTPC(); // use auto to determine the type
@@ -417,6 +436,9 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to
417
436
case EMultNTracksPV:
418
437
thisRefMult = collision.multNTracksPV();
419
438
break;
439
+
default:
440
+
LOG(warning) << "Unknown multiplicity. Using multTPC as default.";
441
+
break; // thisRefMult is already multTPC
420
442
}
421
443
422
444
ifconstexpr (rs == ERec || rs == ERecAndSim) {
@@ -551,6 +573,9 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to
551
573
caseENTPV:
552
574
thisCent = collision.centNTPV();
553
575
break;
576
+
default:
577
+
LOG(warning) << "Unknown centrality estimator. Using FT0C as default.";
578
+
break; // thisCent is already FT0C
554
579
}
555
580
ifconstexpr (rs == ERecAndSim || rs == ESim) {
556
581
if (!collision.has_mcCollision()) {
@@ -621,7 +646,7 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to
0 commit comments