]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliMathBase.cxx
The ALEPH parameterization of the Bethe-Bloch formula is now a function of STEER...
[u/mrichter/AliRoot.git] / STEER / AliMathBase.cxx
index cb9fd41ec816a36b254cef9f1ba5627057758fd6..2509074b9c3c340b33fdf76b7d13a1de9f8240c3 100644 (file)
@@ -751,3 +751,23 @@ Double_t AliMathBase::TruncatedGaus(Double_t mean, Double_t sigma, Double_t left
   }while((value-mean)<-leftCut || (value-mean)>rightCut);
   return value;
 }
+
+Double_t AliMathBase::BetheBlochAleph(Double_t bg,
+         Double_t kp1,
+         Double_t kp2,
+         Double_t kp3,
+         Double_t kp4,
+         Double_t kp5) {
+  //
+  // This is the ALEPH parameterisation of the Bethe-Bloch formula
+  //
+
+  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;
+}