#include <JERSmearingTool.h>
Public Member Functions | |
JERSmearingTool (const std::string &name) | |
Proper constructor for Athena. | |
JERSmearingTool (const JERSmearingTool &other) | |
Copy constructor for reflex in Athena. | |
JERSmearingTool & | operator= (const JERSmearingTool &) |
We shouldn't need assignment; regardless, it's not implemented. | |
Methods implementing the asg::IAsgTool interface | |
virtual StatusCode | initialize () |
Initialize the tool. | |
Methods implementing the IJERSmearingTool interface | |
virtual CP::CorrectionCode | applyCorrection (xAOD::Jet &jet) |
Apply the JER correction on a modifiable jet. | |
virtual CP::CorrectionCode | correctedCopy (const xAOD::Jet &input, xAOD::Jet *&output) |
Create a JER-corrected copy from a const jet. | |
virtual void | setRandomSeed (long int seed) |
Methods implementing the ISystematicsTool interface | |
virtual bool | isAffectedBySystematic (const CP::SystematicVariation &systematic) const |
Specify whether tool is affected by provided systematic. | |
virtual CP::SystematicSet | affectingSystematics () const |
List of all systematics affecting this tool. | |
virtual CP::SystematicSet | recommendedSystematics () const |
List of all systematics recommended for this tool. | |
virtual CP::SystematicCode | applySystematicVariation (const CP::SystematicSet &systematics) |
Configure tool to apply systematic variation. | |
Protected Member Functions | |
double | getSmearingFactorNom (const xAOD::Jet *jet) |
Get nominal smearing factor. | |
double | getSmearingFactorSys (const xAOD::Jet *jet) |
Get the systematic uncert smearing factor. | |
double | getSmearingFactor (const xAOD::Jet *jet, double sigma) |
Calculate the random gaussian smear factor for a requested sigma. |
Implementation of the dual-use JER smearing tool interface
This tool allows to smear the energy of jets either to correct the jet energy resolution or to evaluate systematic uncertainties. For information, see the Twiki: https://twiki.cern.ch/twiki/bin/view/AtlasProtected/JetEnergyResolutionXAODTools
JERSmearingTool::JERSmearingTool | ( | const std::string & | name | ) |
Proper constructor for Athena.
Standard constructor for standalone usage
virtual void JERSmearingTool::setRandomSeed | ( | long int | seed | ) | [inline, virtual] |
Optional method to set random seed. Note that the tool already has a deterministic way to do this using the jet phi.
Implements IJERSmearingTool.