]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenMC.cxx
Restored compilation with CMake. The administrators of the modules have to mantain...
[u/mrichter/AliRoot.git] / EVGEN / AliGenMC.cxx
index 466f44b21439be3dc7fef765db5d1976540362aa..5588b5c12339aa208ea05700f96782fd8a7fd4b6 100644 (file)
@@ -361,7 +361,7 @@ void AliGenMC::Boost()
 //
 
     Double_t beta  = TMath::TanH(fDyBoost);
-    Double_t gamma = 1./TMath::Sqrt(1.-beta*beta);
+    Double_t gamma = 1./TMath::Sqrt((1.-beta)*(1.+beta));
     Double_t gb    = gamma * beta;
 
     //    printf("\n Boosting particles to lab frame %f %f %f", fDyBoost, beta, gamma);