Protection againsr divison by zerro
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 28 Nov 2009 14:23:52 +0000 (14:23 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 28 Nov 2009 14:23:52 +0000 (14:23 +0000)
(Marian)

TPC/AliTPCcalibDButil.cxx

index acf2da5..316a052 100644 (file)
@@ -677,6 +677,7 @@ void AliTPCcalibDButil::ProcessNoiseVariations(TVectorF &noiseDeviations)
         //don't use masked channels;
         if (mROC   ->GetValue(irow,ipad)) continue;
         if (mRefROC->GetValue(irow,ipad)) continue;
+       if (nRefROC->GetValue(irow,ipad)==0) continue;
         Float_t deviation=(nROC->GetValue(irow,ipad)/nRefROC->GetValue(irow,ipad))-1;
         for (Int_t i=0;i<npar;++i){
           if (deviation>vThres[i])