From c1150dd0f02bf385223cba8438844e95ede7ae36 Mon Sep 17 00:00:00 2001 From: rpreghen Date: Fri, 5 Nov 2010 10:46:03 +0000 Subject: [PATCH 1/1] protection added to correctly handle runs with no calibration triggers --- TOF/AliTOFPreprocessor.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TOF/AliTOFPreprocessor.cxx b/TOF/AliTOFPreprocessor.cxx index 5d85c696bc5..5f62f0a691b 100644 --- a/TOF/AliTOFPreprocessor.cxx +++ b/TOF/AliTOFPreprocessor.cxx @@ -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)); -- 2.43.0