#include <IsoVariableHelper.h>
Definition at line 20 of file IsoVariableHelper.h.
◆ IsoVariableHelper()
| CP::IsoVariableHelper::IsoVariableHelper |
( |
IsoType | type, |
|
|
const std::string & | backupPreFix, |
|
|
const std::string & | isoDecSuffix = "" ) |
Definition at line 14 of file IsoVariableHelper.cxx.
14 :
FloatAccessor m_acc_iso_backup
CharDecorator m_dec_IsoIsBackup
FloatDecorator m_dec_iso_backup
CharAccessor m_acc_IsoIsBackup
FloatAccessor m_acc_iso_variable
FloatDecorator m_dec_iso_variable
std::string toString(const IsoType &iso)
◆ backupIsolation()
Definition at line 64 of file IsoVariableHelper.cxx.
64 {
65 if (!particle) {
66 ATH_MSG_ERROR(__func__<<
"() -- "<<__LINE__<<
": no particle given");
68 }
70 float Isovalue = 0;
73 }
76 }
78 }
@ Error
Some error happened during the object correction.
@ Ok
The correction was done successfully.
CorrectionCode getIsolation(const xAOD::IParticle *particle, float &value) const
◆ getIsolation()
Definition at line 55 of file IsoVariableHelper.cxx.
55 {
57 ATH_MSG_ERROR(__func__<<
"() -- "<<__LINE__<<
": Failed to retrieve isolation "<<
60 }
63 }
static AuxTypeRegistry & instance()
Return the singleton registry instance.
◆ getIsolationFromOriginal()
Definition at line 45 of file IsoVariableHelper.cxx.
45 {
49 else if (!originalParticle) {
50 ATH_MSG_DEBUG(__func__<<
"() -- "<<__LINE__<<
": No orignal object was found");
52 }
54 }
const IParticle * getOriginalObject(const IParticle ©)
This function can be used to conveniently get a pointer back to the original object from which a copy...
◆ getOriginalIsolation()
Definition at line 25 of file IsoVariableHelper.cxx.
25 {
26 if (!particle) {
27 ATH_MSG_ERROR(__func__<<
"() -- "<<__LINE__<<
": no particle given");
29 }
32 } else {
35 <<" No isolation value was backuped thus far. "
36 <<"Did you call the BackupIsolation before for "
39 } else {
41 }
42 }
44 }
#define ATH_MSG_WARNING(x)
CorrectionCode getIsolationFromOriginal(const xAOD::IParticle *particle, float &value) const
◆ initMessaging()
| void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
40{
42
43 if (
m_lvl == MSG::NIL) {
47 }
48}
std::string m_nm
Message source name.
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
std::atomic< MSG::Level > m_lvl
Current logging level.
IMessageSvc * getMessageSvc(bool quiet=false)
◆ isotype()
| IsoType CP::IsoVariableHelper::isotype |
( |
| ) |
const |
◆ lockDecorations()
Definition at line 94 of file IsoVariableHelper.cxx.
95 {
97 const_cast<SG::AuxVectorData&
> (
parts);
101 }
std::atomic_flag m_initialized ATLAS_THREAD_SAFE
Messaging initialized (initMessaging)
◆ msg() [1/2]
| MsgStream & asg::AsgMessaging::msg |
( |
| ) |
const |
|
inherited |
The standard message stream.
- Returns
- A reference to the default message stream of this object.
Definition at line 49 of file AsgMessaging.cxx.
49 {
50#ifndef XAOD_STANDALONE
51 return ::AthMessaging::msg();
52#else
53 return m_msg;
54#endif
55 }
◆ msg() [2/2]
| MsgStream & asg::AsgMessaging::msg |
( |
const MSG::Level | lvl | ) |
const |
|
inherited |
The standard message stream.
- Parameters
-
| lvl | The message level to set the stream to |
- Returns
- A reference to the default message stream, set to level "lvl"
Definition at line 57 of file AsgMessaging.cxx.
57 {
58#ifndef XAOD_STANDALONE
59 return ::AthMessaging::msg( lvl );
60#else
61 m_msg << lvl;
62 return m_msg;
63#endif
64 }
◆ msgLvl()
| bool asg::AsgMessaging::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inherited |
Test the output level of the object.
- Parameters
-
| lvl | The message level to test against |
- Returns
- boolean Indicting if messages at given level will be printed
-
true If messages at level "lvl" will be printed
Definition at line 41 of file AsgMessaging.cxx.
41 {
42#ifndef XAOD_STANDALONE
43 return ::AthMessaging::msgLvl( lvl );
44#else
45 return m_msg.msgLevel( lvl );
46#endif
47 }
◆ name()
| std::string CP::IsoVariableHelper::name |
( |
| ) |
const |
◆ setIsolation()
Definition at line 79 of file IsoVariableHelper.cxx.
79 {
80 if (!particle) {
81 ATH_MSG_ERROR(__func__<<
"() -- "<<__LINE__<<
": no particle given");
83 }
84 if (std::isnan(value) || std::isinf(value)) {
85 ATH_MSG_ERROR(__func__<<
"() -- "<<__LINE__<<
": the value is not a number");
87 }
90 }
◆ setLevel()
| void AthMessaging::setLevel |
( |
MSG::Level | lvl | ) |
|
|
inherited |
◆ ATLAS_THREAD_SAFE
| std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_acc_iso_backup
◆ m_acc_iso_variable
◆ m_acc_IsoIsBackup
◆ m_BackupIso
| bool CP::IsoVariableHelper::m_BackupIso |
|
private |
◆ m_dec_iso_backup
◆ m_dec_iso_variable
◆ m_dec_IsoIsBackup
◆ m_imsg
| std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_isoType
| IsoType CP::IsoVariableHelper::m_isoType |
|
private |
◆ m_lvl
| std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_msg_tls
| boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_nm
| std::string AthMessaging::m_nm |
|
privateinherited |
The documentation for this class was generated from the following files: