Skip to content

Commit 572c4a9

Browse files
fgrosaalibuild
andauthored
[PWGHF] Fix normalisation in macro for FONLL+PYTHIA prediction for non-prompt Hc (#16628)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 4cd0ed8 commit 572c4a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PWGHF/Macros/computeFonllPlusPythiaPredictions.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,12 +316,12 @@ void computeFonllPlusPythiaPredictions(int nDecays, int seed, std::string inFile
316316

317317
std::array<float, 3> normCrossSec{};
318318
for (auto iFonll{0}; iFonll < 3; ++iFonll) {
319-
normCrossSec[iFonll] = hFonllBhad[iFonll]->Integral();
319+
normCrossSec[iFonll] = hFonllBhad[iFonll]->Integral(1, hFonllBhad[iFonll]->GetNbinsX() + 1, "width");
320320
for (auto iChad{0}; iChad < NCharmHadrons; ++iChad) {
321321
hFonllPythiaNonPromptChad[charmHadPdgs[iChad]][NBeautyHadrons][iFonll] = reinterpret_cast<TH1D*>(hFonllPythiaNonPromptChad[charmHadPdgs[iChad]][0][iFonll]->Clone(Form("hFonllNonPrompt%s%s", charmHadNames[iChad].data(), namesFonll[iFonll].data())));
322322
hFonllPythiaNonPromptChad[charmHadPdgs[iChad]][NBeautyHadrons][iFonll]->Reset();
323323
for (auto iBHad{0}; iBHad < NBeautyHadrons; ++iBHad) {
324-
hFonllPythiaNonPromptChad[charmHadPdgs[iChad]][iBHad][iFonll]->Scale(normCrossSec[iFonll] / nDecays);
324+
hFonllPythiaNonPromptChad[charmHadPdgs[iChad]][iBHad][iFonll]->Scale(normCrossSec[iFonll] / nDecays, "width");
325325
hFonllPythiaNonPromptChad[charmHadPdgs[iChad]][NBeautyHadrons][iFonll]->Add(hFonllPythiaNonPromptChad[charmHadPdgs[iChad]][iBHad][iFonll]);
326326
}
327327
}

0 commit comments

Comments
 (0)