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

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

parent 6e07dd0e
......@@ -679,10 +679,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