//__________________________________________________________________
TArrayD
-AliFMDEnergyFitter::RingHistos::::MakeIncreasingAxis(Int_t n, Double_t min,
- Double_t max)
+AliFMDEnergyFitter::RingHistos::MakeIncreasingAxis(Int_t n, Double_t min,
+ Double_t max) const
{
// Service function to define a logarithmic axis.
// Parameters:
Int_t i = 1;
for (i = 1; i < n+1; i++) {
Double_t dI = float(i)/n;
- Double_t next = bins[i-1] + dX1 + dI * dI * dX1;
+ Double_t next = bins[i-1] + dx + dI * dI * dx;
bins[i] = next;
if (next > max) break;
}
TH1* hC = 0;
TH1* hMpv = 0;
TH1* hW = 0;
- TH1* nS = 0;
+ TH1* hS = 0;
TH1* hN = 0;
TH1* hA[nLandau-1];
pars->Add(hChi2 = MakePar("chi2", "#chi^{2}/#nu", eta));
*
* @param eAxis
*/
- void Init(const TAxis& eAxis);
+ void Init(const TAxis& eAxis,
+ Double_t maxDE=10,
+ Int_t nDEbins=300,
+ Bool_t useIncrBin=true);
/**
* Fill histogram
*
* @return true if fit is good.
*/
Bool_t CheckResult(TFitResult& r) const;
-
- TArrayD MakeLogAxis(Int_t n, Double_t min, Double_t max) const
+ TArrayD MakeIncreasingAxis(Int_t n, Double_t min, Double_t max) const;
/**
* Make E/E_mip histogram
*
* @param eMin Least signal
* @param eMax Largest signal
*/
- void Make(Int_t ieta, Double_t eMin, Double_t eMax);
+ void Make(Int_t ieta, Double_t eMin, Double_t eMax,
+ Double_t deMax=12, Int_t nDeBins=300, Bool_t incr=true);
/**
* Make a parameter histogram
*