![]() |
The Gaudi Framework
v28r0
|
Base class from which all concrete algorithm classes should be derived. More...
#include <GaudiKernel/Algorithm.h>
Public Types | |
typedef Gaudi::PluginService::Factory< IAlgorithm *, const std::string &, ISvcLocator * > | Factory |
![]() | |
using | PropertyHolderImpl = PropertyHolder< CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > > > |
Typedef used to refer to this class from derived classes, as in. More... | |
![]() | |
using | base_class = CommonMessaging |
Public Member Functions | |
Algorithm (const std::string &name, ISvcLocator *svcloc, const std::string &version=PACKAGE_VERSION) | |
Constructor. More... | |
StatusCode | sysStart () override |
Reinitialization method invoked by the framework. More... | |
StatusCode | sysInitialize () override |
Initialization method invoked by the framework. More... | |
StatusCode | sysReinitialize () override |
Reinitialization method invoked by the framework. More... | |
StatusCode | sysRestart () override |
Restart method invoked by the framework. More... | |
StatusCode | sysExecute () override |
The actions to be performed by the algorithm on an event. More... | |
StatusCode | sysStop () override |
System stop. More... | |
StatusCode | sysFinalize () override |
System finalization. More... | |
StatusCode | sysBeginRun () override |
beginRun method invoked by the framework. More... | |
StatusCode | sysEndRun () override |
endRun method invoked by the framework. More... | |
const std::string & | name () const override |
The identifying name of the algorithm object. More... | |
const Gaudi::StringKey & | nameKey () const override |
const std::string & | type () const override |
The type of the algorithm object. More... | |
void | setType (const std::string &type) override |
const std::string & | version () const override |
unsigned int | index () const override |
StatusCode | configure () override |
Dummy implementation of IStateful::configure() method. More... | |
StatusCode | terminate () override |
Dummy implementation of IStateful::terminate() method. More... | |
StatusCode | initialize () override |
the default (empty) implementation of IStateful::initialize() method More... | |
StatusCode | start () override |
the default (empty) implementation of IStateful::start() method More... | |
StatusCode | stop () override |
the default (empty) implementation of IStateful::stop() method More... | |
StatusCode | finalize () override |
the default (empty) implementation of IStateful::finalize() method More... | |
StatusCode | reinitialize () override |
the default (empty) implementation of IStateful::reinitialize() method More... | |
StatusCode | restart () override |
the default (empty) implementation of IStateful::restart() method More... | |
Gaudi::StateMachine::State | FSMState () const override |
returns the current state of the algorithm More... | |
Gaudi::StateMachine::State | targetFSMState () const override |
returns the state the algorithm will be in after the ongoing transition More... | |
bool | isExecuted () const override |
Has this algorithm been executed since the last reset? More... | |
void | setExecuted (bool state) override |
Set the executed flag to the specified state. More... | |
void | resetExecuted () override |
Reset the executed state of the Algorithm for the duration of the current event. More... | |
StatusCode | beginRun () override |
Algorithm begin run. More... | |
StatusCode | endRun () override |
Algorithm end run. This method is called at the end of the event loop. More... | |
bool | isEnabled () const override |
Is this algorithm enabled or disabled? More... | |
bool | filterPassed () const override |
Did this algorithm pass or fail its filter criterion for the last event? More... | |
void | setFilterPassed (bool state) override |
Set the filter passed flag to the specified state. More... | |
int | errorCount () const |
Get the number of failures of the algorithm. More... | |
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. More... | |
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. 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<class T > | |
SmartIF< T > | service (const std::string &name, bool createIf=true, bool quiet=false) const |
SmartIF< IAuditorSvc > & | auditorSvc () const |
The standard auditor service.May not be invoked before sysInitialize() has been invoked. More... | |
SmartIF< IChronoStatSvc > & | chronoSvc () const |
The standard Chrono & Stat service, Return a pointer to the service if present. More... | |
SmartIF< IChronoStatSvc > & | chronoStatService () const |
SmartIF< IDataProviderSvc > & | detSvc () const |
The standard detector data service. More... | |
SmartIF< IDataProviderSvc > & | detDataService () const |
SmartIF< IConversionSvc > & | detCnvSvc () const |
The standard detector data persistency conversion service. More... | |
SmartIF< IConversionSvc > & | detDataCnvService () const |
SmartIF< IDataProviderSvc > & | eventSvc () const |
The standard event data service. More... | |
SmartIF< IDataProviderSvc > & | evtSvc () const |
shortcut for method eventSvc More... | |
SmartIF< IDataProviderSvc > & | eventDataService () const |
SmartIF< IConversionSvc > & | eventCnvSvc () const |
The standard event data persistency conversion service. More... | |
SmartIF< IConversionSvc > & | eventDataCnvService () const |
SmartIF< IHistogramSvc > & | histoSvc () const |
The standard histogram service. More... | |
SmartIF< IHistogramSvc > & | histogramDataService () const |
SmartIF< INTupleSvc > & | ntupleSvc () const |
The standard N tuple service. More... | |
SmartIF< INTupleSvc > & | ntupleService () const |
SmartIF< IRndmGenSvc > & | randSvc () const |
The standard RandomGen service, Return a pointer to the service if present. More... | |
SmartIF< IToolSvc > & | toolSvc () const |
The standard ToolSvc service, Return a pointer to the service if present. More... | |
SmartIF< IExceptionSvc > & | exceptionSvc () const |
Get the exception Service. More... | |
SmartIF< IAlgContextSvc > & | contextSvc () const |
get Algorithm Context Service More... | |
SmartIF< ITimelineSvc > & | timelineSvc () const |
SmartIF< ISvcLocator > & | serviceLocator () const override |
The standard service locator. More... | |
SmartIF< ISvcLocator > & | svcLoc () const |
shortcut for method serviceLocator More... | |
SmartIF< IHiveWhiteBoard > & | whiteboard () const |
SmartIF< IAlgExecStateSvc > & | algExecStateSvc () const |
bool | registerContext () const |
register for Algorithm Context Service? More... | |
StatusCode | createSubAlgorithm (const std::string &type, const std::string &name, Algorithm *&pSubAlg) |
Create a sub algorithm. More... | |
const std::vector< Algorithm * > * | subAlgorithms () const |
List of sub-algorithms. Returns a pointer to a vector of (sub) Algorithms. More... | |
std::vector< Algorithm * > * | subAlgorithms () |
List of sub-algorithms. Returns a pointer to a vector of (sub) Algorithms. More... | |
StatusCode | setProperties () |
Set the algorithm's properties. More... | |
template<class T > | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, ToolHandle< T > &hndl, const std::string &doc="none") |
template<class T > | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, ToolHandleArray< T > &hndlArr, const std::string &doc="none") |
SmartIF< 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... | |
const EventContext * | getContext () const override |
get the context More... | |
void | setContext (const EventContext *context) override |
set the context More... | |
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 |
const DataObjIDColl & | inputDataObjs () const override |
const DataObjIDColl & | outputDataObjs () const override |
void | commitHandles () override |
void | registerTool (IAlgTool *tool) const |
void | deregisterTool (IAlgTool *tool) const |
template<class T > | |
StatusCode | declareTool (ToolHandle< T > &handle, std::string toolTypeAndName="", bool createIf=true) |
const std::vector< IAlgTool * > & | tools () const |
bool | isIOBound () const |
void | setIOBound (bool value) |
bool | isClonable () const override |
Specifies the clonability of the algorithm. More... | |
unsigned int | cardinality () const override |
Return the cardinality. More... | |
const std::vector< std::string > & | neededResources () const override |
![]() | |
PropertyHolder ()=default | |
~PropertyHolder () override=default | |
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Details::PropertyBase &prop) |
Declare a property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, TYPE &value, const std::string &doc="none") |
Helper to wrap a regular data member and use it as a regular property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, TYPE &value, const std::string &doc="none") const |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, Gaudi::Property< TYPE, VERIFIER, HANDLERS > &prop, const std::string &doc="none") |
Declare a PropertyBase instance setting name and documentation. More... | |
Gaudi::Details::PropertyBase * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") |
Declare a remote property. More... | |
StatusCode | setProperty (const Gaudi::Details::PropertyBase &p) override |
set the property form another property More... | |
StatusCode | setProperty (const std::string &s) override |
set the property from the formatted string More... | |
StatusCode | setProperty (const std::string &n, const std::string &v) override |
set the property from name and the value More... | |
StatusCode | setProperty (const std::string &name, const TYPE &value) |
set the property form the value More... | |
StatusCode | getProperty (Gaudi::Details::PropertyBase *p) const override |
get the property More... | |
const Gaudi::Details::PropertyBase & | getProperty (const std::string &name) const override |
get the property by name More... | |
StatusCode | getProperty (const std::string &n, std::string &v) const override |
convert the property to the string More... | |
const std::vector< Gaudi::Details::PropertyBase * > & | getProperties () const override |
get all properties More... | |
bool | hasProperty (const std::string &name) const override |
Return true if we have a property with the given name. More... | |
PropertyHolder (const PropertyHolder &)=delete | |
PropertyHolder & | operator= (const PropertyHolder &)=delete |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, ToolHandle< TYPE > &ref, const std::string &doc="none") |
Specializations for various GaudiHandles. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, ServiceHandle< TYPE > &ref, const std::string &doc="none") |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, ToolHandleArray< TYPE > &ref, const std::string &doc="none") |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, ServiceHandleArray< TYPE > &ref, const std::string &doc="none") |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, DataObjectHandle< TYPE > &ref, const std::string &doc="none") |
![]() | |
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... | |
Protected Member Functions | |
virtual void | declareInput (Gaudi::DataHandle *im) override |
virtual void | declareOutput (Gaudi::DataHandle *im) override |
std::vector< IAlgTool * > & | tools () |
bool | isInitialized () const override |
Has the Algorithm already been initialized? More... | |
bool | isFinalized () const override |
Has the Algorithm already been finalized? More... | |
void | setIndex (const unsigned int &idx) override |
set instantiation index of Alg More... | |
int | maxErrors () const |
![]() | |
Gaudi::Details::PropertyBase * | property (const std::string &name) const |
![]() | |
void | updateMsgStreamOutputLevel (int level) |
Update the output level of the cached MsgStream. More... | |
Protected Attributes | |
const EventContext * | m_event_context |
Event specific data for multiple event processing. More... | |
std::unique_ptr< IDataHandleVisitor > | m_updateDataHandles |
Hook for for derived classes to provide a custom visitor for data handles. More... | |
Private Member Functions | |
void | initToolHandles () const |
template<typename IFace > | |
SmartIF< IFace > & | get_svc_ (SmartIF< IFace > &p, const char *service_name) const |
StatusCode | service_i (const std::string &svcName, bool createIf, const InterfaceID &iid, void **ppSvc) const |
implementation of service method More... | |
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. More... | |
Algorithm & | operator= (const Algorithm &rhs) |
Private assignment operator: NO ASSIGNMENT ALLOWED. More... | |
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 78 of file Algorithm.h.
typedef Gaudi::PluginService::Factory<IAlgorithm*, const std::string&, ISvcLocator*> Algorithm::Factory |
Definition at line 83 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 49 of file Algorithm.cpp.
|
private |
Private Copy constructor: NO COPY ALLOWED.
|
overridevirtual |
Definition at line 198 of file Algorithm.cpp.
SmartIF< IAlgExecStateSvc > & Algorithm::algExecStateSvc | ( | ) | const |
Definition at line 818 of file Algorithm.cpp.
SmartIF< IAuditorSvc > & Algorithm::auditorSvc | ( | ) | const |
The standard auditor service.May not be invoked before sysInitialize() has been invoked.
Definition at line 819 of file Algorithm.cpp.
|
override |
Algorithm begin run.
This method is called at the beginning of the event loop.
Definition at line 441 of file Algorithm.cpp.
|
inlineoverride |
|
inline |
Definition at line 257 of file Algorithm.h.
SmartIF< IChronoStatSvc > & Algorithm::chronoSvc | ( | ) | const |
The standard Chrono & Stat service, Return a pointer to the service if present.
Definition at line 820 of file Algorithm.cpp.
|
override |
Definition at line 984 of file Algorithm.cpp.
|
inlineoverride |
Dummy implementation of IStateful::configure() method.
Definition at line 173 of file Algorithm.h.
SmartIF< IAlgContextSvc > & Algorithm::contextSvc | ( | ) | const |
Definition at line 830 of file Algorithm.cpp.
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 862 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 409 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 422 of file Algorithm.h.
|
inlineoverrideprotectedvirtual |
Definition at line 443 of file Algorithm.h.
|
inlineoverrideprotectedvirtual |
Definition at line 444 of file Algorithm.h.
|
inline |
Definition at line 366 of file Algorithm.h.
|
inline |
Definition at line 377 of file Algorithm.h.
|
inline |
Definition at line 469 of file Algorithm.h.
void Algorithm::deregisterTool | ( | IAlgTool * | tool | ) | const |
Definition at line 1010 of file Algorithm.cpp.
SmartIF< IConversionSvc > & Algorithm::detCnvSvc | ( | ) | const |
The standard detector data persistency conversion service.
May not be invoked before sysInitialize() has been invoked.
Definition at line 822 of file Algorithm.cpp.
|
inline |
Definition at line 269 of file Algorithm.h.
|
inline |
Definition at line 263 of file Algorithm.h.
SmartIF< IDataProviderSvc > & Algorithm::detSvc | ( | ) | const |
The standard detector data service.
May not be invoked before sysInitialize() has been invoked.
Definition at line 821 of file Algorithm.cpp.
|
override |
Algorithm end run. This method is called at the end of the event loop.
Definition at line 492 of file Algorithm.cpp.
|
inline |
SmartIF< IConversionSvc > & Algorithm::eventCnvSvc | ( | ) | const |
The standard event data persistency conversion service.
May not be invoked before sysInitialize() has been invoked.
Definition at line 824 of file Algorithm.cpp.
|
inline |
Definition at line 283 of file Algorithm.h.
|
inline |
Definition at line 277 of file Algorithm.h.
SmartIF< IDataProviderSvc > & Algorithm::eventSvc | ( | ) | const |
The standard event data service.
May not be invoked before sysInitialize() has been invoked.
Definition at line 823 of file Algorithm.cpp.
|
inline |
shortcut for method eventSvc
Definition at line 276 of file Algorithm.h.
SmartIF< IExceptionSvc > & Algorithm::exceptionSvc | ( | ) | const |
Get the exception Service.
Definition at line 829 of file Algorithm.cpp.
|
inlineoverridevirtual |
Definition at line 450 of file Algorithm.h.
|
inlineoverridevirtual |
Definition at line 451 of file Algorithm.h.
|
override |
Did this algorithm pass or fail its filter criterion for the last event?
Definition at line 776 of file Algorithm.cpp.
|
inlineoverride |
the default (empty) implementation of IStateful::finalize() method
Definition at line 184 of file Algorithm.h.
|
inlineoverride |
returns the current state of the algorithm
Definition at line 190 of file Algorithm.h.
|
private |
Definition at line 806 of file Algorithm.cpp.
|
inlineoverride |
get the context
Definition at line 435 of file Algorithm.h.
|
inline |
Definition at line 292 of file Algorithm.h.
SmartIF< IHistogramSvc > & Algorithm::histoSvc | ( | ) | const |
The standard histogram service.
May not be invoked before sysInitialize() has been invoked.
Definition at line 825 of file Algorithm.cpp.
|
override |
Definition at line 731 of file Algorithm.cpp.
|
inlineoverride |
the default (empty) implementation of IStateful::initialize() method
Definition at line 178 of file Algorithm.h.
|
private |
Definition at line 883 of file Algorithm.cpp.
|
inlineoverride |
Definition at line 455 of file Algorithm.h.
|
inlineoverridevirtual |
Definition at line 447 of file Algorithm.h.
|
inlineoverride |
|
override |
Is this algorithm enabled or disabled?
Definition at line 772 of file Algorithm.cpp.
|
override |
Has this algorithm been executed since the last reset?
Definition at line 735 of file Algorithm.cpp.
|
inlineoverrideprotected |
Has the Algorithm already been finalized?
Definition at line 517 of file Algorithm.h.
|
inlineoverrideprotected |
Has the Algorithm already been initialized?
Definition at line 514 of file Algorithm.h.
|
inline |
Definition at line 489 of file Algorithm.h.
|
inlineprotected |
Definition at line 525 of file Algorithm.h.
|
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 394 of file Algorithm.h.
|
override |
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 725 of file Algorithm.cpp.
|
override |
Definition at line 727 of file Algorithm.cpp.
|
inlineoverride |
Definition at line 510 of file Algorithm.h.
|
inline |
Definition at line 298 of file Algorithm.h.
SmartIF< INTupleSvc > & Algorithm::ntupleSvc | ( | ) | const |
The standard N tuple service.
Returns a pointer to the N tuple service if present.
Definition at line 826 of file Algorithm.cpp.
Private assignment operator: NO ASSIGNMENT ALLOWED.
|
inlineoverride |
Definition at line 456 of file Algorithm.h.
|
inlineoverridevirtual |
Definition at line 448 of file Algorithm.h.
SmartIF< IRndmGenSvc > & Algorithm::randSvc | ( | ) | const |
The standard RandomGen service, Return a pointer to the service if present.
Definition at line 827 of file Algorithm.cpp.
|
inline |
void Algorithm::registerTool | ( | IAlgTool * | tool | ) | const |
Definition at line 1002 of file Algorithm.cpp.
|
override |
the default (empty) implementation of IStateful::reinitialize() method
Definition at line 688 of file Algorithm.cpp.
|
override |
Reset the executed state of the Algorithm for the duration of the current event.
Definition at line 760 of file Algorithm.cpp.
|
override |
the default (empty) implementation of IStateful::restart() method
Definition at line 709 of file Algorithm.cpp.
|
inline |
Access a service by name, creating it if it doesn't already exist.
Definition at line 227 of file Algorithm.h.
|
inline |
Access a service by name and type, creating it if it doesn't already exist.
Definition at line 234 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 977 of file Algorithm.cpp.
|
inline |
Definition at line 243 of file Algorithm.h.
|
private |
implementation of service method
Protected Member Functions.
Definition at line 964 of file Algorithm.cpp.
|
private |
Definition at line 970 of file Algorithm.cpp.
|
override |
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 834 of file Algorithm.cpp.
|
inlineoverride |
set the context
Definition at line 438 of file Algorithm.h.
|
override |
Set the executed flag to the specified state.
Definition at line 748 of file Algorithm.cpp.
|
override |
Set the filter passed flag to the specified state.
Definition at line 789 of file Algorithm.cpp.
|
overrideprotected |
set instantiation index of Alg
Definition at line 733 of file Algorithm.cpp.
|
inline |
Definition at line 491 of file Algorithm.h.
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 837 of file Algorithm.cpp.
|
inlineoverride |
Definition at line 166 of file Algorithm.h.
|
inlineoverride |
the default (empty) implementation of IStateful::start() method
Definition at line 180 of file Algorithm.h.
|
inlineoverride |
the default (empty) implementation of IStateful::stop() method
Definition at line 182 of file Algorithm.h.
const std::vector< Algorithm * > * Algorithm::subAlgorithms | ( | ) | const |
List of sub-algorithms. Returns a pointer to a vector of (sub) Algorithms.
Definition at line 801 of file Algorithm.cpp.
std::vector< Algorithm * > * Algorithm::subAlgorithms | ( | ) |
List of sub-algorithms. Returns a pointer to a vector of (sub) Algorithms.
Definition at line 803 of file Algorithm.cpp.
|
inline |
shortcut for method serviceLocator
Definition at line 323 of file Algorithm.h.
|
override |
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 385 of file Algorithm.cpp.
|
override |
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 444 of file Algorithm.cpp.
|
override |
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.
Definition at line 494 of file Algorithm.cpp.
|
override |
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 637 of file Algorithm.cpp.
|
override |
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 81 of file Algorithm.cpp.
|
override |
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 271 of file Algorithm.cpp.
|
override |
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 329 of file Algorithm.cpp.
|
override |
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 215 of file Algorithm.cpp.
|
override |
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 590 of file Algorithm.cpp.
|
inlineoverride |
returns the state the algorithm will be in after the ongoing transition
Definition at line 192 of file Algorithm.h.
|
inlineoverride |
Dummy implementation of IStateful::terminate() method.
Definition at line 175 of file Algorithm.h.
SmartIF< ITimelineSvc > & Algorithm::timelineSvc | ( | ) | const |
Definition at line 831 of file Algorithm.cpp.
const std::vector< IAlgTool * > & Algorithm::tools | ( | ) | const |
Definition at line 948 of file Algorithm.cpp.
|
protected |
Definition at line 954 of file Algorithm.cpp.
The standard ToolSvc service, Return a pointer to the service if present.
Definition at line 828 of file Algorithm.cpp.
|
inlineoverride |
|
override |
Definition at line 729 of file Algorithm.cpp.
SmartIF< IHiveWhiteBoard > & Algorithm::whiteboard | ( | ) | const |
Definition at line 832 of file Algorithm.cpp.
|
mutableprivate |
Alg execution state mgr.
Definition at line 560 of file Algorithm.h.
|
private |
Definition at line 579 of file Algorithm.h.
|
private |
Definition at line 585 of file Algorithm.h.
|
private |
Definition at line 586 of file Algorithm.h.
|
private |
Definition at line 583 of file Algorithm.h.
|
private |
Definition at line 584 of file Algorithm.h.
|
private |
Definition at line 580 of file Algorithm.h.
|
private |
Definition at line 581 of file Algorithm.h.
|
private |
Definition at line 582 of file Algorithm.h.
|
private |
Definition at line 587 of file Algorithm.h.
|
private |
Definition at line 588 of file Algorithm.h.
|
private |
Definition at line 599 of file Algorithm.h.
|
mutableprivate |
Definition at line 557 of file Algorithm.h.
|
mutableprivate |
Definition at line 551 of file Algorithm.h.
|
mutableprivate |
Detector conversion service.
Definition at line 548 of file Algorithm.h.
|
mutableprivate |
Detector data service.
Definition at line 547 of file Algorithm.h.
|
private |
Definition at line 590 of file Algorithm.h.
|
mutableprivate |
Event conversion service.
Definition at line 546 of file Algorithm.h.
|
mutableprivate |
Event data service.
Definition at line 544 of file Algorithm.h.
|
private |
Definition at line 574 of file Algorithm.h.
|
private |
Definition at line 573 of file Algorithm.h.
|
protected |
Event specific data for multiple event processing.
Definition at line 520 of file Algorithm.h.
|
mutableprivate |
Exception Handler Service.
Definition at line 553 of file Algorithm.h.
|
private |
Definition at line 576 of file Algorithm.h.
|
private |
Definition at line 577 of file Algorithm.h.
|
private |
Filter passed flag.
Definition at line 608 of file Algorithm.h.
|
mutableprivate |
Histogram data service.
Definition at line 549 of file Algorithm.h.
|
private |
Algorithm's index.
Definition at line 531 of file Algorithm.h.
|
private |
Definition at line 462 of file Algorithm.h.
|
private |
Definition at line 461 of file Algorithm.h.
|
private |
Definition at line 598 of file Algorithm.h.
|
private |
Definition at line 571 of file Algorithm.h.
|
private |
Algorithm is executed flag.
Definition at line 609 of file Algorithm.h.
|
private |
Algorithm has been finalized flag.
Definition at line 615 of file Algorithm.h.
|
private |
Definition at line 603 of file Algorithm.h.
|
private |
for re-entrant Algs
Definition at line 606 of file Algorithm.h.
|
private |
Definition at line 592 of file Algorithm.h.
|
mutableprivate |
Message service.
Definition at line 543 of file Algorithm.h.
|
private |
Algorithm's name for identification.
Definition at line 528 of file Algorithm.h.
|
private |
Definition at line 600 of file Algorithm.h.
|
mutableprivate |
N tuple service.
Definition at line 550 of file Algorithm.h.
|
private |
Definition at line 462 of file Algorithm.h.
|
private |
Definition at line 461 of file Algorithm.h.
|
private |
Definition at line 570 of file Algorithm.h.
|
mutableprivate |
Definition at line 554 of file Algorithm.h.
|
mutableprivate |
Online Monitoring Service.
Definition at line 556 of file Algorithm.h.
|
private |
Pointer to service locator service.
Definition at line 562 of file Algorithm.h.
Definition at line 555 of file Algorithm.h.
|
private |
Definition at line 595 of file Algorithm.h.
|
mutableprivate |
Random Number Generator Service.
Definition at line 552 of file Algorithm.h.
|
private |
flag indicating whether ToolHandle tools have been added to m_tools
Algorithm has been initialized flag
Definition at line 613 of file Algorithm.h.
|
private |
Sub algorithms.
Definition at line 532 of file Algorithm.h.
|
private |
Algorithm has been initialized flag.
Definition at line 614 of file Algorithm.h.
|
mutableprivate |
Timeline Service.
Definition at line 559 of file Algorithm.h.
|
mutableprivate |
Definition at line 537 of file Algorithm.h.
|
mutableprivate |
Definition at line 536 of file Algorithm.h.
|
mutableprivate |
Definition at line 611 of file Algorithm.h.
|
mutableprivate |
Definition at line 535 of file Algorithm.h.
|
private |
Algorithm's type.
Definition at line 529 of file Algorithm.h.
|
protected |
Hook for for derived classes to provide a custom visitor for data handles.
Definition at line 566 of file Algorithm.h.
|
private |
Algorithm's version.
Definition at line 530 of file Algorithm.h.
|
mutableprivate |
Event data service (whiteboard)
Definition at line 545 of file Algorithm.h.