|
Gaudi Framework, version v23r9 |
| Home | Generated: Thu Jul 18 2013 |
Base class from which all concrete algorithm classes should be derived. More...
#include <GaudiKernel/Algorithm.h>


Public Member Functions | |
| Algorithm (const std::string &name, ISvcLocator *svcloc, const std::string &version=PACKAGE_VERSION) | |
| Constructor. | |
| virtual | ~Algorithm () |
| Destructor. | |
| virtual StatusCode | sysStart () |
| Reinitialization method invoked by the framework. | |
| virtual StatusCode | sysInitialize () |
| Initialization method invoked by the framework. | |
| virtual StatusCode | sysReinitialize () |
| Reinitialization method invoked by the framework. | |
| virtual StatusCode | sysRestart () |
| Restart method invoked by the framework. | |
| virtual StatusCode | sysExecute () |
| The actions to be performed by the algorithm on an event. | |
| virtual StatusCode | sysStop () |
| System stop. | |
| virtual StatusCode | sysFinalize () |
| System finalization. | |
| virtual StatusCode | sysBeginRun () |
| beginRun method invoked by the framework. | |
| virtual StatusCode | sysEndRun () |
| endRun method invoked by the framework. | |
| virtual const std::string & | name () const |
| The identifying name of the algorithm object. | |
| virtual const std::string & | version () const |
| virtual StatusCode | configure () |
| Dummy implementation of IStateful::configure() method. | |
| virtual StatusCode | terminate () |
| Dummy implementation of IStateful::terminate() method. | |
| virtual StatusCode | initialize () |
| the default (empty) implementation of IStateful::initialize() method | |
| virtual StatusCode | start () |
| the default (empty) implementation of IStateful::start() method | |
| virtual StatusCode | stop () |
| the default (empty) implementation of IStateful::stop() method | |
| virtual StatusCode | finalize () |
| the default (empty) implementation of IStateful::finalize() method | |
| virtual StatusCode | reinitialize () |
| the default (empty) implementation of IStateful::reinitialize() method | |
| virtual StatusCode | restart () |
| the default (empty) implementation of IStateful::restart() method | |
| virtual bool | isExecuted () const |
| Has this algorithm been executed since the last reset? | |
| virtual void | setExecuted (bool state) |
| Set the executed flag to the specified state. | |
| virtual void | resetExecuted () |
| Reset the executed state of the Algorithm for the duration of the current event. | |
| virtual StatusCode | beginRun () |
| Algorithm begin run. | |
| virtual StatusCode | endRun () |
| Algorithm end run. This method is called at the end of the event loop. | |
| virtual Gaudi::StateMachine::State | FSMState () const |
| returns the current state of the algorithm | |
| virtual Gaudi::StateMachine::State | targetFSMState () const |
| returns the state the algorithm will be in after the ongoing transition | |
| virtual bool | isEnabled () const |
| Is this algorithm enabled or disabled? | |
| virtual bool | filterPassed () const |
| Did this algorithm pass or fail its filter criterion for the last event? | |
| virtual void | setFilterPassed (bool state) |
| Set the filter passed flag to the specified state. | |
| template<class T > | |
| StatusCode | service (const std::string &name, T *&psvc, bool createIf=true) const |
| Access a service by name, creating it if it doesn't already exist. | |
| template<class T > | |
| StatusCode | service (const std::string &svcType, const std::string &svcName, T *&psvc) const |
| Access a service by name and type, creating it if it doesn't already exist. | |
| 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") | |
| void | setOutputLevel (int level) |
| Set the output level for current algorithm. | |
| SmartIF< IAuditorSvc > & | auditorSvc () const |
| The standard auditor service.May not be invoked before sysInitialize() has been invoked. | |
| SmartIF< IChronoStatSvc > & | chronoSvc () const |
| The standard Chrono & Stat service, Return a pointer to the service if present. | |
| SmartIF< IChronoStatSvc > & | chronoStatService () const |
| Obsoleted name, kept due to the backwards compatibility. | |
| SmartIF< IDataProviderSvc > & | detSvc () const |
| The standard detector data service. | |
| SmartIF< IDataProviderSvc > & | detDataService () const |
| Obsoleted name, kept due to the backwards compatibility. | |
| SmartIF< IConversionSvc > & | detCnvSvc () const |
| The standard detector data persistency conversion service. | |
| SmartIF< IConversionSvc > & | detDataCnvService () const |
| Obsoleted name, kept due to the backwards compatibility. | |
| SmartIF< IDataProviderSvc > & | eventSvc () const |
| The standard event data service. | |
| SmartIF< IDataProviderSvc > & | evtSvc () const |
| shortcut for method eventSvc | |
| SmartIF< IDataProviderSvc > & | eventDataService () const |
| Obsoleted name, kept due to the backwards compatibility. | |
| SmartIF< IConversionSvc > & | eventCnvSvc () const |
| The standard event data persistency conversion service. | |
| SmartIF< IConversionSvc > & | eventDataCnvService () const |
| Obsoleted name, kept due to the backwards compatibility. | |
| SmartIF< IHistogramSvc > & | histoSvc () const |
| The standard histogram service. | |
| SmartIF< IHistogramSvc > & | histogramDataService () const |
| Obsoleted name, kept due to the backwards compatibility. | |
| SmartIF< IMessageSvc > & | msgSvc () const |
| The standard message service. | |
| SmartIF< IMessageSvc > & | messageService () const |
| Obsoleted name, kept due to the backwards compatibility. | |
| SmartIF< INTupleSvc > & | ntupleSvc () const |
| The standard N tuple service. | |
| SmartIF< INTupleSvc > & | ntupleService () const |
| Obsoleted name, kept due to the backwards compatibility. | |
| SmartIF< IRndmGenSvc > & | randSvc () const |
| AIDA-based NTuple service Returns a pointer to the AIDATuple service if present. | |
| SmartIF< IToolSvc > & | toolSvc () const |
| The standard ToolSvc service, Return a pointer to the service if present. | |
| SmartIF< IExceptionSvc > & | exceptionSvc () const |
| Get the exception Service. | |
| SmartIF< IAlgContextSvc > & | contextSvc () const |
| get Algorithm Context Service | |
| SmartIF< ISvcLocator > & | serviceLocator () const |
| The standard service locator. | |
| SmartIF< ISvcLocator > & | svcLoc () const |
| shortcut for method serviceLocator | |
| bool | registerContext () const |
| register for Algorithm Context Service? | |
| StatusCode | createSubAlgorithm (const std::string &type, const std::string &name, Algorithm *&pSubAlg) |
| Create a sub algorithm. | |
| std::vector< Algorithm * > * | subAlgorithms () const |
| List of sub-algorithms. Returns a pointer to a vector of (sub) Algorithms. | |
| virtual StatusCode | setProperty (const Property &p) |
| Implementation of IProperty::setProperty. | |
| virtual StatusCode | setProperty (const std::string &s) |
| Implementation of IProperty::setProperty. | |
| virtual StatusCode | setProperty (const std::string &n, const std::string &v) |
| Implementation of IProperty::setProperty. | |
| virtual StatusCode | getProperty (Property *p) const |
| Implementation of IProperty::getProperty. | |
| virtual const Property & | getProperty (const std::string &name) const |
| Implementation of IProperty::getProperty. | |
| virtual StatusCode | getProperty (const std::string &n, std::string &v) const |
| Implementation of IProperty::getProperty. | |
| virtual const std::vector < Property * > & | getProperties () const |
| Implementation of IProperty::getProperties. | |
| StatusCode | setProperties () |
| Set the algorithm's properties. | |
| template<class T > | |
| Property * | declareProperty (const std::string &name, T &property, const std::string &doc="none") const |
| Declare the named property. | |
| Property * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const |
| Declare remote named properties. | |
| SmartIF< IMonitorSvc > & | monitorSvc () const |
| Access the monitor service. | |
| template<class T > | |
| void | declareInfo (const std::string &name, const T &var, const std::string &desc) const |
| Declare monitoring information. | |
| 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) | |
| template<class TYPE > | |
| StatusCode | setProperty (const std::string &name, const TYPE &value) |
| set the property form the value | |
Protected Member Functions | |
| bool | isInitialized () const |
| Has the Algorithm already been initialized? | |
| bool | isFinalized () const |
| Has the Algorithm already been finalized? | |
| int | outputLevel () const |
| retrieve the Algorithm output level | |
| IntegerProperty & | outputLevelProperty () |
| Accessor for the Message level property. | |
| void | initOutputLevel (Property &prop) |
| callback for output level property | |
Private Member Functions | |
| StatusCode | service_i (const std::string &svcName, bool createIf, const InterfaceID &iid, void **ppSvc) const |
| implementation of service method | |
| StatusCode | service_i (const std::string &svcType, const std::string &svcName, const InterfaceID &iid, void **ppSvc) const |
| Algorithm (const Algorithm &a) | |
| Private Copy constructor: NO COPY ALLOWED. | |
| Algorithm & | operator= (const Algorithm &rhs) |
| Private assignment operator: NO ASSIGNMENT ALLOWED. | |
Private Attributes | |
| std::string | m_name |
| Algorithm's name for identification. | |
| std::string | m_version |
| Algorithm's version. | |
| std::vector< Algorithm * > * | m_subAlgms |
| Sub algorithms. | |
| SmartIF< IMessageSvc > | m_MS |
| Message service. | |
| SmartIF< IDataProviderSvc > | m_EDS |
| Event data service. | |
| SmartIF< IConversionSvc > | m_ECS |
| Event conversion service. | |
| SmartIF< IDataProviderSvc > | m_DDS |
| Detector data service. | |
| SmartIF< IConversionSvc > | m_DCS |
| Detector conversion service. | |
| SmartIF< IHistogramSvc > | m_HDS |
| Histogram data service. | |
| SmartIF< INTupleSvc > | m_NTS |
| N tuple service. | |
| SmartIF< IChronoStatSvc > | m_CSS |
| Chrono & Stat Service. | |
| SmartIF< IRndmGenSvc > | m_RGS |
| Random Number Generator Service. | |
| SmartIF< IExceptionSvc > | m_EXS |
| Exception Handler Service. | |
| SmartIF< IAuditorSvc > | m_pAuditorSvc |
| Auditor Service. | |
| SmartIF< IToolSvc > | m_ptoolSvc |
| ToolSvc Service. | |
| SmartIF< IMonitorSvc > | m_pMonitorSvc |
| Online Monitoring Service. | |
| SmartIF< IAlgContextSvc > | m_contextSvc |
| Algorithm Context Service. | |
| bool | m_registerContext |
| flag to register for Algorithm Context Service | |
| std::string | m_monitorSvcName |
| Name to use for Monitor Service. | |
| SmartIF< ISvcLocator > | m_pSvcLocator |
| Pointer to service locator service. | |
| PropertyMgr * | m_propertyMgr |
| For management of properties. | |
| IntegerProperty | m_outputLevel |
| Algorithm output level. | |
| int | m_errorMax |
| Algorithm Max number of errors. | |
| int | m_errorCount |
| Algorithm error counter. | |
| BooleanProperty | m_auditInit |
| global flag for auditors | |
| bool | m_auditorInitialize |
| flag for auditors in "initialize()" | |
| bool | m_auditorReinitialize |
| flag for auditors in "Reinitialize()" | |
| bool | m_auditorRestart |
| flag for auditors in "Restart()" | |
| bool | m_auditorExecute |
| flag for auditors in "execute()" | |
| bool | m_auditorFinalize |
| flag for auditors in "finalize()" | |
| bool | m_auditorBeginRun |
| flag for auditors in "beginRun()" | |
| bool | m_auditorEndRun |
| flag for auditors in "endRun()" | |
| bool | m_auditorStart |
| flag for auditors in "initialize()" | |
| bool | m_auditorStop |
| flag for auditors in "Reinitialize()" | |
| bool | m_filterPassed |
| Filter passed flag. | |
| bool | m_isEnabled |
| Algorithm is enabled flag. | |
| bool | m_isExecuted |
| Algorithm is executed flag. | |
| Gaudi::StateMachine::State | m_state |
| Algorithm has been initialized flag. | |
| Gaudi::StateMachine::State | m_targetState |
| Algorithm has been initialized flag. | |
| bool | m_isFinalized |
| Algorithm has been finalized flag. | |
Additional Inherited Members | |
Public Types inherited from implements3< IAlgorithm, IProperty, IStateful > | |
| typedef implements3 | base_class |
| Typedef to this class. | |
| typedef extend_interfaces3 < IAlgorithm, IProperty, IStateful > | extend_interfaces_base |
| Typedef to the base of this class. | |
| typedef extend_interfaces_base::ext_iids | interfaces |
| MPL set of all the implemented interfaces. | |
Base class from which all concrete algorithm classes should be derived.
In order for a concrete algorithm class to do anything useful the methods initialize(), execute() and finalize() should be overridden.
The base class provides utility methods for accessing standard services (event data service etc.); for declaring properties which may be configured by the job options service; and for creating sub algorithms. The only base class functionality which may be used in the constructor of a concrete algorithm is the declaration of member variables as properties. All other functionality, i.e. the use of services and the creation of sub-algorithms, may be used only in initialize() and afterwards (see the Gaudi user guide).
Definition at line 62 of file Algorithm.h.
| Algorithm::Algorithm | ( | const std::string & | name, |
| ISvcLocator * | svcloc, | ||
| const std::string & | version = PACKAGE_VERSION |
||
| ) |
Constructor.
| name | The algorithm object's name |
| svcloc | A pointer to a service location service |
Definition at line 28 of file Algorithm.cpp.
|
virtual |
Destructor.
Definition at line 87 of file Algorithm.cpp.
|
private |
Private Copy constructor: NO COPY ALLOWED.
| SmartIF<IAuditorSvc>& Algorithm::auditorSvc | ( | ) | const |
The standard auditor service.May not be invoked before sysInitialize() has been invoked.
|
virtual |
Algorithm begin run.
This method is called at the beginning of the event loop.
Reimplemented in Sequencer, GaudiPython::PyAlgorithm, and GaudiSequencer.
Definition at line 497 of file Algorithm.cpp.
| m_CSS m_DCS m_ECS m_EXS m_RGS m_contextSvc SmartIF< IChronoStatSvc > & Algorithm::chronoStatService | ( | ) | const |
Obsoleted name, kept due to the backwards compatibility.
Definition at line 923 of file Algorithm.cpp.
| SmartIF<IChronoStatSvc>& Algorithm::chronoSvc | ( | ) | const |
|
inlinevirtual |
Dummy implementation of IStateful::configure() method.
Definition at line 148 of file Algorithm.h.
| SmartIF<IAlgContextSvc>& Algorithm::contextSvc | ( | ) | const |
| StatusCode Algorithm::createSubAlgorithm | ( | const std::string & | type, |
| const std::string & | name, | ||
| Algorithm *& | pSubAlg | ||
| ) |
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.
| type | The concrete algorithm class of the sub algorithm |
| name | The name to be given to the sub algorithm |
| pSubAlg | Set to point to the newly created algorithm object |
Definition at line 1116 of file Algorithm.cpp.
|
inline |
Declare monitoring information.
| name | Monitoring information name known to the external system |
| var | Monitoring Listener address (the item to monitor...) |
| desc | Textual description of the information being monitored |
Definition at line 433 of file Algorithm.h.
|
inline |
Declare monitoring information (special case)
| name | Monitoring information name known to the external system |
| format | Format information |
| var | Monitoring Listener address |
| size | Monitoring Listener address size |
| desc | Textual description of the information being monitored |
Definition at line 448 of file Algorithm.h.
|
inline |
Declare the named property.
| name | the property name |
| property | the property itself, |
| doc | the documentation string |
Definition at line 393 of file Algorithm.h.
|
inline |
Declare remote named properties.
Definition at line 402 of file Algorithm.h.
| SmartIF<IConversionSvc>& Algorithm::detCnvSvc | ( | ) | const |
The standard detector data persistency conversion service.
May not be invoked before sysInitialize() has been invoked.
| SmartIF< IConversionSvc > & Algorithm::detDataCnvService | ( | ) | const |
Obsoleted name, kept due to the backwards compatibility.
Definition at line 931 of file Algorithm.cpp.
| SmartIF< IDataProviderSvc > & Algorithm::detDataService | ( | ) | const |
Obsoleted name, kept due to the backwards compatibility.
Definition at line 927 of file Algorithm.cpp.
| SmartIF<IDataProviderSvc>& Algorithm::detSvc | ( | ) | const |
The standard detector data service.
May not be invoked before sysInitialize() has been invoked.
|
virtual |
Algorithm end run. This method is called at the end of the event loop.
Reimplemented in Sequencer, GaudiPython::PyAlgorithm, and GaudiSequencer.
Definition at line 573 of file Algorithm.cpp.
| SmartIF<IConversionSvc>& Algorithm::eventCnvSvc | ( | ) | const |
The standard event data persistency conversion service.
May not be invoked before sysInitialize() has been invoked.
| SmartIF< IConversionSvc > & Algorithm::eventDataCnvService | ( | ) | const |
Obsoleted name, kept due to the backwards compatibility.
Definition at line 939 of file Algorithm.cpp.
| SmartIF< IDataProviderSvc > & Algorithm::eventDataService | ( | ) | const |
Obsoleted name, kept due to the backwards compatibility.
Definition at line 935 of file Algorithm.cpp.
| SmartIF<IDataProviderSvc>& Algorithm::eventSvc | ( | ) | const |
The standard event data service.
May not be invoked before sysInitialize() has been invoked.
|
inline |
| SmartIF<IExceptionSvc>& Algorithm::exceptionSvc | ( | ) | const |
Get the exception Service.
|
virtual |
Did this algorithm pass or fail its filter criterion for the last event?
Definition at line 862 of file Algorithm.cpp.
|
inlinevirtual |
the default (empty) implementation of IStateful::finalize() method
Reimplemented in GaudiHistos< GaudiAlgorithm >, GaudiCommon< Algorithm >, GaudiTuples< GaudiHistoAlg >, StoreExplorerAlg, CollectionCloneAlg, OutputStream, GaudiAlgorithm, TagCollectionStream, StoreSnifferAlg, PartitionSwitchAlg, Sequencer, GaudiTupleAlg, GaudiHistoAlg, EvtCollectionStream, GaudiPython::PyAlgorithm, GaudiSequencer, InputCopyStream, Prescaler, EventCounter, RecordStream, and RunRecordStream.
Definition at line 159 of file Algorithm.h.
|
inlinevirtual |
returns the current state of the algorithm
Definition at line 186 of file Algorithm.h.
|
virtual |
Implementation of IProperty::getProperties.
Definition at line 1159 of file Algorithm.cpp.
|
virtual |
Implementation of IProperty::getProperty.
Definition at line 1150 of file Algorithm.cpp.
|
virtual |
Implementation of IProperty::getProperty.
Definition at line 1153 of file Algorithm.cpp.
|
virtual |
Implementation of IProperty::getProperty.
Definition at line 1156 of file Algorithm.cpp.
| SmartIF< IHistogramSvc > & Algorithm::histogramDataService | ( | ) | const |
Obsoleted name, kept due to the backwards compatibility.
Definition at line 943 of file Algorithm.cpp.
| SmartIF<IHistogramSvc>& Algorithm::histoSvc | ( | ) | const |
The standard histogram service.
May not be invoked before sysInitialize() has been invoked.
|
inlinevirtual |
the default (empty) implementation of IStateful::initialize() method
Reimplemented in GaudiHistos< GaudiAlgorithm >, GaudiCommon< Algorithm >, GaudiTuples< GaudiHistoAlg >, StoreExplorerAlg, CollectionCloneAlg, OutputStream, GaudiAlgorithm, TagCollectionStream, StoreSnifferAlg, GaudiTupleAlg, GaudiHistoAlg, EvtCollectionStream, PartitionSwitchAlg, Sequencer, GaudiPython::PyAlgorithm, GaudiSequencer, InputCopyStream, Prescaler, and EventCounter.
Definition at line 153 of file Algorithm.h.
|
protected |
callback for output level property
Protected Member Functions.
Definition at line 1167 of file Algorithm.cpp.
|
virtual |
Is this algorithm enabled or disabled?
Definition at line 858 of file Algorithm.cpp.
|
virtual |
Has this algorithm been executed since the last reset?
Definition at line 845 of file Algorithm.cpp.
|
inlineprotected |
|
inlineprotected |
| SmartIF< IMessageSvc > & Algorithm::messageService | ( | ) | const |
Obsoleted name, kept due to the backwards compatibility.
Definition at line 947 of file Algorithm.cpp.
|
inline |
Access the monitor service.
| NULL | No monitor service is present |
| non-NULL | A monitor service is present and available to be used |
Definition at line 418 of file Algorithm.h.
| SmartIF< IMessageSvc > & Algorithm::msgSvc | ( | ) | const |
The standard message service.
Returns a pointer to the standard message service. May not be invoked before sysInitialize() has been invoked.
Definition at line 896 of file Algorithm.cpp.
|
virtual |
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.
Definition at line 837 of file Algorithm.cpp.
| SmartIF< INTupleSvc > & Algorithm::ntupleService | ( | ) | const |
Obsoleted name, kept due to the backwards compatibility.
Definition at line 951 of file Algorithm.cpp.
| SmartIF<INTupleSvc>& Algorithm::ntupleSvc | ( | ) | const |
The standard N tuple service.
Returns a pointer to the N tuple service if present.
Private assignment operator: NO ASSIGNMENT ALLOWED.
|
inlineprotected |
|
inlineprotected |
Accessor for the Message level property.
Definition at line 520 of file Algorithm.h.
| SmartIF<IRndmGenSvc>& Algorithm::randSvc | ( | ) | const |
AIDA-based NTuple service Returns a pointer to the AIDATuple service if present.
The standard RandomGen service, Return a pointer to the service if present
|
inline |
register for Algorithm Context Service?
Definition at line 318 of file Algorithm.h.
|
virtual |
the default (empty) implementation of IStateful::reinitialize() method
Reimplemented in Sequencer.
Definition at line 798 of file Algorithm.cpp.
|
virtual |
Reset the executed state of the Algorithm for the duration of the current event.
Reimplemented in Sequencer, and GaudiSequencer.
Definition at line 853 of file Algorithm.cpp.
|
virtual |
the default (empty) implementation of IStateful::restart() method
Definition at line 820 of file Algorithm.cpp.
|
inline |
Access a service by name, creating it if it doesn't already exist.
Definition at line 203 of file Algorithm.h.
|
inline |
Access a service by name and type, creating it if it doesn't already exist.
Definition at line 209 of file Algorithm.h.
| SmartIF< IService > Algorithm::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")
Definition at line 1190 of file Algorithm.cpp.
|
private |
implementation of service method
Definition at line 1173 of file Algorithm.cpp.
|
private |
Definition at line 1182 of file Algorithm.cpp.
| SmartIF< ISvcLocator > & Algorithm::serviceLocator | ( | ) | const |
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.
Definition at line 1091 of file Algorithm.cpp.
|
virtual |
Set the executed flag to the specified state.
Definition at line 849 of file Algorithm.cpp.
|
virtual |
Set the filter passed flag to the specified state.
Definition at line 866 of file Algorithm.cpp.
| void Algorithm::setOutputLevel | ( | int | level | ) |
| StatusCode Algorithm::setProperties | ( | ) |
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.
Definition at line 1096 of file Algorithm.cpp.
|
virtual |
Implementation of IProperty::setProperty.
Definition at line 1141 of file Algorithm.cpp.
|
virtual |
Implementation of IProperty::setProperty.
Definition at line 1144 of file Algorithm.cpp.
|
virtual |
Implementation of IProperty::setProperty.
Definition at line 1147 of file Algorithm.cpp.
|
inline |
set the property form the value
Note: the interface IProperty allows setting of the properties either directly from other properties or from strings only
This is very convenient in resetting of the default properties in the derived classes. E.g. without this method one needs to convert everything into strings to use IProperty::setProperty
For simple cases it is more or less ok, but for complicated properties it is just ugly..
| name | name of the property |
| value | value of the property |
Definition at line 504 of file Algorithm.h.
|
inlinevirtual |
the default (empty) implementation of IStateful::start() method
Reimplemented in Sequencer, and GaudiPython::PyAlgorithm.
Definition at line 155 of file Algorithm.h.
|
inlinevirtual |
the default (empty) implementation of IStateful::stop() method
Reimplemented in Sequencer, and GaudiPython::PyAlgorithm.
Definition at line 157 of file Algorithm.h.
| std::vector< Algorithm * > * Algorithm::subAlgorithms | ( | ) | const |
List of sub-algorithms. Returns a pointer to a vector of (sub) Algorithms.
Definition at line 870 of file Algorithm.cpp.
|
inline |
shortcut for method serviceLocator
Definition at line 315 of file Algorithm.h.
|
virtual |
beginRun method invoked by the framework.
This method is responsible for any beginRun actions required by the framework itself. It will in turn invoke the beginRun() method of the derived algorithm, and of any sub-algorithms which it creates.
Definition at line 426 of file Algorithm.cpp.
|
virtual |
endRun method invoked by the framework.
This method is responsible for any endRun actions required by the framework itself. It will in turn invoke the endRun() method of the derived algorithm, and of any sub-algorithms which it creates.
Definition at line 502 of file Algorithm.cpp.
|
virtual |
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 in GaudiAlgorithm.
Definition at line 578 of file Algorithm.cpp.
|
virtual |
System finalization.
This method invokes the finalize() method of a concrete algorithm and the finalize() methods of all of that algorithm's sub algorithms.
Definition at line 726 of file Algorithm.cpp.
|
virtual |
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.
Definition at line 93 of file Algorithm.cpp.
|
virtual |
Reinitialization method invoked by the framework.
This method is responsible for any reinitialization required by the framework itself. It will in turn invoke the reinitialize() method of the derived algorithm, and of any sub-algorithms which it creates.
Definition at line 259 of file Algorithm.cpp.
|
virtual |
Restart method invoked by the framework.
It will in turn invoke the restart() method of the derived algorithm, and of any sub-algorithms which it creates.
Definition at line 343 of file Algorithm.cpp.
|
virtual |
Reinitialization method invoked by the framework.
This method is responsible for any reinitialization required by the framework itself. It will in turn invoke the reinitialize() method of the derived algorithm, and of any sub-algorithms which it creates.
Definition at line 182 of file Algorithm.cpp.
|
virtual |
System stop.
This method invokes the stop() method of a concrete algorithm and the stop() methods of all of that algorithm's sub algorithms.
Definition at line 667 of file Algorithm.cpp.
|
inlinevirtual |
returns the state the algorithm will be in after the ongoing transition
Definition at line 189 of file Algorithm.h.
|
inlinevirtual |
Dummy implementation of IStateful::terminate() method.
Definition at line 150 of file Algorithm.h.
The standard ToolSvc service, Return a pointer to the service if present.
|
virtual |
Definition at line 841 of file Algorithm.cpp.
|
private |
global flag for auditors
Definition at line 554 of file Algorithm.h.
|
private |
flag for auditors in "beginRun()"
Definition at line 560 of file Algorithm.h.
|
private |
flag for auditors in "endRun()"
Definition at line 561 of file Algorithm.h.
|
private |
flag for auditors in "execute()"
Definition at line 558 of file Algorithm.h.
|
private |
flag for auditors in "finalize()"
Definition at line 559 of file Algorithm.h.
|
private |
flag for auditors in "initialize()"
Definition at line 555 of file Algorithm.h.
|
private |
flag for auditors in "Reinitialize()"
Definition at line 556 of file Algorithm.h.
|
private |
flag for auditors in "Restart()"
Definition at line 557 of file Algorithm.h.
|
private |
flag for auditors in "initialize()"
Definition at line 562 of file Algorithm.h.
|
private |
flag for auditors in "Reinitialize()"
Definition at line 563 of file Algorithm.h.
|
mutableprivate |
Definition at line 546 of file Algorithm.h.
|
mutableprivate |
Definition at line 540 of file Algorithm.h.
|
mutableprivate |
Detector conversion service.
Definition at line 536 of file Algorithm.h.
|
mutableprivate |
Detector data service.
Definition at line 535 of file Algorithm.h.
|
mutableprivate |
Event conversion service.
Definition at line 534 of file Algorithm.h.
|
mutableprivate |
Event data service.
Definition at line 533 of file Algorithm.h.
|
private |
Algorithm error counter.
Definition at line 553 of file Algorithm.h.
|
private |
Algorithm Max number of errors.
Definition at line 552 of file Algorithm.h.
|
mutableprivate |
Exception Handler Service.
Definition at line 542 of file Algorithm.h.
|
private |
Filter passed flag.
Definition at line 564 of file Algorithm.h.
|
mutableprivate |
Histogram data service.
Definition at line 537 of file Algorithm.h.
|
private |
Algorithm is enabled flag.
Definition at line 565 of file Algorithm.h.
|
private |
Algorithm is executed flag.
Definition at line 566 of file Algorithm.h.
|
private |
Algorithm has been finalized flag.
Definition at line 569 of file Algorithm.h.
|
private |
Name to use for Monitor Service.
Definition at line 548 of file Algorithm.h.
|
mutableprivate |
Message service.
Definition at line 532 of file Algorithm.h.
|
private |
Algorithm's name for identification.
Definition at line 528 of file Algorithm.h.
|
mutableprivate |
N tuple service.
Definition at line 538 of file Algorithm.h.
|
private |
Algorithm output level.
Definition at line 551 of file Algorithm.h.
|
mutableprivate |
Definition at line 543 of file Algorithm.h.
|
mutableprivate |
Online Monitoring Service.
Definition at line 545 of file Algorithm.h.
|
private |
For management of properties.
Definition at line 550 of file Algorithm.h.
|
private |
Pointer to service locator service.
Definition at line 549 of file Algorithm.h.
Definition at line 544 of file Algorithm.h.
|
private |
flag to register for Algorithm Context Service
Definition at line 547 of file Algorithm.h.
|
mutableprivate |
Random Number Generator Service.
Definition at line 541 of file Algorithm.h.
|
private |
Algorithm has been initialized flag.
Definition at line 567 of file Algorithm.h.
|
private |
Sub algorithms.
Definition at line 530 of file Algorithm.h.
|
private |
Algorithm has been initialized flag.
Definition at line 568 of file Algorithm.h.
|
private |
Algorithm's version.
Definition at line 529 of file Algorithm.h.