]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliMathBase.cxx
make jet event background tnamed, add reset
[u/mrichter/AliRoot.git] / STEER / AliMathBase.cxx
index 2509074b9c3c340b33fdf76b7d13a1de9f8240c3..21bee1a46d9548c1e36a771841154a1927ca7501 100644 (file)
@@ -29,6 +29,8 @@
 #include "TF1.h"
 #include "TLinearFitter.h"
 
+#include "AliExternalTrackParam.h"
+
 //
 // includes neccessary for test functions
 //
@@ -759,15 +761,14 @@ Double_t AliMathBase::BetheBlochAleph(Double_t bg,
          Double_t kp4,
          Double_t kp5) {
   //
-  // This is the ALEPH parameterisation of the Bethe-Bloch formula
+  // This is the empirical ALEPH parameterization of the Bethe-Bloch formula.
+  // It is normalized to 1 at the minimum.
+  //
+  // bg - beta*gamma
+  // 
+  // The default values for the kp* parameters are for ALICE TPC.
+  // The returned value is in MIP units
   //
 
-  Double_t beta = bg/TMath::Sqrt(1.+ bg*bg);
-
-  Double_t aa = TMath::Power(beta,kp4);
-  Double_t bb = TMath::Power(1./bg,kp5);
-
-  bb=TMath::Log(kp3+bb);
-  
-  return (kp2-aa-bb)*kp1/aa;
+  return AliExternalTrackParam::BetheBlochAleph(bg,kp1,kp2,kp3,kp4,kp5);
 }