66 : m_message (
std::move(
msg) )
85 for (
const auto& entry : m_map )
88 std::cout <<
"GaudiTool WARNING " << m_message
89 <<
"'" << entry.first <<
"' Counts = " << entry.second
108 static Counter s_InstanceCounter (
" Create/Destroy (mis)balance " ) ;
115 static Counter s_FinalizeCounter (
" Initialize/Finalize (mis)balance " ) ;
142 ,
m_local ( this_type +
"/" + this_name )
145 GaudiToolLocal::s_InstanceCounter.increment (
m_local ) ;
152 GaudiToolLocal::s_InstanceCounter.decrement (
m_local ) ;
164 GaudiToolLocal::s_FinalizeCounter.increment(
m_local ) ;
178 debug() <<
" ==> Finalize the base class GaudiTool " <<
endmsg;
191 GaudiToolLocal::s_FinalizeCounter.decrement(
m_local ) ;
203 bool ownedByToolSvc =
false;
204 unsigned int sanityCheck(0);
205 while ( tool && ++sanityCheck < 99999 )
207 ownedByToolSvc = (
nullptr !=
dynamic_cast<const IToolSvc*
>(tool->
parent()) );
208 if ( ownedByToolSvc ) {
break; }
212 return ownedByToolSvc;
Header file for class GaudiAlgorithm.
StatusCode finalize() override
standard finalization method
Data provider interface definition.
bool isFailure() const
Test for a status code of FAILURE.
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.
MSG::Level msgLevel() const
get the output level from the embedded MsgStream
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.