ATLAS Offline Software
|
Class mimicking the AthMessaging class from the offline software. More...
#include <AsgMessaging.h>
Inherits AthMessaging.
Inherited by AtlasRoot::egammaEnergyCorrectionTool, CP::AsgxAODMetNTupleMakerAlg::ElementProcessor, CP::AsgxAODNTupleMakerAlg::ContainerProcessor, CP::AsgxAODNTupleMakerAlg::ElementProcessor, CP::IsolationCondition, CP::IsolationCorrection, CP::IsoVariableHelper, eflowCellSubtractionFacilitator, egammaLayerRecalibTool, egammaMVAFunctions::ConversionHelper, egGain::GainUncertainty, FEElectronHelper, FEMuonHelper, get_MaterialResolutionEffect, HLT::FullHolderFactory, HLT::TrigHolderStructure, HLT::TypedHolder< TrigRoiDescriptor, TrigRoiDescriptorCollection >, InDet::SecVtxTrackAccessor, InDet::SecVtxTrackCut, JCT::HotCell, jet::ConfigHelper [private]
, jet::CorrelationMatrix, jet::OptionHelper, jet::ResolutionHelper, jet::UncertaintyComponent, jet::UncertaintyGroup, jet::UncertaintyHistogram, jet::UncertaintySet [virtual]
, JetCalibrationStep, LArTemperatureCorrectionTool, LinearityADC, MinimalSumAssociation, ORUtils::MuJetGhostDRMatcher, ORUtils::ToolBox, PanTau::HelperFunctions, PFCalcRadialEnergyProfiles, PFSubtractionEnergyRatioCalculator, PFSubtractionStatusSetter, ResidualOffsetCorrection, Ringer::onnx::RingerSelector, Root::TElectronEfficiencyCorrectionTool, Root::TElectronIsEMSelector, Root::TElectronLikelihoodTool, Root::TForwardElectronIsEMSelector, Root::TForwardElectronLikelihoodTool, Root::TPhotonIsEMSelector, TauGNN, TauGNNUtils::GNNVarCalc, TauJetRNN, TauJetRNNUtils::VarCalc, tauRecTools::BDTHelper, Trig::MatchingImplementation, TrigGlobEffCorr::Calculator, TrigGlobEffCorr::CheckConfig, TrigGlobEffCorr::ImportData, xAOD::SimpleEncrypter, ZdcGeometryDB, ZdcInjPulserAmpMap, and ZdcLucrodMapRun3.
Public Member Functions | |
AsgMessaging (const std::string &name) | |
Constructor with a name. More... | |
AsgMessaging (const INamedInterface *tool) | |
Constructor with a tool pointer. More... | |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
Private Member Functions | |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
std::string | m_nm |
Message source name. More... | |
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
MsgStream instance (a std::cout like with print-out levels) More... | |
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
MessageSvc pointer. More... | |
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
Current logging level. More... | |
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
Messaging initialized (initMessaging) More... | |
Class mimicking the AthMessaging class from the offline software.
This class is supposed to provide a convenient way to provide messaging capabilities for classes that are not dual-use tools themselves. Such classes are encouraged to inherit from this one, and then print output messages using the "standard" messaging macros.
Definition at line 36 of file AsgMessaging.h.
asg::AsgMessaging::AsgMessaging | ( | const std::string & | name | ) |
asg::AsgMessaging::AsgMessaging | ( | const INamedInterface * | tool | ) |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
MsgStream & asg::AsgMessaging::msg | ( | ) | const |
The standard message stream.
Definition at line 49 of file AsgMessaging.cxx.
MsgStream & asg::AsgMessaging::msg | ( | const MSG::Level | lvl | ) | const |
The standard message stream.
lvl | The message level to set the stream to |
Definition at line 57 of file AsgMessaging.cxx.
bool asg::AsgMessaging::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 41 of file AsgMessaging.cxx.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.