9 #ifndef __StNbdFitMaker_h__
10 #define __StNbdFitMaker_h__
31 const Char_t* dataHistogramName =
"hRefMultTpc") ;
40 TGraph*
Fit(
const Int_t nevents = 1000,
const TString outputFileName =
"");
43 Int_t
Scan(
const Int_t nevents,
44 const Int_t nppbin,
const Double_t nppmin,
const Double_t nppmax,
45 const Int_t kbin,
const Double_t kmin,
const Double_t kmax,
46 const Int_t xbin,
const Double_t xmin,
const Double_t xmax,
48 const Double_t efficiency=1.0,
50 const Double_t triggerbias=1.0,
const Bool_t isConstEfficiency=kTRUE
54 void SetParameters(
const Double_t npp,
const Double_t k,
const Double_t x,
55 const Double_t efficiency,
const Double_t triggerbias,
const Bool_t isConstEfficiency) ;
62 Double_t GetNormalization(
const TH1& h1,
const TH1& h2,
63 const Double_t min,
const Double_t max)
const ;
64 Double_t CalculateChi2(
const TH1& hdata,
const TH1& hfunc,
65 const Double_t minimumMultiplicityCut) ;
67 void CalculateCentrality(
const TH1& hdata,
const TH1& hmc)
const ;
75 Double_t mMinimumMultiplicityCut ;
76 Bool_t mDoCentralityDetermination ;
TGraph * Fit(const Int_t nevents=1000, const TString outputFileName="")
Int_t Scan(const Int_t nevents, const Int_t nppbin, const Double_t nppmin, const Double_t nppmax, const Int_t kbin, const Double_t kmin, const Double_t kmax, const Int_t xbin, const Double_t xmin, const Double_t xmax, const Double_t efficiency=1.0, const Double_t triggerbias=1.0, const Bool_t isConstEfficiency=kTRUE)
Find minimum chi2/NDF in (npp, k, efficiency) space.
void SetParameters(const Double_t npp, const Double_t k, const Double_t x, const Double_t efficiency, const Double_t triggerbias, const Bool_t isConstEfficiency)
Set parameters.
void SetMinimumMultiplicityCut(const Double_t cut)
Set minimum multiplicity cuts to avoid inefficiency (default is M>50)
void DoCentralityDetermination()
Default destructor.
void ReadData(const Char_t *data, const Char_t *glauber, const Char_t *dataHistogramName="hRefMultTpc")
Read real data and glauber ROOT files.