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 )
147 "The name of Algorithm Context Service" ) ;
149 GaudiToolLocal::s_InstanceCounter.increment (
m_local ) ;
156 GaudiToolLocal::s_InstanceCounter.decrement (
m_local ) ;
168 GaudiToolLocal::s_FinalizeCounter.increment(
m_local ) ;
182 debug() <<
" ==> Finalize the base class GaudiTool " <<
endmsg;
195 GaudiToolLocal::s_FinalizeCounter.decrement(
m_local ) ;
207 bool ownedByToolSvc =
false;
208 unsigned int sanityCheck(0);
209 while ( tool && ++sanityCheck < 99999 )
211 ownedByToolSvc = (
nullptr !=
dynamic_cast<const IToolSvc*
>(tool->
parent()) );
212 if ( ownedByToolSvc ) {
break; }
216 return ownedByToolSvc;
237 m_ntupleSvc = svc<INTupleSvc>(
"NTupleSvc" , true ) ;
248 m_evtColSvc = svc< INTupleSvc > (
"EvtTupleSvc" , true ) ;
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.
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.