Classes | |
struct | AbsEtaCaloPredicate |
struct | SysInfo |
Public Types | |
enum | ScaleDecorrelation { FULL, ONENP, FULL_ETA_CORRELATED, ONENP_PLUS_UNCONR } |
enum | ResolutionDecorrelation { FULL, ONENP } |
typedef unsigned int | RandomNumber |
typedef std::function< int(const EgammaCalibrationAndSmearingTool &, const xAOD::Egamma &, const xAOD::EventInfo &)> | IdFunction |
typedef std::function< bool(const xAOD::Egamma &)> | EgammaPredicate |
Public Member Functions | |
EgammaCalibrationAndSmearingTool (const std::string &name) | |
StatusCode | initialize () override |
virtual StatusCode | beginInputFile () override |
Function called when a new input file is opened. | |
virtual StatusCode | beginEvent () override |
Function called when a new events is loaded. | |
virtual StatusCode | endInputFile () override |
virtual CP::CorrectionCode | applyCorrection (xAOD::Egamma &) override |
virtual CP::CorrectionCode | applyCorrection (xAOD::Egamma &input, const xAOD::EventInfo &event_info) |
virtual CP::CorrectionCode | correctedCopy (const xAOD::Electron &, xAOD::Electron *&) override |
virtual CP::CorrectionCode | correctedCopy (const xAOD::Photon &, xAOD::Photon *&) override |
double | getEnergy (const xAOD::Photon &) |
double | getEnergy (const xAOD::Electron &) |
virtual CP::SystematicSet | affectingSystematics () const override |
returns: the list of all systematics this tool can be affected by | |
virtual bool | isAffectedBySystematic (const CP::SystematicVariation &systematic) const override |
returns: whether this tool is affected by the given systematics | |
virtual CP::SystematicSet | recommendedSystematics () const override |
returns: the list of all systematics this tool recommends to use | |
virtual CP::SystematicCode | applySystematicVariation (const CP::SystematicSet &systConfig) override |
virtual void | setRandomSeed (unsigned seed=0) override |
virtual void | setRandomSeedFunction (const IdFunction &&function) |
const IdFunction | getRandomSeedFuction () const |
virtual double | resolution (double energy, double cl_eta, double cl_etaCalo, PATCore::ParticleType::Type ptype=PATCore::ParticleType::Electron, bool withCT=false) const override |
virtual double | getEnergy (xAOD::Egamma *, const xAOD::EventInfo *) |
virtual double | getElectronMomentum (const xAOD::Electron *, const xAOD::EventInfo *) |
double | getResolution (const xAOD::Egamma &particle, bool withCT=true) const override |
double | intermodule_correction (double Ecl, double phi, double eta) const |
double | correction_phi_unif (double eta, double phi) const |
Static Public Attributes | |
static const int | AUTO = 2 |
CP::SystematicCode CP::EgammaCalibrationAndSmearingTool::applySystematicVariation | ( | const CP::SystematicSet & | systConfig | ) | [override, 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.
StatusCode CP::EgammaCalibrationAndSmearingTool::beginEvent | ( | ) | [override, virtual] |
Function called when a new events is loaded.
Dummy implementation that can be overridden by the derived tool.
Reimplemented from asg::AsgMetadataTool.
StatusCode CP::EgammaCalibrationAndSmearingTool::beginInputFile | ( | ) | [override, virtual] |
Function called when a new input file is opened.
Dummy implementation that can be overridden by the derived tool.
Reimplemented from asg::AsgMetadataTool.
StatusCode CP::EgammaCalibrationAndSmearingTool::endInputFile | ( | ) | [override, virtual] |
Function called when the currently open input file got completely processed
Dummy implementation that can be overridden by the derived tool.
Reimplemented from asg::AsgMetadataTool.