protection added to correctly handle runs with no calibration triggers
authorrpreghen <rpreghen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Nov 2010 10:46:03 +0000 (10:46 +0000)
committerrpreghen <rpreghen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Nov 2010 10:46:03 +0000 (10:46 +0000)
TOF/AliTOFPreprocessor.cxx

index 5d85c69..5f62f0a 100644 (file)
@@ -1045,6 +1045,8 @@ AliTOFPreprocessor::ProcessNoiseCalibTrg()
     rate_err /= fMatchingWindow[ich] * 1.e-9;
     hNoiseRate->SetBinContent(ich + 1, rate);
     hNoiseRate->SetBinError(ich + 1, rate_err);
+    /* check error */
+    if (rate_err == 0.) continue;
     /* check noise rate and set noise flags */
     if ((rate - 3. * rate_err) > noiseThr) {
       Log(Form("channel %d detected as noisy: rate = (%f +- %f) Hz", ich, rate, rate_err));