Project
Loading...
Searching...
No Matches
BoostHistogramUtils.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
14
16
17namespace o2
18{
19namespace utils
20{
21
23{
24 switch (errorcode) {
26 return "Gaus fit failed! xMax < 4";
28 return "Gaus fit failed! xMax too large";
30 return "Gaus fit failed! entries < 12";
32 return "Gaus fit failed! std::abs(par[1]) < kTol";
34 return "Gaus fit failed! std::abs(par[2]) < kTol";
36 return "Gaus fit failed! RMS < kTol";
37 default:
38 return "Gaus fit failed! Unknown error code";
39 }
40 return "Gaus fit failed! Unknown error code";
41}
42
46{
47 return "[Error]: Fit return an invalid result.";
48}
49} // namespace utils
50} // namespace o2
std::string createErrorMessage(o2::utils::FitGausError_t errorcode)
Printing an error message when then fit returns an invalid result.
FitGausError_t
Error code for invalid result in the fitGaus process.
@ FIT_ERROR_KTOL_MEAN
Gaus fit failed! std::abs(par[1]) < kTol.
@ FIT_ERROR_KTOL_RMS
Gaus fit failed! RMS < kTol.
@ FIT_ERROR_ENTRIES
Gaus fit failed! entries < 12.
@ FIT_ERROR_MIN
Gaus fit failed! yMax < 4.
@ FIT_ERROR_KTOL_SIGMA
Gaus fit failed! std::abs(par[2]) < kTol.
@ FIT_ERROR_MAX
Gaus fit failed! yMax too large.
std::string createErrorMessageFitGaus(o2::utils::FitGausError_t errorcode)
Printing an error message when then fit returns an invalid result.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Common utility functions.