]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
avoid coding violation, comparison of a float with an int
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Mar 2013 13:26:16 +0000 (13:26 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Mar 2013 13:26:16 +0000 (13:26 +0000)
ANALYSIS/TenderSupplies/AliEMCALTenderSupply.cxx

index a50cd5cec04e381345edab85e166c676a309f164..767b7b7178f34ca359de995aaa93115fc2f402af 100644 (file)
@@ -1477,7 +1477,7 @@ void AliEMCALTenderSupply::FillDigitsArray()
     
     if(fSetCellMCLabelFromCluster) mcLabel = cellLabels[cellNumber];
     
-    if (mcLabel > 0 && efrac == 0) efrac = 1;
+    if (mcLabel > 0 && efrac < 1e-6) efrac = 1;
     
     new((*fDigitsArr)[idigit]) AliEMCALDigit(mcLabel, mcLabel, cellNumber,
                                              (Float_t)cellAmplitude, (Float_t)cellTime,