7 #include "GaudiKernel/IChronoStatSvc.h"
8 #include "GaudiKernel/IIncidentSvc.h"
9 #include "GaudiKernel/IDataProviderSvc.h"
10 #include "GaudiKernel/IHistogramSvc.h"
11 #include "GaudiKernel/INTupleSvc.h"
12 #include "GaudiKernel/IAlgContextSvc.h"
13 #include "GaudiKernel/Bootstrap.h"
17 #include "GaudiAlg/GaudiTool.h"
18 #include "GaudiAlg/GaudiAlgorithm.h"
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 ) ;