ATLAS Offline Software
Loading...
Searching...
No Matches
IsoVariableHelper.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4
5#ifndef ISOLATIONSELECTION_ISOVARIABLEHELPER_H
6#define ISOLATIONSELECTION_ISOVARIABLEHELPER_H
7
11#include <xAODBase/IParticle.h>
12
13#include <memory>
14#include <string>
15namespace CP {
17
18 typedef std::unique_ptr<IsoVariableHelper> IsoHelperPtr;
19
21 public:
22 CorrectionCode getOriginalIsolation(const xAOD::IParticle* particle, float& value) const;
23 CorrectionCode getIsolation(const xAOD::IParticle* particle, float& value) const;
24 CorrectionCode backupIsolation(const xAOD::IParticle* particle) const;
25 CorrectionCode setIsolation(const xAOD::IParticle* P, float value) const;
26
27 IsoType isotype() const;
28 std::string name() const;
29
30 IsoVariableHelper(IsoType type, const std::string& backupPreFix, const std::string& isoDecSuffix = "");
31
32 void lockDecorations(const SG::AuxVectorData& parts) const;
33
34 private:
35 CorrectionCode getIsolationFromOriginal(const xAOD::IParticle* particle, float& value) const;
40
43
46 };
47} // namespace CP
48
49#endif
static Double_t P(Double_t *tt, Double_t *par)
Return value from object correction CP tools.
FloatAccessor m_acc_iso_backup
CharDecorator m_dec_IsoIsBackup
IsoVariableHelper(IsoType type, const std::string &backupPreFix, const std::string &isoDecSuffix="")
CorrectionCode backupIsolation(const xAOD::IParticle *particle) const
FloatDecorator m_dec_iso_backup
CorrectionCode getIsolationFromOriginal(const xAOD::IParticle *particle, float &value) const
FloatAccessor m_acc_iso_variable
CorrectionCode getIsolation(const xAOD::IParticle *particle, float &value) const
void lockDecorations(const SG::AuxVectorData &parts) const
CorrectionCode setIsolation(const xAOD::IParticle *P, float value) const
std::string name() const
CorrectionCode getOriginalIsolation(const xAOD::IParticle *particle, float &value) const
FloatDecorator m_dec_iso_variable
Manage lookup of vectors of auxiliary data.
Class mimicking the AthMessaging class from the offline software.
Class providing the definition of the 4-vector interface.
Select isolated Photons, Electrons and Muons.
std::unique_ptr< IsoVariableHelper > IsoHelperPtr