9 #ifndef __StNegativeBinomial_h__
10 #define __StNegativeBinomial_h__
26 StNegativeBinomial(
const Double_t npp = 2.38,
const Double_t k = 2.00,
const Double_t x = 0.13,
27 const Double_t efficiency = 1.0,
const Double_t triggerbias = 1.0,
const Bool_t isConstEfficiency=kTRUE);
36 Int_t
GetMultiplicity(
const Double_t npart,
const Double_t ncoll)
const ;
40 const Double_t weight)
const ;
42 Double_t GetNegativeBinomial(
const Int_t n)
const ;
43 Double_t GetNegativeBinomial(
const Int_t n,
const Double_t m)
const ;
46 void SetParameters(
const Double_t npp,
const Double_t k,
const Double_t x = -1.0) ;
49 Double_t GetNpp()
const ;
50 Double_t
GetK()
const ;
51 Double_t
GetX()
const ;
59 void InitHistogram() ;
62 const Double_t mEfficiency ;
63 const Double_t mTriggerBias ;
67 const Bool_t mIsConstEfficiency ;
68 static UInt_t mCounter ;
75 inline Double_t StNegativeBinomial::GetNpp()
const {
return mNpp ; }
void SetParameters(const Double_t npp, const Double_t k, const Double_t x=-1.0)
Get NBD(npp*m, k*m; n)
void DrawNbd() const
Get flag for efficiency.
Double_t GetK() const
Get npp parameter.
StNegativeBinomial(const Double_t npp=2.38, const Double_t k=2.00, const Double_t x=0.13, const Double_t efficiency=1.0, const Double_t triggerbias=1.0, const Bool_t isConstEfficiency=kTRUE)
Default constructor.
Bool_t IsConstEfficiency() const
Get mEfficiency (CAUTION: value has different meaning between constant and multiplicity dep...
Double_t GetEfficiency() const
Get x parameter.
virtual ~StNegativeBinomial()
Default destructor.
Int_t GetMultiplicity(const Double_t npart, const Double_t ncoll) const
Get multiplcity by convoluting NBD.
Double_t GetX() const
Get k parameter.
Double_t GetTwoComponentMultiplicity(const Double_t npart, const Double_t ncoll) const
(1-x)*npart/2 + x*ncoll