89 for (
const auto& entry :
m_map ) {
91 std::cout <<
"GaudiTool WARNING " <<
m_message <<
"'" << entry.first <<
"' Counts = " << entry.second
110 static Counter s_InstanceCounter(
" Create/Destroy (mis)balance " );
117 static Counter s_FinalizeCounter(
" Initialize/Finalize (mis)balance " );
145 GaudiToolLocal::s_InstanceCounter.increment(
m_local );
160 GaudiToolLocal::s_FinalizeCounter.increment(
m_local );
172 if ( msgLevel(
MSG::DEBUG ) ) debug() <<
" ==> Finalize the base class GaudiTool " <<
endmsg;
185 GaudiToolLocal::s_FinalizeCounter.decrement(
m_local );
196 bool ownedByToolSvc =
false;
197 unsigned int sanityCheck( 0 );
198 while (
tool && ++sanityCheck < 99999 ) {
199 ownedByToolSvc = (
nullptr != dynamic_cast<const IToolSvc*>(
tool->parent() ) );
200 if ( ownedByToolSvc ) {
break; }
202 tool = dynamic_cast<const IAlgTool*>(
tool->parent() );
204 return ownedByToolSvc;
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.
Header file for class GaudiAlgorithm.
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.
Implements the common functionality between GaudiTools and GaudiAlgorithms.
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.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
The interface implemented by the IncidentSvc service.