85 for (
const auto& entry : m_map ) {
87 std::cout <<
"GaudiTool WARNING " << m_message <<
"'" << entry.first <<
"' Counts = " << entry.second
106 static Counter s_InstanceCounter(
" Create/Destroy (mis)balance " );
113 static Counter s_FinalizeCounter(
" Initialize/Finalize (mis)balance " );
142 GaudiToolLocal::s_InstanceCounter.increment(
m_local );
160 GaudiToolLocal::s_FinalizeCounter.increment(
m_local );
188 GaudiToolLocal::s_FinalizeCounter.decrement(
m_local );
200 bool ownedByToolSvc =
false;
201 unsigned int sanityCheck( 0 );
202 while ( tool && ++sanityCheck < 99999 ) {
203 ownedByToolSvc = (
nullptr !=
dynamic_cast<const IToolSvc*
>( tool->
parent() ) );
204 if ( ownedByToolSvc ) {
210 return ownedByToolSvc;
Header file for class GaudiAlgorithm.
StatusCode finalize() override
standard finalization method
Data provider interface definition.
The IChronoStatSvc is the interface implemented by the ChronoStatService.
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
Definition of the IHistogramSvc interface class.
StatusCode initialize() override
standard initialization method
MsgStream & debug() const
shortcut for the method msgStream(MSG::DEBUG)
An abstract interface for Algorithm Context Service.
void reset(TYPE *ptr=nullptr)
Set the internal pointer to the passed one disposing of the old one.
TOOL * tool(const std::string &type, const std::string &name, const IInterface *parent=0, bool create=true) const
Useful method for the easy location of tools.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
The interface implemented by the IncidentSvc service.
MSG::Level msgLevel() const
get the cached level (originally extracted from the embedded MsgStream)