]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
resolve a rounding problem
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 27 Apr 2007 09:29:32 +0000 (09:29 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 27 Apr 2007 09:29:32 +0000 (09:29 +0000)
PHOS/AliPHOSTrigger.cxx

index a9fbcb4433dc3e705bbe1412164c5d43244e9082..e289e69f1860da27a79352f540a76ee0ec762931 100644 (file)
@@ -316,7 +316,7 @@ Bool_t AliPHOSTrigger::IsPatchIsolated(Int_t iPatchType, const TClonesArray * am
 
   AliDebug(2,Form("Type %d, Maximum amplitude %f, patch+isol square %f",iPatchType, maxamp, amp));
 
-  if(amp < maxamp){
+  if(TMath::Nint(amp*1E5) < TMath::Nint(maxamp*1E5)){
     AliError(Form("Bad sum: Type %d, Maximum amplitude %f, patch+isol square %f",iPatchType, maxamp, amp));
     return kFALSE;
   }