]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/Ali3Vector.cxx
macro and flowevent maker to run part of the code in root
[u/mrichter/AliRoot.git] / RALICE / Ali3Vector.cxx
index df6651216993e9de17228600a4d7868f753940f7..8645655e4c5990ae140618697278ba0bdd8a6482 100644 (file)
@@ -1045,6 +1045,8 @@ Double_t Ali3Vector::GetOpeningAngle(Ali3Vector& q,TString u)
 
  Double_t x=v1.Dot(v2);
  Double_t dx=fDresult;
+ if (x>1.) x=1;
+ if (x<-1.) x=-1;
  ang=acos(x);
  fDresult=0;
  if (fabs(x)<1.-dx) fDresult=dx/sqrt(1.-x*x);