From 9848d9504f411e48cb62053d79b5d42388423d5c Mon Sep 17 00:00:00 2001 From: hristov Date: Wed, 22 Mar 2006 15:16:51 +0000 Subject: [PATCH] Fix to avoid floating point exceptions. Additional changes in AliEMCALGeometry are needed --- EMCAL/AliEMCALRecPoint.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EMCAL/AliEMCALRecPoint.cxx b/EMCAL/AliEMCALRecPoint.cxx index 763294077f7..4c300c73abc 100644 --- a/EMCAL/AliEMCALRecPoint.cxx +++ b/EMCAL/AliEMCALRecPoint.cxx @@ -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) -- 2.43.0