#include <JetCalibrationToolExample.h>
Classes | |
struct | Calib |
Public Member Functions | |
JetCalibrationToolExample (const std::string &name) | |
Create a proper constructor for Athena. | |
virtual bool | isAffectedBySystematic (const SystematicVariation &systematic) const |
returns: whether this tool is affected by the given systematis | |
virtual SystematicSet | affectingSystematics () const |
returns: the list of all systematics this tool can be affected by | |
virtual SystematicSet | recommendedSystematics () const |
returns: the list of all systematics this tool recommends to use | |
virtual SystematicCode | applySystematicVariation (const SystematicSet &systConfig) |
Function(s) implementing the asg::IAsgTool interface | |
virtual StatusCode | initialize () |
Function initialising the tool. | |
Function(s) implementing the IJetCalibrationTool interface | |
virtual CorrectionCode | applyCorrection (xAOD::Jet &object) |
Apply the correction on a modifyable object. | |
virtual CorrectionCode | correctedCopy (const xAOD::Jet &input, xAOD::Jet *&output) |
Create a corrected copy from a constant jet. |
A simple implementation of the jet calibration tool interface
This tries to be a simple, but meaningful example of how correction tools should be implemented for Run 2.
CP::JetCalibrationToolExample::JetCalibrationToolExample | ( | const std::string & | name | ) |
Create a proper constructor for Athena.
Create a constructor for standalone usage
SystematicCode CP::JetCalibrationToolExample::applySystematicVariation | ( | const SystematicSet & | systConfig | ) | [virtual] |
effects: configure this tool for the given list of systematic variations. any requested systematics that are not affecting this tool will be silently ignored (unless they cause other errors). failures: systematic unknown failures: requesting multiple variations on the same systematic (e.g. up & down) failures: requesting an unsupported variation on an otherwise supported systematic (e.g. a 2 sigma variation and the tool only supports 1 sigma variations) failures: unsupported combination of supported systematic failures: other tool specific errors
Implements CP::ISystematicsTool.
SystematicSet CP::JetCalibrationToolExample::recommendedSystematics | ( | ) | const [virtual] |
returns: the list of all systematics this tool recommends to use
rationale: In the simple case that we recommend that all our affecting systematics be used we can do this. if we recommend to use only a subset, we have to create that separately.
Implements CP::ISystematicsTool.