Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.
78 long increment( std::string_view
object ) {
return ++
get(
object ); }
80 long decrement( std::string_view
object ) {
return --
get(
object ); }
82 long counts( std::string_view
object ) {
return get(
object ); }
88 for (
const auto& entry : m_map ) {
90 std::cout <<
"GaudiTool WARNING " << m_message <<
"'" << entry.first <<
"' Counts = " << entry.second
100 auto i = m_map.find(
which );
101 if ( i == m_map.end() ) i = m_map.emplace(
which,
long{} ).first;
114 static Counter s_InstanceCounter(
" Create/Destroy (mis)balance " );
121 static Counter s_FinalizeCounter(
" Initialize/Finalize (mis)balance " );
149 GaudiToolLocal::s_InstanceCounter.increment(
m_local );
164 GaudiToolLocal::s_FinalizeCounter.increment(
m_local );
189 GaudiToolLocal::s_FinalizeCounter.decrement(
m_local );
200 bool ownedByToolSvc =
false;
201 unsigned int sanityCheck( 0 );
202 while (
tool && ++sanityCheck < 99999 ) {
203 ownedByToolSvc = (
nullptr !=
dynamic_cast<const IToolSvc*
>(
tool->parent() ) );
204 if ( ownedByToolSvc ) {
break; }
208 return ownedByToolSvc;
void reset(TYPE *ptr=nullptr)
Set the internal pointer to the passed one disposing of the old one.
get
decorate the vector of properties
TOOL * tool(std::string_view type, std::string_view name, const IInterface *parent=0, bool create=true) const
Useful method for the easy location of tools.
MSG::Level msgLevel() const
get the cached level (originally extracted from the embedded MsgStream)
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
GAUDI_API bool isEnvSet(const char *var)
Check if an environment variable is set or not.
StatusCode initialize() override
standard initialization method
StatusCode finalize() override
standard finalization method