|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef EGAMMA_CALIB_TOOL_H_
6 #define EGAMMA_CALIB_TOOL_H_
42 bool do_throw =
false) {
46 phi_calo = cluster.
phi();
50 phi_calo = phiCaloAcc(cluster);
53 msg.msg(MSG::ERROR) <<
"phiCalo not available as auxilliary variable"
56 throw std::runtime_error(
"phiCalo not available as auxilliary variable");
58 msg.msg(MSG::WARNING) <<
"using phi as phiCalo" <<
endmsg;
59 phi_calo = cluster.
phi();
65 bool do_throw =
false) {
69 eta_calo = cluster.
eta();
73 eta_calo = etaCaloAcc(cluster);
76 msg.msg(MSG::ERROR) <<
"etaCalo not available as auxilliary variable"
79 throw std::runtime_error(
"etaCalo not available as auxilliary variable");
81 msg.msg(MSG::WARNING) <<
"using eta as etaCalo" <<
endmsg;
98 enum class ScaleDecorrelation {
150 double energy,
double cl_eta,
double cl_etaCalo,
152 bool withCT =
false)
const override;
199 this,
"FixForMissingCells",
true,
200 "AOD fix for cell recovery in core egamma cluster"};
237 double eta_max)
const {
245 std::pair<double, double> edges)
const {
250 const std::vector<std::pair<double, double>>& edges)
const {
251 std::vector<EgammaPredicate>
result;
252 result.reserve(edges.size());
253 for (
const auto&
it : edges) {
260 const std::vector<double>& edges)
const {
261 std::vector<EgammaPredicate>
result;
262 result.reserve(edges.size() - 1);
263 auto it2 = edges.begin();
265 for (; it2 != edges.end(); ++
it, ++it2) {
273 double eta2_min,
double eta2_max)
291 double eta1_min,
double eta1_max,
double eta2_min,
292 double eta2_max)
const {
303 bool withCT =
true)
const override;
309 "calibration service"};
317 std::unique_ptr<AtlasRoot::egammaEnergyCorrectionTool>
m_rootTool;
326 std::map<CP::SystematicVariation, egEnergyCorr::Resolution::Variation>
virtual double phi() const
The azimuthal angle ( ) of the particle.
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Class to wrap a set of SystematicVariations.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
const uint16_t AuthorFwdElectron
Electron reconstructed by the Forward cluster-based algorithm.
Select isolated Photons, Electrons and Muons.
Description of a calorimeter cluster.
virtual double eta() const
The pseudorapidity ( ) of the particle.
::StatusCode StatusCode
StatusCode definition for legacy code.
parameterization of correction for ADC non linearity
bool retrieveMoment(MomentType type, double &value) const
Retrieve individual moment.
Class mimicking the AthMessaging class from the offline software.
float get_phi_calo(const xAOD::CaloCluster &cluster, int author, bool do_throw=false)
@ PHICALOFRAME
Phi in the calo frame (for egamma)
Class describing the basic event information.
Return value from object correction CP tools.
float get_eta_calo(const xAOD::CaloCluster &cluster, int author, bool do_throw=false)
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
Helper class to provide constant type-safe access to aux data.
@ ETACALOFRAME
Eta in the calo frame (for egamma)
setBGCode setTAP setLVL2ErrorBits bool