]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSpidESD.cxx
Protection involving the existance of gMC added. Usefull when the ITS is used
[u/mrichter/AliRoot.git] / ITS / AliITSpidESD.cxx
index 270f40891dc4e4d64ad0b8b39fe7e373a5e5e012..b058f043e8dd6b60aea45c56b9249080f4ce6162 100644 (file)
@@ -42,8 +42,10 @@ Double_t AliITSpidESD::Bethe(Double_t bg) {
   //
   Double_t bg2=bg*bg;
   Double_t bethe;
-  if (bg<3.5) bethe=(1.+ bg2)/bg2*(log(5940*bg2) - bg2/(1.+ bg2));
-  else bethe=(1.+ bg2)/bg2*(log(3.5*5940)+log(bg) - bg2/(1.+ bg2));
+  /*if (bg<3.5) 
+     bethe=(1.+ bg2)/bg2*(log(5940*bg2) - bg2/(1.+ bg2));
+  else*/  // not 100% clear why...
+     bethe=(1.+ bg2)/bg2*(log(3.5*5940*bg) - bg2/(1.+ bg2));
   return bethe/11.091;
 }