#include <GaudiKernel/Algorithm.h>
Inheritance diagram for Algorithm:
Public Methods | |
Algorithm (const std::string &name, ISvcLocator *svcloc) | |
virtual | ~Algorithm () |
Destructor. More... | |
virtual StatusCode | sysInitialize () |
virtual StatusCode | sysExecute () |
virtual StatusCode | sysFinalize () |
virtual const std::string & | name () const |
virtual bool | isExecuted () const |
Has this algorithm been executed since the last reset? More... | |
virtual StatusCode | setExecuted (bool state) |
Set the executed flag to the specified state. More... | |
virtual StatusCode | resetExecuted () |
Reset the executed state of the Algorithm for the duration of the current event. More... | |
virtual StatusCode | beginRun () |
Algorithm begin run. This method is called at the beginning of the event loop. More... | |
virtual StatusCode | endRun () |
Algorithm end run. This method is called at the end of the event loop. More... | |
virtual bool | isEnabled () const |
Is this algorithm enabled or disabled? More... | |
virtual bool | filterPassed () const |
Did this algorithm pass or fail its filter criterion for the last event? More... | |
virtual StatusCode | setFilterPassed (bool state) |
Set the filter passed flag to the specified state. More... | |
template<class T> StatusCode | service (const std::string &name, T *&svc, bool createIf=false) const |
void | setOutputLevel (int level) |
Set the outputlevel for current algorithm. More... | |
IAuditorSvc * | auditorSvc () const |
IChronoStatSvc * | chronoSvc () const |
The standard Chrono & Stat service, Return a pointer to the service if present. More... | |
IChronoStatSvc * | chronoStatService () const |
Obsoleted name, kept due to the backwards compatibility. More... | |
IDataProviderSvc * | detSvc () const |
IDataProviderSvc * | detDataService () const |
Obsoleted name, kept due to the backwards compatibility. More... | |
IConversionSvc * | detCnvSvc () const |
IConversionSvc * | detDataCnvService () const |
Obsoleted name, kept due to the backwards compatibility. More... | |
IDataProviderSvc * | eventSvc () const |
IDataProviderSvc * | eventDataService () const |
Obsoleted name, kept due to the backwards compatibility. More... | |
IConversionSvc * | eventCnvSvc () const |
IConversionSvc * | eventDataCnvService () const |
Obsoleted name, kept due to the backwards compatibility. More... | |
IHistogramSvc * | histoSvc () const |
IHistogramSvc * | histogramDataService () const |
Obsoleted name, kept due to the backwards compatibility. More... | |
IMessageSvc * | msgSvc () const |
IMessageSvc * | messageService () const |
Obsoleted name, kept due to the backwards compatibility. More... | |
INTupleSvc * | ntupleSvc () const |
INTupleSvc * | ntupleService () const |
Obsoleted name, kept due to the backwards compatibility. More... | |
IRndmGenSvc * | randSvc () const |
The standard RandomGen service, Return a pointer to the service if present. More... | |
ISvcLocator * | serviceLocator () const |
StatusCode | createSubAlgorithm (const std::string &type, const std::string &name, Algorithm *&pSubAlg) |
std::vector< Algorithm *> * | subAlgorithms () const |
List of sub-algorithms. Returns a pointer to a vector of (sub) Algorithms. More... | |
virtual StatusCode | setProperty (const Property &p) |
Implementation of IProperty::setProperty. More... | |
virtual StatusCode | setProperty (std::istream &s) |
Implementation of IProperty::setProperty. More... | |
virtual StatusCode | setProperty (const std::string &n, const std::string &v) |
Implementation of IProperty::setProperty. More... | |
virtual StatusCode | getProperty (Property *p) const |
Implementation of IProperty::getProperty. More... | |
virtual const Property & | getProperty (const std::string &name) const |
Implementation of IProperty::getProperty. More... | |
virtual StatusCode | getProperty (const std::string &n, std::string &v) const |
Implementation of IProperty::getProperty. More... | |
virtual const std::vector< Property *> & | getProperties () const |
Implementation of IProperty::getProperties. More... | |
StatusCode | setProperties () |
template<class T> StatusCode | declareProperty (const std::string &name, T &property) const |
Declare named properties. More... | |
StatusCode | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const |
Declare remote named properties. More... | |
unsigned long | addRef () |
Methods for IInterface::addRef(). More... | |
unsigned long | release () |
Methods for IInterface::release(). More... | |
StatusCode | queryInterface (const IID &riid, void **) |
Methods for IInterface::queryInterface(). More... | |
Protected Methods | |
bool | isInitialized () const |
Has the Algorithm already been initialized? More... | |
void | setInitialized () |
Set the Algorithm initialized state. More... | |
bool | isFinalized () const |
Has the Algorithm already been finalized? More... | |
void | setFinalized () |
Set the Algorithm finalized state. More... |
|
Constructor
|
|
Destructor.
|
|
Methods for IInterface::addRef().
Reimplemented from IInterface. |
|
The standard auditor service.May not be invoked before sysInitialize() has been invoked. |
|
Algorithm begin run. This method is called at the beginning of the event loop.
Reimplemented from IAlgorithm. |
|
Obsoleted name, kept due to the backwards compatibility.
|
|
The standard Chrono & Stat service, Return a pointer to the service if present.
|
|
Create a sub algorithm. A call to this method creates a child algorithm object. Note that the returned pointer is to Algorithm (as opposed to IAlgorithm), and thus the methods of IProperty are also available for the direct setting of the sub-algorithm's properties. Using this mechanism instead of creating daughter algorithms directly via the new operator is prefered since then the framework may take care of all of the necessary book-keeping.
|
|
Declare named properties.
|
|
Declare remote named properties.
|
|
The standard detector data persistency conversion service.May not be invoked before sysInitialize() has been invoked. |
|
Obsoleted name, kept due to the backwards compatibility.
|
|
Obsoleted name, kept due to the backwards compatibility.
|
|
The standard detector data service. May not be invoked before sysInitialize() has been invoked. |
|
Algorithm end run. This method is called at the end of the event loop.
Reimplemented from IAlgorithm. |
|
The standard event data persistency conversion service.May not be invoked before sysInitialize() has been invoked. |
|
Obsoleted name, kept due to the backwards compatibility.
|
|
Obsoleted name, kept due to the backwards compatibility.
|
|
The standard event data service. May not be invoked before sysInitialize() has been invoked. |
|
Did this algorithm pass or fail its filter criterion for the last event?
|
|
Implementation of IProperty::getProperties.
Reimplemented from IProperty. |
|
Implementation of IProperty::getProperty.
Reimplemented from IProperty. |
|
Implementation of IProperty::getProperty.
Reimplemented from IProperty. |
|
Implementation of IProperty::getProperty.
Reimplemented from IProperty. |
|
Obsoleted name, kept due to the backwards compatibility.
|
|
The standard histogram service. May not be invoked before sysInitialize() has been invoked. |
|
Is this algorithm enabled or disabled?
|
|
Has this algorithm been executed since the last reset?
|
|
Has the Algorithm already been finalized?
|
|
Has the Algorithm already been initialized?
|
|
Obsoleted name, kept due to the backwards compatibility.
|
|
The standard message service. Returns a pointer to the standard message service. May not be invoked before sysInitialize() has been invoked. |
|
The identifying name of the algorithm object. This is the name of a particular instantiation of an algorithm object as opposed to the name of the algorithm itself, e.g. "LinearTrackFit" may be the name of a concrete algorithm class, whereas "ApproxTrackFit" and "BestTrackFit" may be two instantiations of the class configured to find tracks with different fit criteria. Reimplemented from IAlgorithm. |
|
Obsoleted name, kept due to the backwards compatibility.
|
|
The standard N tuple service. Returns a pointer to the N tuple service if present. |
|
Methods for IInterface::queryInterface().
|
|
The standard RandomGen service, Return a pointer to the service if present.
|
|
Methods for IInterface::release().
Reimplemented from IInterface. |
|
Reset the executed state of the Algorithm for the duration of the current event.
Reimplemented from IAlgorithm. |
|
Access a service by name, creating it if it doesn't already exist. |
|
The standard service locator. Returns a pointer to the service locator service. This service may be used by an algorithm to request any services it requires in addition to those provided by default. |
|
Set the executed flag to the specified state.
|
|
Set the filter passed flag to the specified state.
|
|
Set the Algorithm finalized state.
|
|
Set the Algorithm initialized state.
|
|
Set the outputlevel for current algorithm.
|
|
Set the algorithm's properties. This method requests the job options service to set the values of any declared properties. The method is invoked from within sysInitialize() by the framework and does not need to be explicitly called by a concrete algorithm. |
|
Implementation of IProperty::setProperty.
Reimplemented from IProperty. |
|
Implementation of IProperty::setProperty.
Reimplemented from IProperty. |
|
Implementation of IProperty::setProperty.
Reimplemented from IProperty. |
|
List of sub-algorithms. Returns a pointer to a vector of (sub) Algorithms.
|
|
The actions to be performed by the algorithm on an event. This method is invoked once per event for top level algorithms by the application manager. This method invokes execute() method. For sub-algorithms either the sysExecute() method or execute() method must be EXPLICITLY invoked by the parent algorithm. Reimplemented from IAlgorithm. |
|
System finalization. This method invokes the finalize() method of a concrete algorithm and the finalize() methods of all of that algorithm's sub algorithms. Reimplemented from IAlgorithm. |
|
Initialization method invoked by the framework. This method is responsible for any bookkeeping of initialization required by the framework itself. It will in turn invoke the initialize() method of the derived algorithm, and of any sub-algorithms which it creates. Reimplemented from IAlgorithm. |