|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef PATINTERFACES_CORRECTIONCODE_H
6 #define PATINTERFACES_CORRECTIONCODE_H
37 OutOfValidityRange = 1,
53 return m_code < rhs.m_code;
78 template<
typename T>
struct CheckHelper;
100 #endif // not PATINTERFACES_CORRECTIONCODE_H
bool operator<(const DataVector< T > &a, const DataVector< T > &b)
Vector ordering relation.
static CP::CorrectionCode successCode()
produce a status code to report success
void ignore() const noexcept
Ignore the correction code.
this is an internal traits class for status codes used by the ANA_CHECK* macros
static CP::CorrectionCode failureCode()
produce a status code to report failure
static void enableFailure() noexcept
Macro wrapping the [[nodiscard]] attribute.
bool const RAWDATA *ch2 const
Select isolated Photons, Electrons and Muons.
ErrorCode
Possible values for the correction code.
@ OutOfValidityRange
Input object is out of validity range.
static bool isSuccess(const CP::CorrectionCode &sc)
whether the status code reports a success
ErrorCode
Error code: whether the classification was successful or failed.
@ Error
Some error happened during the object correction.
ErrorCode code() const noexcept
The code stored internally.
void setChecked() const noexcept
Older functions for backward compatibility with the pre-nondiscard version of this class in which we ...
ErrorCode m_code
The stored correction code.
@ Ok
The correction was done successfully.
Return value from object correction CP tools.
static bool isOutOfValidityRange(const CP::CorrectionCode &sc)
whether the status code reports out of validity
CorrectionCode(ErrorCode code=Ok) noexcept
Constructor with a correction code.
static void disableFailure() noexcept