41 namespace GaudiToolServices
55 namespace GaudiToolLocal
76 long increment (
const std::string&
object ) {
return ++m_map[object] ; }
78 long decrement (
const std::string&
object ) {
return --m_map[object] ; }
80 long counts (
const std::string&
object ) {
return m_map[object] ; }
87 for ( Map::const_iterator entry = m_map.begin() ;
88 m_map.end() != entry ; ++entry )
90 if( 0 == entry->second ) { continue ; }
91 std::cout <<
"GaudiTool WARNING " << m_message
92 <<
"'" << entry->first <<
"' Counts = " << entry->second
99 typedef std::map<std::string,long>
Map;
110 static Counter s_InstanceCounter (
" Create/Destroy (mis)balance " ) ;
117 static Counter s_FinalizeCounter (
" Initialize/Finalize (mis)balance " ) ;
141 const std::string& this_name ,
153 , m_contextSvcName (
"AlgContextSvc" )
155 , m_local ( this_type +
"/" + this_name )
160 "The name of Algorithm Context Service" ) ;
192 debug() <<
" ==> Finalize the base class GaudiTool " <<
endmsg;
230 m_ntupleSvc = svc<INTupleSvc>(
"NTupleSvc" , true ) ;
241 m_evtColSvc = svc< INTupleSvc > (
"EvtTupleSvc" , true ) ;
virtual StatusCode finalize()
standard finalization method
Data provider interface definition.
bool isFailure() const
Test for a status code of FAILURE.
MSG::Level msgLevel() const
The current message service output level.
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.
MsgStream & debug() const
shortcut for the method msgStream ( MSG::DEBUG )
An abstract interface for Algorithm Context Service.
virtual StatusCode initialize()
standard initialization method
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
The interface implemented by the IncidentSvc service.