#include <CorrectionCode.h>
Public Types | |
| enum | ErrorCode { Error = 0, OutOfValidityRange = 1, Ok = 2 } |
Possible values for the correction code. More... | |
Public Member Functions | |
| CorrectionCode (ErrorCode code=Ok) | |
| Constructor with a correction code. | |
| CorrectionCode (const CorrectionCode &parent) | |
| Copy constructor. | |
| ~CorrectionCode () | |
| Destructor. | |
| CorrectionCode & | operator= (const CorrectionCode &rhs) |
| Assignment operator. | |
| ErrorCode | code () const |
| The code stored internally. | |
| operator ErrorCode () const | |
| Automatic conversion to the enumeration value. | |
| bool | operator< (const CorrectionCode &rhs) const |
| void | setChecked () const |
| Mark the correction code as checked, ignoring its value. | |
| void | ignore () const |
| Ignore the correction code, marking it as checked. | |
Static Public Member Functions | |
| static void | enableFailure () |
| Enable failure (with a backtrace) on an unchecked correction code. | |
| static void | disableFailure () |
| Disable failure (no backtrace) on an unchecked correction code. | |
Return value from object correction CP tools
This class needs to be used in CP tools implementing object corrections when they implement the interface described in: https://cds.cern.ch/record/1667206 In short, all such CP tools should implement the two following functions:
CorrectionCode Tool::applyCorrection( xAODObjectType& inputObject );
CorrectionCode Tool::correctedCopy( const xAODObjectType& inputObject,
xAODObjectType*& outputObject );
| bool CP::CorrectionCode::operator< | ( | const CorrectionCode & | rhs | ) | const [inline] |
Ordering operator. To make it possible to use this type as an STL container key
1.6.1