Skip to content

Commit c283ece

Browse files
ddobrigkalibuild
andauthored
[Common] centrality / minor changes for modular operation (#9867)
Co-authored-by: ALICE Builder <alibuild@users.noreply.github.com>
1 parent d4b5d0d commit c283ece

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

Common/Tools/Multiplicity/multGlauberNBDFitter.cxx

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ Bool_t multGlauberNBDFitter::DoFit()
309309
fk = fGlauberNBD->GetParameter(1);
310310
ff = fGlauberNBD->GetParameter(2);
311311
fnorm = fGlauberNBD->GetParameter(3);
312+
fdMu = fGlauberNBD->GetParameter(4);
312313

313314
return fitptr.Get()->IsValid();
314315
}
@@ -369,18 +370,35 @@ Double_t multGlauberNBDFitter::ContinuousNBD(Double_t n, Double_t mu, Double_t k
369370
return F;
370371
}
371372

372-
void multGlauberNBDFitter::CalculateAvNpNc(TProfile* lNPartProf, TProfile* lNCollProf, TH2F* lNPart2DPlot, TH2F* lNColl2DPlot, TH1F* hPercentileMap)
373+
void multGlauberNBDFitter::CalculateAvNpNc(TProfile* lNPartProf, TProfile* lNCollProf, TH2F* lNPart2DPlot, TH2F* lNColl2DPlot, TH1F* hPercentileMap, Double_t lLoRange, Double_t lHiRange)
373374
{
374375
cout << "Calculating <Npart>, <Ncoll> in centrality bins..." << endl;
376+
cout << "Range to calculate: " << lLoRange << " to " << lHiRange << endl;
377+
378+
cout << "Acquiring values from the fit function..." << endl;
379+
380+
fMu = fGlauberNBD->GetParameter(0);
381+
fk = fGlauberNBD->GetParameter(1);
382+
ff = fGlauberNBD->GetParameter(2);
383+
fnorm = fGlauberNBD->GetParameter(3);
384+
fdMu = fGlauberNBD->GetParameter(4);
385+
386+
cout << "Please inspect now: " << endl;
387+
cout << "Glauber NBD mu ............: " << fMu << endl;
388+
cout << "Glauber NBD k .............: " << fk << endl;
389+
cout << "Glauber NBD f .............: " << ff << endl;
390+
cout << "Glauber NBD norm ..........: " << fnorm << endl;
391+
cout << "Glauber NBD dmu/dNanc .....: " << fdMu << endl;
375392

376393
//2-fold nested loop:
377394
// + looping over all Nancestor combinations
378395
// + looping over all possible final multiplicities
379396
// ^---> final product already multiplicity-binned
380397

381398
//______________________________________________________
382-
Double_t lLoRange, lHiRange;
383-
fGlauberNBD->GetRange(lLoRange, lHiRange);
399+
if (lLoRange < -1 && lHiRange < -1) {
400+
fGlauberNBD->GetRange(lLoRange, lHiRange);
401+
}
384402
// bypass to zero
385403
for (int ibin = 0; ibin < fNNpNcPairs; ibin++) {
386404
if (ibin % 2000 == 0)

Common/Tools/Multiplicity/multGlauberNBDFitter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class multGlauberNBDFitter : public TNamed
7575
Double_t ContinuousNBD(Double_t n, Double_t mu, Double_t k);
7676

7777
//For estimating Npart, Ncoll in multiplicity bins
78-
void CalculateAvNpNc(TProfile* lNPartProf, TProfile* lNCollProf, TH2F* lNPart2DPlot, TH2F* lNColl2DPlot, TH1F* hPercentileMap);
78+
void CalculateAvNpNc(TProfile* lNPartProf, TProfile* lNCollProf, TH2F* lNPart2DPlot, TH2F* lNColl2DPlot, TH1F* hPercentileMap, Double_t lLoRange = -1, Double_t lHiRange = -1);
7979

8080
//void Print(Option_t *option="") const;
8181

0 commit comments

Comments
 (0)