X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliMathBase.h;h=fdbec7d01075fb657985aac11ca2043ed2ba9444;hb=6299a8ba4d0d92889319fa74ee8d8ae1acb18fdf;hp=ba1d50b746091339de480253dded99d9a6f931fa;hpb=09a29b6741900ff097229e2e02e61b4abe2fbd30;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliMathBase.h b/STEER/AliMathBase.h index ba1d50b7460..fdbec7d0107 100644 --- a/STEER/AliMathBase.h +++ b/STEER/AliMathBase.h @@ -30,14 +30,29 @@ class AliMathBase : public TObject static Float_t GetCOG(Short_t *arr, Int_t nBins, Float_t xMin, Float_t xMax, Float_t *rms=0, Float_t *sum=0); static Double_t TruncatedGaus(Double_t mean, Double_t sigma, Double_t cutat); + static Double_t TruncatedGaus(Double_t mean, Double_t sigma, Double_t leftCut, Double_t rightCut); static TGraph2D * MakeStat2D(TH3 * his, Int_t delta0, Int_t delta1, Int_t type); static TGraph * MakeStat1D(TH3 * his, Int_t delta1, Int_t type); + static Double_t ErfcFast(Double_t x); // Complementary error function erfc(x) + static Double_t ErfFast(Double_t x) {return 1-ErfcFast(x);} // Error function erf(x) + // // TestFunctions: // static void TestGausFit(Int_t nhistos=5000); + + // + // Bethe-Bloch formula parameterizations + // + static Double_t BetheBlochAleph(Double_t bg, + Double_t kp1=0.76176e-1, + Double_t kp2=10.632, + Double_t kp3=0.13279e-4, + Double_t kp4=1.8631, + Double_t kp5=1.9479 + ); ClassDef(AliMathBase,0) // Various mathematical tools for physics analysis - which are not included in ROOT TMath