24 #if defined( __GNUC__ ) 25 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 60 return alg ? alg->
tool<
IAlgTool>( typeAndName, parent, create ) :
nullptr;
86 for (
auto& cnt : alg->
counters() ) {
104 for (
auto& cnt : alg->
counters() ) {
118 return alg ?
_counters_a_( dynamic_cast<const GaudiAlgorithm*>( alg ), names, out ) : 0;
128 return alg ?
_counters_t_( dynamic_cast<const GaudiTool*>( alg ), names, out ) : 0;
135 return cmp ? &( cmp->
counter( name ) ) :
nullptr;
142 return cmp ? &( cmp->
counter( name ) ) :
nullptr;
149 return cmp ?
_counter_a_( dynamic_cast<const GaudiAlgorithm*>( cmp ), name ) :
nullptr;
156 return cmp ?
_counter_t_( dynamic_cast<const GaudiTool*>( cmp ), name ) :
nullptr;
164 if ( cmp ) tools = cmp->
tools();
173 if ( cmp ) tools = cmp->
tools();
182 return cmp ?
_tools_a_( dynamic_cast<const GaudiAlgorithm*>( cmp ), tools ) : 0;
190 return cmp ?
_tools_t_( dynamic_cast<const GaudiTool*>( cmp ), tools ) : 0;
213 const bool useRootInTes )
220 #if defined( __GNUC__ ) 221 #pragma GCC diagnostic pop static size_t _counters_a_(const GaudiAlgorithm *alg, std::vector< std::string > &names, Counters &out)
static bool exist(const GaudiAlgorithm *alg, const std::string &location, const bool useRootInTes)
get the data from TES
Header file for class GaudiAlgorithm.
static IInterface * svc_(const GaudiAlgorithm *alg, const std::string &name, const bool create=false)
get the service from GaudiAlgorithm
bool exist(IDataProviderSvc *svc, const std::string &location, const bool useRootInTES=true) const
Check the existence of a data object or container in the Gaudi Transient Event Store.
Collection of "decorators" for python algorithms.
static size_t _counters_t_(const GaudiTool *alg, std::vector< std::string > &names, Counters &out)
static IAlgTool * tool_(const GaudiAlgorithm *alg, const std::string &type, const std::string &name, const IInterface *parent=0, const bool create=true)
get the tool from GaudiAlgorithm
StatEntity & counter(const std::string &tag) const
accessor to certain counter by name
Definition of the basic interface.
static size_t _tools_t_(const GaudiTool *, Tools &tools)
The useful base class for data processing algorithms.
Gaudi::Utils::GetData< TYPE >::return_type get(IDataProviderSvc *svc, const std::string &location, const bool useRootInTES=true) const
Templated access to the data in Gaudi Transient Store.
static size_t _tools_a_(const GaudiAlgorithm *, Tools &tools)
The IAlgorithm is the interface implemented by the Algorithm base class.
SmartIF< IDataProviderSvc > & evtSvc() const
shortcut for method eventSvc
static StatEntity * _counter_t_(const GaudiTool *alg, const std::string &name)
static DataObject * get_(const GaudiAlgorithm *alg, const std::string &location, const bool useRootInTes)
get the data from TES
const std::vector< IAlgTool * > & tools() const
backward compatible StatEntity class.
A DataObject is the base class of any identifiable object on any data store.
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.
static StatEntity * _counter_a_(const GaudiAlgorithm *alg, const std::string &name)
SmartIF< SERVICE > svc(const std::string &name, const bool create=true) const
A useful method for the easy location of services.
const Statistics counters() const
accessor to all counters