]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDcluster.cxx
changes for merging in production mode
[u/mrichter/AliRoot.git] / TRD / AliTRDcluster.cxx
index 2fb0945f22bd08f5b190c951aefa3180e45f13ec..fa6c648c53eca7d219bf29e4b7959cb414420372 100644 (file)
@@ -803,6 +803,8 @@ void AliTRDcluster::SetSigmaY2(Float_t s2, Float_t dt, Float_t exb, Float_t x, F
   }
 
   // store tg^2(phi-a_L) and tg^2(a_L)
+  // limit parametrization to a maximum angle of 25 deg
+  if(TMath::Abs(tgp)>0.466) tgp = (tgp>0.)?0.466:-0.466;
   Double_t tgg = (tgp-exb)/(1.+tgp*exb); tgg *= tgg;
   Double_t exb2= exb*exb;