Skip to content

Commit 8ed154d

Browse files
committed
Add mult per ancestor histogram to nbd fitter
1 parent 887dfeb commit 8ed154d

2 files changed

Lines changed: 31 additions & 2 deletions

File tree

‎Common/Tools/Multiplicity/multGlauberNBDFitter.cxx‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,20 @@ double multGlauberNBDFitter::ContinuousNBD(const double n, const double mu, cons
443443
return F;
444444
}
445445

446-
void multGlauberNBDFitter::CalculateAvNpNc(TProfile* lNPartProf, TProfile* lNCollProf, TH2F* lNPart2DPlot, TH2F* lNColl2DPlot, TH1F* hPercentileMap, double lLoRange, double lHiRange, TH3D* lNpNcEcc, TH2F* lEcc2DPlot, TH3D* lNpNcB, TH2F* lB2DPlot, TH2F* lNancestor2DPlot, double fProbabilityCutoff)
446+
void multGlauberNBDFitter::CalculateAvNpNc(TProfile* lNPartProf,
447+
TProfile* lNCollProf,
448+
TH2F* lNPart2DPlot,
449+
TH2F* lNColl2DPlot,
450+
TH1F* hPercentileMap,
451+
double lLoRange,
452+
double lHiRange,
453+
TH3D* lNpNcEcc,
454+
TH2F* lEcc2DPlot,
455+
TH3D* lNpNcB,
456+
TH2F* lB2DPlot,
457+
TH2F* lNancestor2DPlot,
458+
TH2F* lMult2DPlot,
459+
double fProbabilityCutoff)
447460
{
448461
LOG(info) << "Calculating <Npart>, <Ncoll> in centrality bins...";
449462
LOG(info) << "Range to calculate: " << lLoRange << " to " << lHiRange;
@@ -557,6 +570,9 @@ void multGlauberNBDFitter::CalculateAvNpNc(TProfile* lNPartProf, TProfile* lNCol
557570
// fill cross-check histogram with lNancestorCount at lNancestors value
558571
lNancestor2DPlot->Fill(lMultValueToFill, lNancestors, lProbability);
559572
}
573+
if (lMult2DPlot) {
574+
lMult2DPlot->Fill(lMultValueToFill, lMultValue, lProbability);
575+
}
560576
if (lNPart2DPlot) {
561577
lNPart2DPlot->Fill(lMultValueToFill, fNpart[ibin], lProbability);
562578
}

‎Common/Tools/Multiplicity/multGlauberNBDFitter.h‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,20 @@ class multGlauberNBDFitter : public TNamed
131131

132132
// For estimating Npart, Ncoll in multiplicity bins
133133
// also viable: eccentricity, impact parameter, ancestor cross-check plot
134-
void CalculateAvNpNc(TProfile* lNPartProf, TProfile* lNCollProf, TH2F* lNPart2DPlot, TH2F* lNColl2DPlot, TH1F* hPercentileMap, double lLoRange = -1, double lHiRange = -1, TH3D* lNpNcEcc = nullptr, TH2F* lEcc2DPlot = nullptr, TH3D* lNpNcB = nullptr, TH2F* lB2DPlot = nullptr, TH2F* lNancestor2DPlot = nullptr, double fProbabilityCutoff = -1);
134+
void CalculateAvNpNc(TProfile* lNPartProf,
135+
TProfile* lNCollProf,
136+
TH2F* lNPart2DPlot,
137+
TH2F* lNColl2DPlot,
138+
TH1F* hPercentileMap,
139+
double lLoRange = -1,
140+
double lHiRange = -1,
141+
TH3D* lNpNcEcc = nullptr,
142+
TH2F* lEcc2DPlot = nullptr,
143+
TH3D* lNpNcB = nullptr,
144+
TH2F* lB2DPlot = nullptr,
145+
TH2F* lNancestor2DPlot = nullptr,
146+
TH2F* lMult2DPlot = nullptr,
147+
double fProbabilityCutoff = -1);
135148

136149
private:
137150
// This function serves as the (analytical) NBD

0 commit comments

Comments
 (0)