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;
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 ) ;