|
ATLAS Offline Software
|
Go to the documentation of this file.
16 m_BackupIso(!backupPreFix.empty()),
17 m_dec_IsoIsBackup(
"IsBackup_" + std::string(
xAOD::Iso::toString(
type)) + (backupPreFix.empty() ?
"" :
"_") + backupPreFix),
18 m_acc_IsoIsBackup(
"IsBackup_" + std::string(
xAOD::Iso::toString(
type)) + (backupPreFix.empty() ?
"" :
"_") + backupPreFix),
26 ATH_MSG_ERROR(__func__<<
"() -- "<<__LINE__<<
": no particle given");
34 <<
" No isolation value was backuped thus far. "
35 <<
"Did you call the BackupIsolation before for "
48 else if (!originalParticle) {
49 ATH_MSG_DEBUG(__func__<<
"() -- "<<__LINE__<<
": No orignal object was found");
56 ATH_MSG_ERROR(__func__<<
"() -- "<<__LINE__<<
": Failed to retrieve isolation "<<
65 ATH_MSG_ERROR(__func__<<
"() -- "<<__LINE__<<
": no particle given");
80 ATH_MSG_ERROR(__func__<<
"() -- "<<__LINE__<<
": no particle given");
84 ATH_MSG_ERROR(__func__<<
"() -- "<<__LINE__<<
": the value is not a number");
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
static AuxTypeRegistry & instance()
Return the singleton registry instance.
std::string toString(const IsoType &iso)
SG::auxid_t auxid() const
Return the aux id for this variable.
IsoVariableHelper(IsoType type, const std::string &backupPreFix, const std::string &isoDecSuffix="")
FloatAccessor m_acc_iso_variable
FloatDecorator m_dec_iso_backup
Class providing the definition of the 4-vector interface.
Select isolated Photons, Electrons and Muons.
CorrectionCode getIsolation(const xAOD::IParticle *particle, float &value) const
CorrectionCode getOriginalIsolation(const xAOD::IParticle *particle, float &value) const
@ Error
Some error happened during the object correction.
IsolationType
Overall enumeration for isolation types in xAOD files.
CharDecorator m_dec_IsoIsBackup
CharAccessor m_acc_IsoIsBackup
FloatDecorator m_dec_iso_variable
CorrectionCode getIsolationFromOriginal(const xAOD::IParticle *particle, float &value) const
CorrectionCode setIsolation(const xAOD::IParticle *P, float value) const
@ Ok
The correction was done successfully.
FloatAccessor m_acc_iso_backup
#define ATH_MSG_WARNING(x)
Return value from object correction CP tools.
CorrectionCode backupIsolation(const xAOD::IParticle *particle) const
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
const IParticle * getOriginalObject(const IParticle ©)
This function can be used to conveniently get a pointer back to the original object from which a copy...