Commit d2f617f4 authored by Jens Kroeger's avatar Jens Kroeger
Browse files

AnalysisTimingATLASpix: if not enough statistics for gaussian fit, use mean of temp histogram

(cherry picked from commit d67431d1)
parent a89f20d1
......@@ -680,10 +680,9 @@ void AnalysisTimingATLASpix::finalise() {
// if(hTemp->GetEntries() < 500) { // too few entries to fit
if(hTemp->GetEntries() < 1000) { // too few entries to fit
timePeak = hTemp->GetMean();
timePeakErr = 0; // hTemp->GetStdDev();
delete hTemp;
timePeak = 0;
timePeakErr = 0;
continue;
} else {
binMax = hTemp->GetMaximumBin();
timePeak = hTemp->GetXaxis()->GetBinCenter(binMax);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment