]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix to avoid floating point exceptions. Additional changes in AliEMCALGeometry are...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Mar 2006 15:16:51 +0000 (15:16 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Mar 2006 15:16:51 +0000 (15:16 +0000)
EMCAL/AliEMCALRecPoint.cxx

index 763294077f75d1e3433ef456cb742e649252b6f1..4c300c73abc3f4419a60e832054bbbf6e0d2aca6 100644 (file)
@@ -205,7 +205,7 @@ Int_t AliEMCALRecPoint::Compare(const TObject * obj) const
   TVector3 locpos2;  
   clu->GetLocalPosition(locpos2);  
 
-  Int_t rowdif = (Int_t)TMath::Ceil(locpos1.X()/delta)-(Int_t)TMath::Ceil(locpos2.X()/delta) ;
+  Int_t rowdif = (Int_t)(TMath::Ceil(locpos1.X()/delta)-TMath::Ceil(locpos2.X()/delta)) ;
   if (rowdif> 0) 
     rv = 1 ;
   else if(rowdif < 0)