|
StatusCode | initialize () override |
| standard initialization method More...
|
|
StatusCode | finalize () override |
| standard finalization method More...
|
|
INTupleSvc * | ntupleSvc () const |
| Access the standard N-Tuple. More...
|
|
INTupleSvc * | evtColSvc () const |
| Access the standard event collection service. More...
|
|
IDataProviderSvc * | detSvc () const |
| accessor to detector service More...
|
|
IIncidentSvc * | incSvc () const |
| accessor to Incident Service More...
|
|
IChronoStatSvc * | chronoSvc () const |
| accessor to Chrono & Stat Service More...
|
|
IHistogramSvc * | histoSvc () const |
| acessor to the histogram service More...
|
|
IAlgContextSvc * | contextSvc () const |
| acessor to the Algorithm Context Service More...
|
|
DataObject * | put (IDataProviderSvc *svc, DataObject *object, const std::string &address, const bool useRootInTES=true) const |
| Register a data object or container into Gaudi Event Transient Store. More...
|
|
DataObject * | put (DataObject *object, const std::string &address, const bool useRootInTES=true) const |
| Register a data object or container into Gaudi Event Transient Store. More...
|
|
template<class TYPE > |
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. More...
|
|
template<class TYPE > |
Gaudi::Utils::GetData< TYPE >::return_type | getIfExists (IDataProviderSvc *svc, const std::string &location, const bool useRootInTES=true) const |
| Templated access to the data in Gaudi Transient Store. More...
|
|
template<class TYPE > |
Gaudi::Utils::GetData< TYPE >::return_type | get (const std::string &location, const bool useRootInTES=true) const |
| Templated access to the data from Gaudi Event Transient Store. More...
|
|
template<class TYPE > |
Gaudi::Utils::GetData< TYPE >::return_type | getIfExists (const std::string &location, const bool useRootInTES=true) const |
| Templated access to the data in Gaudi Transient Store. More...
|
|
template<class TYPE > |
TYPE * | getDet (IDataProviderSvc *svc, const std::string &location) const |
| Templated access to the detector data from the Gaudi Detector Transient Store. More...
|
|
template<class TYPE > |
Gaudi::Utils::GetData< TYPE >::return_type | getDetIfExists (IDataProviderSvc *svc, const std::string &location) const |
| Templated access to the detector data from the Gaudi Detector Transient Store. More...
|
|
template<class TYPE > |
TYPE * | getDet (const std::string &location) const |
| Templated access to the detector data from the Gaudi Detector Transient Store. More...
|
|
template<class TYPE > |
Gaudi::Utils::GetData< TYPE >::return_type | getDetIfExists (const std::string &location) const |
| Templated access to the detector data from the Gaudi Detector Transient Store. More...
|
|
template<class TYPE > |
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. More...
|
|
template<class TYPE > |
bool | exist (const std::string &location, const bool useRootInTES=true) const |
| Check the existence of a data object or container in the Gaudi Transient Event Store. More...
|
|
template<class TYPE > |
bool | existDet (IDataProviderSvc *svc, const std::string &location) const |
| Check the existence of detector objects in the Gaudi Transient Detector Store. More...
|
|
template<class TYPE > |
bool | existDet (const std::string &location) const |
| Check the existence of detector objects in the Gaudi Transient Detector Store. More...
|
|
template<class TYPE , class TYPE2 > |
Gaudi::Utils::GetData< TYPE >::return_type | getOrCreate (IDataProviderSvc *svc, const std::string &location, const bool useRootInTES=true) const |
| Get the existing data object from Gaudi Event Transient store. More...
|
|
template<class TYPE , class TYPE2 > |
Gaudi::Utils::GetData< TYPE >::return_type | getOrCreate (const std::string &location, const bool useRootInTES=true) const |
| Get the existing data object from Gaudi Event Transient store. More...
|
|
StatusCode | Error (const std::string &msg, const StatusCode st=StatusCode::FAILURE, const size_t mx=10) const |
| Print the error message and return with the given StatusCode. More...
|
|
StatusCode | Warning (const std::string &msg, const StatusCode st=StatusCode::FAILURE, const size_t mx=10) const |
| Print the warning message and return with the given StatusCode. More...
|
|
StatusCode | Info (const std::string &msg, const StatusCode st=StatusCode::SUCCESS, const size_t mx=10) const |
| Print the info message and return with the given StatusCode. More...
|
|
template<class T > |
Property * | declareProperty (const std::string &name, DataObjectHandle< T > &hndl, const std::string &doc="none") const |
|
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. More...
|
|
Gaudi::Utils::GetData< TYPE >::return_type | getIfExists (IDataProviderSvc *svc, const std::string &location, const bool useRootInTES=true) const |
| Quicker version of the get function which bypasses the check on the retrieved data. More...
|
|
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. More...
|
|
Gaudi::Utils::GetData< TYPE >::return_type | getOrCreate (IDataProviderSvc *svc, const std::string &location, const bool useRootInTES=true) const |
| Get the existing data object from Gaudi Event Transient store. More...
|
|
DataObject * | put (IDataProviderSvc *svc, DataObject *object, const std::string &location, const bool useRootInTES=true) const |
| Register a data object or container into Gaudi Event Transient Store. More...
|
|
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. More...
|
|
TOOL * | tool (const std::string &type, const IInterface *parent=0, bool create=true) const |
| A useful method for the easy location of tools. More...
|
|
SmartIF< SERVICE > | svc (const std::string &name, const bool create=true) const |
| A useful method for the easy location of services. More...
|
|
IUpdateManagerSvc * | updMgrSvc () const |
| Short-cut to locate the Update Manager Service. More...
|
|
StatusCode | Error (const std::string &msg, const StatusCode st=StatusCode::FAILURE, const size_t mx=10) const |
| Print the error message and return with the given StatusCode. More...
|
|
StatusCode | Warning (const std::string &msg, const StatusCode st=StatusCode::FAILURE, const size_t mx=10) const |
| Print the warning message and return with the given StatusCode. More...
|
|
StatusCode | Info (const std::string &msg, const StatusCode st=StatusCode::SUCCESS, const size_t mx=10) const |
| Print the info message and return with the given StatusCode. More...
|
|
StatusCode | Print (const std::string &msg, const StatusCode st=StatusCode::SUCCESS, const MSG::Level lev=MSG::INFO) const |
| Print the message and return with the given StatusCode. More...
|
|
void | Assert (const bool ok, const std::string &message="", const StatusCode sc=StatusCode(StatusCode::FAILURE, true)) const |
| Assertion - throw exception if the given condition is not fulfilled. More...
|
|
void | Assert (const bool ok, const char *message, const StatusCode sc=StatusCode(StatusCode::FAILURE, true)) const |
| Assertion - throw exception if the given condition is not fulfilled. More...
|
|
void | Exception (const std::string &msg, const GaudiException &exc, const StatusCode sc=StatusCode(StatusCode::FAILURE, true)) const |
| Create and (re)-throw a given GaudiException. More...
|
|
void | Exception (const std::string &msg, const std::exception &exc, const StatusCode sc=StatusCode(StatusCode::FAILURE, true)) const |
| Create and (re)-throw a given exception. More...
|
|
void | Exception (const std::string &msg="no message", const StatusCode sc=StatusCode(StatusCode::FAILURE, true)) const |
| Create and throw an exception with the given message. More...
|
|
const Statistics & | counters () const |
| accessor to all counters More...
|
|
StatEntity & | counter (const std::string &tag) const |
| accessor to certain counter by name More...
|
|
bool | typePrint () const |
| Insert the actual C++ type of the algorithm/tool in the messages ? More...
|
|
bool | propsPrint () const |
| Print properties at initialization ? More...
|
|
bool | statPrint () const |
| Print statistical counters at finalization ? More...
|
|
bool | errorsPrint () const |
| Print error counters at finalization ? More...
|
|
long | printStat (const MSG::Level level=MSG::ALWAYS) const |
| perform the actual printout of statistical counters More...
|
|
long | printErrors (const MSG::Level level=MSG::ALWAYS) const |
| perform the actual printout of error counters More...
|
|
long | printProps (const MSG::Level level=MSG::ALWAYS) const |
| perform the actual printout of properties More...
|
|
void | registerCondition (const std::string &condition, StatusCode(CallerClass::*mf)()=nullptr) |
| register the current instance to the UpdateManagerSvc as a consumer for a condition. More...
|
|
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. More...
|
|
void | registerCondition (char *condition, StatusCode(CallerClass::*mf)()=NULL) |
| just to avoid conflicts with the version using a pointer to a template class. More...
|
|
void | registerCondition (TargetClass *condition, StatusCode(CallerClass::*mf)()=NULL) |
| register the current instance to the UpdateManagerSvc as a consumer for a condition. More...
|
|
StatusCode | runUpdate () |
| asks the UpdateManagerSvc to perform an update of the instance (if needed) without waiting the next BeginEvent incident. More...
|
|
| GaudiCommon (const std::string &name, ISvcLocator *pSvcLocator) |
| Algorithm constructor. More...
|
|
| GaudiCommon (const std::string &type, const std::string &name, const IInterface *parent) |
| Tool constructor. More...
|
|
StatusCode | initialize () override |
| standard initialization method More...
|
|
StatusCode | finalize () override |
| standard finalization method More...
|
|
StatusCode | release (const IInterface *interface) const |
| Manual forced (and 'safe') release of the active tool or service. More...
|
|
const Services & | services () const |
| get the list of aquired services More...
|
|
const std::string & | context () const |
| Returns the "context" string. Used to identify different processing states. More...
|
|
const std::string & | rootInTES () const |
| Returns the "rootInTES" string. More...
|
|
const std::string | fullTESLocation (const std::string &location, const bool useRootInTES) const |
| Returns the full correct event location given the rootInTes settings. More...
|
|
StatusCode | queryInterface (const InterfaceID &riid, void **ppvUnknown) override |
| Query for a given interface. More...
|
|
const std::string & | name () const override |
| Retrieve full identifying name of the concrete tool object. More...
|
|
const std::string & | type () const override |
| Retrieve type (concrete class) of the sub-algtool. More...
|
|
const IInterface * | parent () const override |
| Retrieve parent of the sub-algtool. More...
|
|
StatusCode | configure () override |
|
StatusCode | initialize () override |
|
StatusCode | start () override |
|
StatusCode | stop () override |
|
StatusCode | finalize () override |
|
StatusCode | terminate () override |
|
StatusCode | reinitialize () override |
|
StatusCode | restart () override |
|
Gaudi::StateMachine::State | FSMState () const override |
|
Gaudi::StateMachine::State | targetFSMState () const override |
|
StatusCode | sysInitialize () override |
| Initialize AlgTool. More...
|
|
StatusCode | sysStart () override |
| Start AlgTool. More...
|
|
StatusCode | sysStop () override |
| Stop AlgTool. More...
|
|
StatusCode | sysFinalize () override |
| Finalize AlgTool. More...
|
|
StatusCode | sysReinitialize () override |
| Initialize AlgTool. More...
|
|
StatusCode | sysRestart () override |
| Start AlgTool. More...
|
|
StatusCode | setProperty (const Property &p) override |
| Default implementations for IProperty interface. More...
|
|
StatusCode | setProperty (const std::string &s) override |
|
StatusCode | setProperty (const std::string &n, const std::string &v) override |
|
StatusCode | getProperty (Property *p) const override |
|
const Property & | getProperty (const std::string &name) const override |
|
StatusCode | getProperty (const std::string &n, std::string &v) const override |
|
const std::vector< Property * > & | getProperties () const override |
|
bool | hasProperty (const std::string &name) const override |
|
PropertyMgr * | getPropertyMgr () const |
|
template<class TYPE > |
StatusCode | setProperty (const std::string &name, const TYPE &value) |
| set the property form the value More...
|
|
| AlgTool (const std::string &type, const std::string &name, const IInterface *parent) |
| Standard Constructor. More...
|
|
SmartIF< ISvcLocator > & | serviceLocator () const override |
| Retrieve pointer to service locator. More...
|
|
ISvcLocator * | svcLoc () const |
| shortcut for the method service locator More...
|
|
IDataProviderSvc * | evtSvc () const |
| accessor to event service service More...
|
|
IToolSvc * | toolSvc () const |
| The standard ToolSvc service, Return a pointer to the service if present. More...
|
|
StatusCode | setProperties () |
| Method for setting declared properties to the values specified in the jobOptions via the job option service. More...
|
|
template<class T > |
StatusCode | service (const std::string &name, T *&svc, bool createIf=true) const |
| Access a service by name, creating it if it doesn't already exist. More...
|
|
template<class T > |
StatusCode | service (const std::string &type, const std::string &name, T *&svc) const |
| Access a service by name, type creating it if it doesn't already exist. More...
|
|
SmartIF< IService > | service (const std::string &name, const bool createIf=true, const bool quiet=false) const |
| Return a pointer to the service identified by name (or "type/name") More...
|
|
template<typename T > |
SmartIF< T > | service (const std::string &name, const bool createIf=true, const bool quiet=false) const |
|
template<class T > |
Property * | declareProperty (const std::string &name, T &property, const std::string &doc="none") const |
| Declare the named property. More...
|
|
Property * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const |
| Declare remote named properties. More...
|
|
template<class T > |
Property * | declareProperty (const std::string &name, ToolHandle< T > &hndl, const std::string &doc="none") const |
|
template<class T > |
StatusCode | declareTool (ToolHandle< T > &handle, std::string toolTypeAndName="", bool createIf=true) |
|
template<class T > |
Property * | declareProperty (const std::string &name, ToolHandleArray< T > &hndlArr, const std::string &doc="none") const |
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
|
virtual const DataObjIDColl & | extraInputDeps () const override |
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
|
virtual void | acceptDHVisitor (IDataHandleVisitor *) const override |
|
DataObjIDColl | inputDataObjs () const |
|
DataObjIDColl | outputDataObjs () const |
|
void | commitHandles () override |
|
void | registerTool (IAlgTool *tool) const |
|
void | deregisterTool (IAlgTool *tool) const |
|
template<class T > |
StatusCode | declarePublicTool (ToolHandle< T > &handle, std::string toolTypeAndName="", bool createIf=true) |
| Declare used public tool. More...
|
|
template<class T > |
StatusCode | declarePrivateTool (ToolHandle< T > &handle, std::string toolTypeAndName="", bool createIf=true) |
| Declare used private tool. More...
|
|
const std::vector< IAlgTool * > & | tools () const |
|
IAuditorSvc * | auditorSvc () const |
| Access the auditor service. More...
|
|
IMonitorSvc * | monitorSvc () const |
| Access the monitor service. More...
|
|
template<class T > |
void | declareInfo (const std::string &name, const T &var, const std::string &desc) const |
| Declare monitoring information. More...
|
|
void | declareInfo (const std::string &name, const std::string &format, const void *var, int size, const std::string &desc) const |
| Declare monitoring information (special case) More...
|
|
| ~AlgTool () override |
|
virtual | ~CommonMessagingBase ()=default |
| Virtual destructor. More...
|
|
SmartIF< IMessageSvc > & | msgSvc () const |
| The standard message service. More...
|
|
MsgStream & | msgStream () const |
| Return an uninitialized MsgStream. More...
|
|
MsgStream & | msgStream (const MSG::Level level) const |
| Predefined configurable message stream for the efficient printouts. More...
|
|
MsgStream & | always () const |
| shortcut for the method msgStream(MSG::ALWAYS) More...
|
|
MsgStream & | fatal () const |
| shortcut for the method msgStream(MSG::FATAL) More...
|
|
MsgStream & | err () const |
| shortcut for the method msgStream(MSG::ERROR) More...
|
|
MsgStream & | error () const |
| shortcut for the method msgStream(MSG::ERROR) More...
|
|
MsgStream & | warning () const |
| shortcut for the method msgStream(MSG::WARNING) More...
|
|
MsgStream & | info () const |
| shortcut for the method msgStream(MSG::INFO) More...
|
|
MsgStream & | debug () const |
| shortcut for the method msgStream(MSG::DEBUG) More...
|
|
MsgStream & | verbose () const |
| shortcut for the method msgStream(MSG::VERBOSE) More...
|
|
MsgStream & | msg () const |
| shortcut for the method msgStream(MSG::INFO) More...
|
|
MSG::Level | msgLevel () const |
| get the output level from the embedded MsgStream More...
|
|
MSG::Level | outputLevel () const __attribute__((deprecated)) |
| Backward compatibility function for getting the output level. More...
|
|
bool | msgLevel (MSG::Level lvl) const |
| get the output level from the embedded MsgStream More...
|
|
The useful base class for tools.
Small extension of ordinary the AlgTool base class.
This base class allows "easy"(=="1 line") access to tools and services. This access is safe in the sense that there is no need to worry about the reference counts for tools and services.
The base class allows "easy" (=="1 line") access to data in Gaudi Transient Stores. The functionality includes the checking of the presence of the data at the given location, checking the validity of the data, retrieval of valid data and "forced" retrieve of valid data (create if there is no data).
The base class allows to perform an easy error, warning and exception treatments, including the accumulated statistics of exceptions, errors and warnings.
The base class also includes utilities for general statistical counters.
It has been reported that usage of this base class results in significant reduction of existing code lines.
- Attention
- See the class GaudiCommon, which implements some of the common functionality between GaudiTool and GaudiAlgorithm
- Author
- Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@i.nosp@m.tep..nosp@m.ru
-
Chris Jones Chris.nosp@m.toph.nosp@m.er.Ro.nosp@m.b.Jo.nosp@m.nes@c.nosp@m.ern..nosp@m.ch
- Date
- 2003-07-07
Definition at line 98 of file GaudiTool.h.