1 #ifndef GAUDIALG_GAUDICOMMON_H
2 #define GAUDIALG_GAUDICOMMON_H 1
36 namespace Gaudi {
namespace Utils {
template <
class TYPE>
struct GetData ; } }
72 template <
class PBASE >
87 static const bool IgnoreRootInTES =
false;
99 static const bool UseRootInTES =
true;
155 template <
class TYPE >
159 const bool useRootInTES = true )
const ;
163 template <
class TYPE >
167 const bool useRootInTES =
true )
const ;
194 template <
class TYPE >
197 const bool useRootInTES =
true )
const ;
225 template <
class TYPE ,
class TYPE2 >
229 const bool useRootInTES =
true )
const ;
258 const bool useRootInTES =
true )
const ;
284 template <
class TOOL >
288 bool create =
true )
const ;
311 template <
class TOOL >
314 bool create =
true )
const ;
337 template <
class SERVICE >
339 const bool create =
true )
const ;
369 const size_t mx = 10 )
const ;
396 const size_t mx = 10 )
const ;
415 const size_t mx = 10 )
const ;
453 const char* message ,
494 inline const Statistics&
counters()
const {
return m_counters ; }
556 template <
class CallerClass>
558 updMgrSvc()->registerCondition(dynamic_cast<CallerClass*>(
this),condition,mf);
590 template <
class CallerClass,
class CondType>
593 updMgrSvc()->registerCondition(dynamic_cast<CallerClass*>(
this),condition,mf,condPtrDest);
596 template <
class CallerClass>
598 updMgrSvc()->registerCondition(dynamic_cast<CallerClass*>(
this),
std::string(condition),mf);
615 template <
class CallerClass,
class TargetClass>
617 updMgrSvc()->registerCondition(dynamic_cast<CallerClass*>(
this),condition,mf);
645 {
return i_gcInitialize(); }
654 {
return i_gcFinalize(); }
693 using PBASE::release;
698 const Services&
services ()
const {
return m_services ; }
703 void printErrorHandler (
Property& ) ;
705 void printPropsHandler (
Property& ) ;
707 void printStatHandler (
Property& ) ;
723 const bool useRootInTES )
const ;
730 void initGaudiCommonConstructor(
const IInterface * parent = 0 );
753 bool m_typePrint = true ;
755 bool m_propsPrint = false ;
757 bool m_statPrint = true ;
759 bool m_errorsPrint = true ;
782 #endif // GAUDIALG_GAUDICOMMON_H
The implementation of inline/templated methods for class GaudiCommon.
bool operator()(const SmartIF< IService > &s, const std::string &n) const
Counter m_warnings
counter of warnings
bool operator()(const std::string &n, const SmartIF< IService > &s) const
Define general base for Gaudi exception.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Counter m_exceptions
Counter of exceptions.
std::map< std::string, unsigned int > Counter
the actual type error/warning counter
const std::string & rootInTES() const
Returns the "rootInTES" string.
std::vector< IAlgTool * > AlgTools
storage for active tools
constexpr const struct GaudiCommon_details::svc_eq_t svc_eq
void registerCondition(TargetClass *condition, StatusCode(CallerClass::*mf)()=NULL)
register the current instance to the UpdateManagerSvc as a consumer for a condition.
Services m_services
List of active services.
bool operator()(const SmartIF< IService > &s, const SmartIF< IService > &n) const
Statistics m_counters
General counters.
Helper structure for implementation of "get"-functions for GaudiCommon
const std::string & context() const
Returns the "context" string. Used to identify different processing states.
const Statistics & counters() const
accessor to all counters
bool operator()(const std::string &n, const SmartIF< IService > &s) const
void registerCondition(char *condition, StatusCode(CallerClass::*mf)()=NULL)
just to avoid conflicts with the version using a pointer to a template class.
Data provider interface definition.
void registerCondition(const std::string &condition, StatusCode(CallerClass::*mf)()=nullptr)
register the current instance to the UpdateManagerSvc as a consumer for a condition.
const Services & services() const
get the list of aquired services
bool statPrint() const
Print statistical counters at finalization ?
bool m_useEffFormat
flag to use the special "efficiency" format
StatEntity & counter(const std::string &tag) const
accessor to certain counter by name
constexpr const struct GaudiCommon_details::svc_lt_t svc_lt
std::map< std::string, StatEntity > Statistics
the actual type of general counters
Counter m_errors
Counter of errors.
std::string m_format1
format for regular statistical printout rows
This class is used for returning status codes from appropriate routines.
std::string m_rootInTES
The rootInTES string.
bool propsPrint() const
Print properties at initialization ?
Definition of the basic interface.
Counter m_infos
counter of infos
bool errorsPrint() const
Print error counters at finalization ?
std::vector< SmartIF< IService > > Services
storage for active services
SmartIF< ICounterSummarySvc > m_counterSummarySvc
a pointer to the CounterSummarySvc
Interface class to the Update Manager service.
StatusCode runUpdate()
asks the UpdateManagerSvc to perform an update of the instance (if needed) without waiting the next B...
std::string m_header
the header row
bool typePrint() const
Insert the actual C++ type of the algorithm/tool in the messages ?
bool operator()(const SmartIF< IService > &s, const SmartIF< IService > &n) const
Base class from which all concrete algorithm classes should be derived.
Property base class allowing Property* collections to be "homogeneous".
std::string m_format2
format for "efficiency" statistical printout rows
void registerCondition(const std::string &condition, CondType *&condPtrDest, StatusCode(CallerClass::*mf)()=NULL)
register the current instance to the UpdateManagerSvc as a consumer for a condition.
Implements the common functionality between GaudiTools and GaudiAlgorithms.
AlgTools m_managedTools
List of active tools.
bool operator()(const SmartIF< IService > &s, const std::string &n) const
The basic counter used for Monitoring purposes.
std::string m_context
The context string.
A DataObject is the base class of any identifiable object on any data store.
Helper functions to set/get the application return code.