#include <JERTool.h>
Public Member Functions | |
JERTool (const std::string &name) | |
Create a proper constructor for Athena. | |
JERTool (const JERTool &) | |
Copy constructor needed for reflex dictionary generation in Athena. | |
JERTool & | operator= (const JERTool &) |
We shouldn't need assignment, but regardless it isn't implemented. | |
~JERTool () | |
Destructor. | |
Methods implementing the asg::IAsgTool interface | |
virtual StatusCode | initialize () |
Initialize the tool. | |
Methods implementing the IJERTool interface. | |
double | getRelResolutionMC (const xAOD::Jet *jet) |
Read the resolution from the MC parameterization. | |
double | getRelResolutionData (const xAOD::Jet *jet) |
Obtain the resolution for data (sigma_MC + offset). | |
double | getUncertainty (const xAOD::Jet *jet, JER::Uncert errType=JER::JER_NP_ALL) |
Calculate resolution uncertainty. | |
Protected Member Functions | |
StatusCode | autoConfigure () |
StatusCode | parseConfiguration () |
Helper method for parsing the configuration. | |
StatusCode | loadJERInputs () |
Helper method for loading the JER inputs. | |
int | getEtaBin (const xAOD::Jet *jet) |
A dual-use tool which provides the jet energy resolution and associated uncertainties. For more information, see: https://twiki.cern.ch/twiki/bin/view/AtlasProtected/JetEnergyResolutionXAODTools
Resolution and uncertainty are retrieved using the getRelResolutionMC, getRelResolutionData, and getUncertainty methods.
JERTool::JERTool | ( | const std::string & | name | ) |
Create a proper constructor for Athena.
Create a constructor for standalone usage
StatusCode JERTool::autoConfigure | ( | ) | [protected] |
Attempt auto-configuration of tool using Metadata. This currently only works in Athena.
int JERTool::getEtaBin | ( | const xAOD::Jet * | jet | ) | [protected] |
Get eta bin corresponding for this jet. Indexing convention of eta regions is off-by-one with respect to the TAxis (etaBin = TAxisBin - 1)