]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenParam.cxx
update of HLT TRD macros
[u/mrichter/AliRoot.git] / EVGEN / AliGenParam.cxx
index a72a584c5dc61a4fb8ed72fee275e7b1ff98d851..506347f5e663cc4ff4ca7a89faa14dd57545dd0d 100644 (file)
@@ -321,7 +321,7 @@ void AliGenParam::Generate()
                    "Division by 0: Please check you rapidity range !");
          }
          
-         pl=xmt*ty/sqrt(1.-ty*ty);
+         pl=xmt*ty/sqrt((1.-ty)*(1.+ty));
          theta=TMath::ATan2(pt,pl);
 // Cut on theta
          if(theta<fThetaMin || theta>fThetaMax) continue;