ATLAS Offline Software
Loading...
Searching...
No Matches
Interfaces/EgammaAnalysisInterfaces/EgammaAnalysisInterfaces/IEgammaCalibrationAndSmearingTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6#ifndef EGAMMAANALYSISINTERFACES__IEGAMMA_CALIB_TOOL_H_
7#define EGAMMAANALYSISINTERFACES__IEGAMMA_CALIB_TOOL_H_
8
9#include "AsgTools/IAsgTool.h"
10//xAOD
16// PAT includes
18
19
21 const int run_2016 = 297730;
22 const int run_2015 = 252604;
23}
24
25
26namespace CP {
27
31 public:
32
34
35 virtual StatusCode initialize() = 0;
36
37 //Apply the correction on a modifyable egamma object (xAOD::Electron or xAOD::Photon)
39
40 //Create a corrected copy from a constant egamma object
43
44
45 virtual double resolution( double energy, double cl_eta, double cl_etaCalo,
46 PATCore::ParticleType::Type ptype = PATCore::ParticleType::Electron, bool withCT=false) const = 0;
47 virtual double getResolution(const xAOD::Egamma& particle, bool withCT=true) const = 0;
48 };
49
50}
51#endif
#define ASG_TOOL_INTERFACE(CLASSNAME)
Return value from object correction CP tools.
virtual double getResolution(const xAOD::Egamma &particle, bool withCT=true) const =0
virtual CP::CorrectionCode correctedCopy(const xAOD::Photon &, xAOD::Photon *&) const =0
virtual CP::CorrectionCode applyCorrection(xAOD::Egamma &) const =0
virtual CP::CorrectionCode correctedCopy(const xAOD::Electron &, xAOD::Electron *&) const =0
virtual double resolution(double energy, double cl_eta, double cl_etaCalo, PATCore::ParticleType::Type ptype=PATCore::ParticleType::Electron, bool withCT=false) const =0
virtual StatusCode initialize()=0
Interface for all CP tools supporting systematic variations.
Select isolated Photons, Electrons and Muons.
Egamma_v1 Egamma
Definition of the current "egamma version".
Definition Egamma.h:17
Photon_v1 Photon
Definition of the current "egamma version".
Electron_v1 Electron
Definition of the current "egamma version".