ATLAS Offline Software
|
base class to forward messages to another class More...
#include <AsgMessagingForward.h>
Inherited by CP::OutOfValidityEventHelper, CP::OutOfValidityHelper, CP::SysCopyHandle< T >, CP::SysFilterReporter, CP::SysFilterReporterCombiner, CP::SysFilterReporterParams, CP::SysHandleArray< HANDLE >, CP::SysListHandle, CP::SysReadDecorHandle< T >, CP::SysReadHandle< T >, CP::SysReadHandleArray< T >, CP::SysReadSelectionHandle, CP::SystematicsCache< CalibData >, CP::SysWriteDecorHandle< T >, CP::SysWriteHandle< T, Aux >, CP::SysWriteSelectionHandle, ElectronDNNCalculator, FilterReporterParams, CP::SysCopyHandle< const DataVector >, CP::SysCopyHandle< DataVector >, CP::SysCopyHandle< xAOD::MissingETContainer_v1 >, CP::SysHandleArray< float >, CP::SysHandleArray< SysReadSelectionHandle >, CP::SysReadDecorHandle< float >, CP::SysReadHandle< C >, CP::SysReadHandle< DataVector >, CP::SysReadHandle< xAOD::DiTauJetContainer >, CP::SysReadHandle< xAOD::ElectronContainer >, CP::SysReadHandle< xAOD::EventInfo_v1 >, CP::SysReadHandle< xAOD::JetContainer >, CP::SysReadHandle< xAOD::MissingETContainer_v1 >, CP::SysReadHandle< xAOD::MuonContainer >, CP::SysReadHandle< xAOD::PhotonContainer >, CP::SysReadHandle< xAOD::TauJetContainer >, CP::SystematicsCache< BTaggingEfficiencyJsonTool::sysData >, CP::SystematicsCache< CP::MuonCalibIntSagittaTool::ParameterSetSagitta >, CP::SystematicsCache< CP::MuonCalibIntScaleSmearTool::ParameterSetScaleSmear >, CP::SystematicsCache< std::size_t >, CP::SysWriteDecorHandle< bool >, CP::SysWriteDecorHandle< char >, CP::SysWriteDecorHandle< double >, CP::SysWriteDecorHandle< ElementLink< DataVector > >, CP::SysWriteDecorHandle< float >, CP::SysWriteDecorHandle< int >, CP::SysWriteDecorHandle< PtEtaPhiMVector >, CP::SysWriteDecorHandle< std::vector< int > >, CP::SysWriteDecorHandle< std::vector< std::uint8_t > >, CP::SysWriteHandle< ConstDataVector< C > >, CP::SysWriteHandle< ConstDataVector< xAOD::DiTauJetContainer > >, CP::SysWriteHandle< ConstDataVector< xAOD::ElectronContainer > >, CP::SysWriteHandle< ConstDataVector< xAOD::JetContainer > >, CP::SysWriteHandle< ConstDataVector< xAOD::MuonContainer > >, CP::SysWriteHandle< ConstDataVector< xAOD::PhotonContainer > >, CP::SysWriteHandle< ConstDataVector< xAOD::TauJetContainer > >, CP::SysWriteHandle< DataVector >, CP::SysWriteHandle< DataVector, xAOD::JetAuxContainer_v1 >, and CP::SysWriteHandle< xAOD::MissingETContainer_v1, xAOD::MissingETAuxContainer_v1 >.
Public Member Functions | |
template<typename T > | |
AsgMessagingForward (T *owner) | |
forwarding constructor More... | |
bool | msgLvl (const MSG::Level lvl) const |
Test the output level of the object. More... | |
MsgStream & | msg () const |
The standard message stream. More... | |
MsgStream & | msg (const MSG::Level lvl) const |
The standard message stream. More... | |
Private Attributes | |
std::function< MsgStream &()> | m_msg |
the message stream we use More... | |
base class to forward messages to another class
The idea is that this class should closely mirror the behavior of AsgMessaging but instead of representing a named component in its own right, it forwards all the messages to another component. This is used for things like the systematics data handles that report all their messages as part of the owning algorithm.
Definition at line 28 of file AsgMessagingForward.h.
|
explicit |
forwarding constructor
This is templated to allow arbitrary parent classes to be passed in here using the this
pointer.
Definition at line 82 of file AsgMessagingForward.h.
MsgStream & asg::AsgMessagingForward::msg | ( | ) | const |
The standard message stream.
Definition at line 24 of file AsgMessagingForward.cxx.
MsgStream & asg::AsgMessagingForward::msg | ( | const MSG::Level | lvl | ) | const |
bool asg::AsgMessagingForward::msgLvl | ( | const MSG::Level | lvl | ) | const |
Test the output level of the object.
lvl | The message level to test against |
true
If messages at level "lvl" will be printed Definition at line 11 of file AsgMessagingForward.cxx.
|
private |
the message stream we use
This used to be a simple pointer to the MsgStream
itself, but in AthenaMT the actual object used is local to the thread. So instead of pointing to it directly we are now using a function to look it up, which will get the thread-local object.
Definition at line 77 of file AsgMessagingForward.h.