// A. Dainese andrea.dainese@pd.infn.it
//----------------------------------------------------------------------------
+#include <TMath.h>
#include <TObject.h>
class TH1F;
AliQuenchingWeights& operator=(const AliQuenchingWeights& a)
{a.Copy(*this); return(*this);}
virtual ~AliQuenchingWeights();
-
+ void Init();
void Reset();
Int_t SampleEnergyLoss();
Int_t SampleEnergyLoss(Int_t ipart, Double_t r);
Float_t GetMu() const {return fMu;}
Float_t GetQTransport() const {return fQTransport;}
Float_t GetK() const {return fK;}
- Bool_t GetECMethod() const {return fECMethod;}
+ kECMethod GetECMethod() const {return fECMethod;}
Bool_t GetTablesLoaded() const {return fTablesLoaded;}
Bool_t GetMultSoft() const {return fMultSoft;}
Int_t GetLengthMax() const {return fLengthMax;}
Double_t GetMeanELoss(Int_t ipart,Double_t medval,Double_t l) const;
Double_t GetMeanELoss(Int_t ipart,Double_t medval,TH1F *hEll) const;
- Double_t GetMeanELoss(Int_t ipart,Double_t r) const;
+ Double_t GetMeanELoss(Int_t ipart,Double_t r) const;
- void PlotDiscreteWeights(Double_t len=4) const;
- void PlotContWeights(Int_t itype,Double_t len) const;
- void PlotContWeightsVsL(Int_t itype,Double_t medval) const;
- void PlotAvgELoss(Double_t len ,Double_t e=1.e10) const;
- void PlotAvgELoss(TH1F *hEll,Double_t e=1.e10) const;
- void PlotAvgELossVsL(Double_t e=1.e10) const;
- void PlotAvgELossVsPt(Double_t medval,Double_t len) const;
- void PlotAvgELossVsPt(Double_t medval,TH1F *hEll) const;
+ void PlotDiscreteWeights(Double_t len=4,Double_t qm=5) const;
+ void PlotContWeights(Int_t itype,Double_t len) const;
+ void PlotContWeightsVsL(Int_t itype,Double_t medval) const;
+ void PlotAvgELoss(Double_t len,Double_t qm=5,Double_t e=1.e10) const;
+ void PlotAvgELoss(TH1F *hEll,Double_t e=1.e10) const;
+ void PlotAvgELossVsL(Double_t e=1.e10) const;
+ void PlotAvgELossVsPt(Double_t medval,Double_t len) const;
+ void PlotAvgELossVsPt(Double_t medval,TH1F *hEll) const;
protected:
Int_t GetIndex(Double_t len) const;