![]() |
The Gaudi Framework
v26r3
|
the base class for all algorithm Python-image of C++ clkass GaudiAlgorithm More...


Additional Inherited Members | |
Public Member Functions inherited from GaudiPython.Bindings.iAlgorithm | |
| def | __init__ |
| def | retrieveInterface (self) |
| def | __init__ |
| def | retrieveInterface (self) |
Public Member Functions inherited from GaudiPython.Bindings.iProperty | |
| def | __init__ |
| def | getInterface (self) |
| def | retrieveInterface (self) |
| def | __call_interface_method__ (self, ifname, method, args) |
| def | __setattr__ (self, name, value) |
| def | __getattr__ (self, name) |
| def | properties (self) |
| def | name (self) |
| def | __init__ |
| def | getInterface (self) |
| def | retrieveInterface (self) |
| def | __call_interface_method__ (self, ifname, method, args) |
| def | __setattr__ (self, name, value) |
| def | __getattr__ (self, name) |
| def | properties (self) |
| def | name (self) |
Static Public Attributes inherited from GaudiPython.Bindings.iAlgorithm | |
| tuple | initialize = lambdaself:self.__call_interface_method__("_ialg","initialize") |
| tuple | start = lambdaself:self.__call_interface_method__("_ialg","start") |
| tuple | execute = lambdaself:self.__call_interface_method__("_ialg","execute") |
| tuple | stop = lambdaself:self.__call_interface_method__("_ialg","stop") |
| tuple | finalize = lambdaself:self.__call_interface_method__("_ialg","finalize") |
| tuple | reinitialize = lambdaself:self.__call_interface_method__("_ialg","reinitialize") |
| tuple | restart = lambdaself:self.__call_interface_method__("_ialg","restart") |
| tuple | sysInitialize = lambdaself:self.__call_interface_method__("_ialg","sysInitialize") |
| tuple | sysStart = lambdaself:self.__call_interface_method__("_ialg","sysStart") |
| tuple | sysExecute = lambdaself:self.__call_interface_method__("_ialg","sysExecute") |
| tuple | sysStop = lambdaself:self.__call_interface_method__("_ialg","sysStop") |
| tuple | sysFinalize = lambdaself:self.__call_interface_method__("_ialg","sysFinalize") |
| tuple | sysReinitialize = lambdaself:self.__call_interface_method__("_ialg","sysReinitialize") |
| tuple | sysRestart = lambdaself:self.__call_interface_method__("_ialg","sysRestart") |
the base class for all algorithm Python-image of C++ clkass GaudiAlgorithm
*******************************************************************************
* * 'Physisics do not like it, *
* * physisics do not need it, *
* * physisics do not use it' *
* * ****************************
* Usage: *
* *
* from GaudiPython.GaudiAlgs import GaudiAlgo, SUCCESS *
* *
* class MyClass(GaudiAlgo) : *
* ' My specific Algorithm, derived from GaudiAlgo base class ' *
* def __init__( self , name , **args ) : *
* 'Constructor from algorithm instance name & parameters' *
* #invoke the constructor of base class *
* GaudiAlgo.__init__(self , name , **args ) *
* *
* def initialize ( self ) : *
* 'Algorithm initialization' *
* # initialize the base class *
* status = GaudiAlgo.initialize( self ) *
* if status.isFailure() : return status *
* *
* # locate the services and tools *
* *
* # locate some tool: *
* extrapolator = self.tool(ITrExtrapolator,'TrExtrapolator') *
* *
* # locate the service *
* rndmSvc = self.svc(IRndmGenSvc, 'RndmGenSvc') *
* *
* return SUCCESS *
* *
* *
* def execute ( self ) : *
* 'Major method (from IAlgorithm interface)' *
* *
* # get some data from Transient Event Store *
* tracks = self.get('/Event/Rec/Tracks') *
* *
* # use counters *
* c1 = self.counter('#Tracks') *
* c2 = self.counter('No Tracks') *
* if tracks.empty : *
* c2+=1 *
* c1 += tracks->size() *
* *
* if 1000 < tracks.size() : *
* return self.Error('The event is *VERY* busy') *
* *
* return SUCCESS *
* *
*******************************************************************************
Usage:
Definition at line 554 of file GaudiAlgs.py.