Gaudi Framework, version v22r4

Home   Generated: Fri Sep 2 2011
Public Member Functions | Private Attributes

GaudiPython::PyAlgorithm Class Reference

Python Algorithm base class. More...

#include <Algorithm.h>

Inheritance diagram for GaudiPython::PyAlgorithm:
Inheritance graph
[legend]
Collaboration diagram for GaudiPython::PyAlgorithm:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PyAlgorithm (PyObject *self, const std::string &name)
 constructor
StatusCode initialize ()
 the default (empty) implementation of IStateful::initialize() method
StatusCode start ()
 the default (empty) implementation of IStateful::start() method
StatusCode beginRun ()
 Algorithm begin run.
StatusCode endRun ()
 Algorithm end run. This method is called at the end of the event loop.
StatusCode execute ()
StatusCode stop ()
 the default (empty) implementation of IStateful::stop() method
StatusCode finalize ()
 the default (empty) implementation of IStateful::finalize() method
IAlgorithmmyself ()

Private Attributes

PyObjectm_self

Detailed Description

Python Algorithm base class.

Definition at line 35 of file Algorithm.h.


Constructor & Destructor Documentation

GaudiPython::PyAlgorithm::PyAlgorithm ( PyObject self,
const std::string name 
)

constructor

Parameters:
selfpython objects
namename of algorithm instance

Definition at line 76 of file Algorithm.cpp.

  : Algorithm ( name , Gaudi::svcLocator() )
  , m_self ( self )
{
  // The owner of the Algorithm is Python (as creator) therefore
  // it should not be deleted by Gaudi (added an extra addRef()).
  addRef() ;
  addRef() ;
}

Member Function Documentation

StatusCode GaudiPython::PyAlgorithm::beginRun (  ) [virtual]

Algorithm begin run.

This method is called at the beginning of the event loop.

Reimplemented from Algorithm.

Definition at line 104 of file Algorithm.cpp.

                                            {
  return GaudiPython::call_python_method ( m_self , "beginRun" ) ; }
StatusCode GaudiPython::PyAlgorithm::endRun (  ) [virtual]

Algorithm end run. This method is called at the end of the event loop.

Reimplemented from Algorithm.

Definition at line 106 of file Algorithm.cpp.

                                          {
  return GaudiPython::call_python_method ( m_self , "endRun" ) ; }
StatusCode GaudiPython::PyAlgorithm::execute ( void   )

Definition at line 95 of file Algorithm.cpp.

{ return GaudiPython::call_python_method ( m_self , "execute" ) ; }
StatusCode GaudiPython::PyAlgorithm::finalize ( void   ) [virtual]

the default (empty) implementation of IStateful::finalize() method

Reimplemented from Algorithm.

Definition at line 101 of file Algorithm.cpp.

{ return GaudiPython::call_python_method ( m_self , "finalize" ) ; }
StatusCode GaudiPython::PyAlgorithm::initialize ( void   ) [virtual]

the default (empty) implementation of IStateful::initialize() method

Reimplemented from Algorithm.

Definition at line 89 of file Algorithm.cpp.

{ return GaudiPython::call_python_method ( m_self , "initialize" ) ; }
IAlgorithm* GaudiPython::PyAlgorithm::myself (  ) [inline]

Definition at line 53 of file Algorithm.h.

{ return this; }
StatusCode GaudiPython::PyAlgorithm::start (  ) [virtual]

the default (empty) implementation of IStateful::start() method

Reimplemented from Algorithm.

Definition at line 92 of file Algorithm.cpp.

{ return GaudiPython::call_python_method ( m_self , "start" ) ; }
StatusCode GaudiPython::PyAlgorithm::stop (  ) [virtual]

the default (empty) implementation of IStateful::stop() method

Reimplemented from Algorithm.

Definition at line 98 of file Algorithm.cpp.

{ return GaudiPython::call_python_method ( m_self , "stop" ) ; }

Member Data Documentation

Definition at line 55 of file Algorithm.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Fri Sep 2 2011 16:26:00 for Gaudi Framework, version v22r4 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004