@@ -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 )
0 commit comments