#include <SystematicCode.h>
Public Types | |
enum | ESysCode { Unsupported = 0, Ok = 1 } |
Possible values for the systematic code. More... | |
Public Member Functions | |
SystematicCode (ESysCode code) | |
Constructor with the systematic code. | |
SystematicCode (const SystematicCode &parent) | |
Copy constructor. | |
~SystematicCode () | |
Destructor. | |
SystematicCode & | operator= (const SystematicCode &rhs) |
Assignment operator. | |
ESysCode | code () const |
The code stored internally. | |
operator ESysCode () const | |
Automatic conversion to the enumeration value. | |
bool | operator< (const SystematicCode &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 systematic code. | |
static void | disableFailure () |
Disable failure (no backtrace) on an unchecked systematic code. |
Return value from CP tools supporting systematic variations
This class needs to be used in CP tools that support systematic variations, and implement the interface described in: https://cds.cern.ch/record/1667206 In short, all such CP tools should implement the two following functions:
SystematicCode Tool::applySystematicVariation(
const std::set< SystematicVariation >& systConfig );
bool Tool::isAffectedBySystematic( const SystematicVariation& s ) const;
std::set< SystematicVariation > Tool::affectingSystematics(
const std::set< SystematicVariation >& inputSystList ) const;
bool CP::SystematicCode::operator< | ( | const SystematicCode & | rhs | ) | const [inline] |
Ordering operator. To make it possible to use this type as an STL container key