Skip to content

Commit 7893d45

Browse files
[PWGLF] Change object name in ccdb and remove string formatting (#17628)
1 parent 7e877ef commit 7893d45

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

PWGLF/Utils/mcCentralityModule.h

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -396,13 +396,13 @@ struct BuilderModule {
396396
{
397397

398398
auto CalibMC = [&](TString const& estimator) {
399-
LOGF(info, "\e[1;31mCalibration for %s estimator\e[0;00m -> Starting...\n", estimator.Data());
399+
LOGF(info, "Calibration for %s estimator -> Starting...\n", estimator.Data());
400400

401401
std::vector<double> percentile_center(nCentBins);
402402
std::vector<double> epercentile_center(nCentBins);
403403

404404
// Histograms
405-
TH2D* h2dMultVsCent_Data = getHist<TH2D>(Form("h2dMultVsCent%s_Data", estimator.Data()));
405+
TH2D* h2dMultVsCent_Data = getHist<TH2D>(Form("hMultEta05VsCent%s_Data", estimator.Data()));
406406
TH2D* h2dMultRecoVsMultGen_MC = getHist<TH2D>(Form("hMultEta05VsGenMult%s", estimator.Data()));
407407
if (!h2dMultVsCent_Data || !h2dMultRecoVsMultGen_MC) {
408408
return (TH1D*)0x0;
@@ -489,11 +489,10 @@ struct BuilderModule {
489489
}
490490
}
491491

492-
LOGF(info, "\e[1;31mCalibration for %s estimator\e[0;00m -> Data centrality bin \e[1;31m%g-%g%%\e[0;00m\n", estimator.Data(), centralityBins[irev], centralityBins[irev + 1]);
493-
LOGF(info, "\e[1;31mCalibration for %s estimator\e[0;00m -> MC multiplicity range %g-%g\n", estimator.Data(), projMC->GetBinLowEdge(endBinMc), projMC->GetBinLowEdge(startBinMc));
494-
LOGF(info, "\e[1;31mCalibration for %s estimator\e[0;00m -> <PV> data = %.4f Vs <PV> MC = %.4f (MC/Data = %.4f%%)\n", estimator.Data(), meanMult_Data, meanMult_MC, (meanMult_MC - meanMult_Data) * 100 / meanMult_Data);
495-
LOGF(info, "\e[1;31mCalibration for %s estimator\e[0;00m -> N entries Data = %g Vs N entries MC = %g\n", estimator.Data(), projData->Integral(), projMC->Integral());
496-
LOGF(info, "\n");
492+
LOGF(info, "Calibration for %s estimator -> Data centrality bin %g-%g%%\n", estimator.Data(), centralityBins[irev], centralityBins[irev + 1]);
493+
LOGF(info, "Calibration for %s estimator -> MC multiplicity range %g-%g\n", estimator.Data(), projMC->GetBinLowEdge(endBinMc), projMC->GetBinLowEdge(startBinMc));
494+
LOGF(info, "Calibration for %s estimator -> <PV> data = %.4f Vs <PV> MC = %.4f (MC/Data = %.4f%%)\n", estimator.Data(), meanMult_Data, meanMult_MC, (meanMult_MC - meanMult_Data) * 100 / meanMult_Data);
495+
LOGF(info, "Calibration for %s estimator -> N entries Data = %g Vs N entries MC = %g\n", estimator.Data(), projData->Integral(), projMC->Integral());
497496
for (int ibin = 1; ibin <= h1dCalib->GetNbinsX(); ibin++) {
498497
if (ibin <= startBinMc && ibin >= endBinMc) {
499498
h1dCalib->SetBinContent(ibin, percentile_center[i]);
@@ -563,10 +562,10 @@ struct BuilderModule {
563562
}
564563
}
565564

566-
LOGF(info, "\e[1;31mCalibration for %s estimator\e[0;00m -> Data centrality bin \e[1;31m%g-%g%%\e[0;00m\n", estimator.Data(), centralityBins[irev - 1], centralityBins[irev]);
567-
LOGF(info, "\e[1;31mCalibration for %s estimator\e[0;00m -> MC multiplicity range %g-%g\n", estimator.Data(), projMC->GetBinLowEdge(startBinMc), projMC->GetBinLowEdge(endBinMc + 1));
568-
LOGF(info, "\e[1;31mCalibration for %s estimator\e[0;00m -> <PV> data = %.4f Vs <PV> MC = %.4f\n", estimator.Data(), meanMult_Data, meanMult_MC);
569-
LOGF(info, "\e[1;31mCalibration for %s estimator\e[0;00m -> N entries Data = %g Vs N entries MC = %g\n", estimator.Data(), projData->Integral(), projMC->Integral());
565+
LOGF(info, "Calibration for %s estimator -> Data centrality bin %g-%g%%\n", estimator.Data(), centralityBins[irev - 1], centralityBins[irev]);
566+
LOGF(info, "Calibration for %s estimator -> MC multiplicity range %g-%g\n", estimator.Data(), projMC->GetBinLowEdge(startBinMc), projMC->GetBinLowEdge(endBinMc + 1));
567+
LOGF(info, "Calibration for %s estimator -> <PV> data = %.4f Vs <PV> MC = %.4f\n", estimator.Data(), meanMult_Data, meanMult_MC);
568+
LOGF(info, "Calibration for %s estimator -> N entries Data = %g Vs N entries MC = %g\n", estimator.Data(), projData->Integral(), projMC->Integral());
570569
for (int ibin = 1; ibin <= h1dCalib->GetNbinsX(); ibin++) {
571570
if (ibin <= endBinMc && ibin >= startBinMc) {
572571
h1dCalib->SetBinContent(ibin, percentile_center[i]);
@@ -577,7 +576,7 @@ struct BuilderModule {
577576
} // End loop over centrality bins
578577
}
579578

580-
LOGF(info, "\e[1;31mCalibration for %s estimator\e[0;00m -> Done!\n", estimator.Data());
579+
LOGF(info, "Calibration for %s estimator -> Done!\n", estimator.Data());
581580

582581
return h1dCalib;
583582
};

0 commit comments

Comments
 (0)