Skip to content

Commit 5ba1c85

Browse files
committed
update
1 parent 7d79e88 commit 5ba1c85

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Common/Tasks/centralityStudy.cxx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ struct centralityStudy {
450450
reportSuccess(hCentralityNTPV, "NTPV");
451451
reportSuccess(hCentralityNGlo, "NGlobals");
452452
reportSuccess(hCentralityMFT, "MFT");
453+
LOGF(info, "Centrality calibration loading done.");
453454
}
454455

455456
if (!studies.doRunByRunHistograms) {
@@ -559,9 +560,9 @@ struct centralityStudy {
559560
void configureCentrality(const TCollision& collision)
560561
{
561562
if (ccdbSettings.fetchCentralityCalibration) {
562-
LOGF(info, "Centrality calibration loading done.");
563563
auto getCent = [](TH1* hist, float mult) -> float {
564-
return hist ? hist->GetBinContent(mult) : 0.0;
564+
static constexpr float CentralityNotFound = 105.f;
565+
return hist ? hist->GetBinContent(mult) : CentralityNotFound;
565566
};
566567

567568
centFV0A = getCent(hCentralityFV0A, collision.multFV0A());
@@ -598,14 +599,15 @@ struct centralityStudy {
598599
centMFT = collision.centMFT();
599600
}
600601
}
601-
}
602602
}
603603

604604
template <typename TCollision>
605605
void genericProcessCollision(const TCollision& collision)
606606
// process this collisions
607607
{
608608
initRun(collision);
609+
configureCentrality(collision);
610+
609611
histos.fill(HIST("hCollisionSelection"), 0); // all collisions
610612
if (studies.doRunByRunHistograms) {
611613
getHist(TH1, histPath + "hCollisionSelection")->Fill(0);

0 commit comments

Comments
 (0)