| # Gaudi Framework, version v21r10p1 |

Home |  | Generated: 29 Jul 2010

# GaudiPython::GaudiAlgs Namespace Reference

## Classes
class | GaudiAlgo
| the base class for all algorithm Python-image of C++ clkass GaudiAlgorithm More...
class | HistoAlgo
| The base class for easy histogramming. More...
class | TupleAlgo
| The base class for easy manupulations with N-Tuples. More...
class | objectmethod
## Functions
def | _tool_
| Useful method to locate the tool a certain.
def | _service_
| Useful method to locate a service:.
def | _init_
| The constructor from unique algorithm instance name,.
def | _initialize_
| The default initialization (initialization of base C++ class + data.
def | _initialize_histo_
| The default initialization (initialization of base C++ class + data members).
def | _initialize_tuple_
| The default initialization (initialization of base C++ class + data members).
def | _evtSvc
| Trivial helper function to access Event Data and Event Data Service.
def | _detSvc
| Trivial helper function to access Detector Data and Detector Data Service.
def | _histoSvc
| Trivial helper function to access Histogram Data and Histogram Data Service.
def | _get
| Trivial function to access the data in TES.
def | _getDet
| Trivial function to access the data in TDS.
def | _ntupleSvc
| Trivial helper function to access NTuple Service.
def | _evtcolSvc
| Trivial helper function to access Event Collection Service.
def | _finalize_
| The default finalization (finalization of base C++ class).
def | _success_
| Dummy method returning success.
def | _hasProperty_
| check the existence of the property with the given name
def | _getProperty_
| get the value of the given property
def | _setProperty_
| set the value for the given property
def | _get_attr_
| get the attribute or property
def | _set_attr_
| set the attribute or property
def | _start_
def | _execute_
def | _stop_
def | _plot1D_
def | _plot2D_
def | _plot3D_
def | _profile1D_
def | _profile2D_
def | _decorate_plots_
def | _nTuple_
def | _evtCol_
def | _decorate_tuples_
def | _t_nTuple_
def | _t_ntuple_
def | _t_valid_
def | _t_write_
def | _t_column_
def | _t_array_
def | _t_matrix_
def | _t_farray_
def | _t_fmatrix_
def | _decorate_algs_
def | mapvct
def | _get_all_tools_
def | _Tools_a_
def | _Tools_t_
def | _get_all_counters_
| get all counters
def | _Counters_a_
| get all counters
def | _Counters_t_
def | _get_counter_
def | _Counter_a_
def | _Counter_t_
def | _get_all_histos_
def | _Histos_a_
def | _Histos_t_
def | _help_
## Variables
string | __author__ = 'Vanya BELYAEV Ivan.Belyaev@lapp.in2p3.fr'
tuple | __all__
| iAlgorithm = GaudiPython.Bindings.iAlgorithm
| iAlgTool = GaudiPython.Bindings.iAlgTool
| std = cpp.std
tuple | Vector = std.vector('double')
| "typedef" for GaudiPython::Vector
tuple | Matrix = std.vector('std::vector<double>')
| "typedef" for GaudiPython::Matrix
| HID = cpp.GaudiAlg.ID
| histogram and N-Tuple universal identifier
| HistoID = HID
| TID = HID
| TupleID = TID
| AlgDecorator = cpp.GaudiPython.AlgDecorator
| get the decorator:
| HistoDecorator = cpp.GaudiPython.HistoDecorator
| TupleAlgDecorator = cpp.GaudiPython.TupleAlgDecorator
| TupleDecorator = cpp.GaudiPython.TupleDecorator
tuple | _GaudiAlgorithm = cpp.GaudiPython.PyAlg( 'GaudiAlgorithm' )
tuple | _GaudiHistoAlg = cpp.GaudiPython.PyAlg( 'GaudiHistoAlg' )
tuple | _GaudiTupleAlg = cpp.GaudiPython.PyAlg( 'GaudiTupleAlg' )
| Tuple = cpp.Tuples.Tuple
| _Dec = TupleDecorator
dictionary | _alg_map_
| _evtSvc_
| _detSvc_
| _histoSvc_
| _ntupleSvc_
| _evtcolSvc_

## Function Documentation

def GaudiPython::GaudiAlgs::_Counter_a_ | ( |  | self,
|  |  | name |
| ) |  |  | `[private]`

    Retrieve the counter managed GaudiCommon<TYPE> base by name:

    >>> alg  = ...                     ## get the algorithm
    >>> cnt  = alg.Counter('#accept')  ## get the counter
    >>> print cnt

Definition at line 1237 of file GaudiAlgs.py.

    01237                                 :
    01238     """
    01239     Retrieve the counter managed GaudiCommon<TYPE> base by name:
    01240
    01241     >>> alg  = ...                     ## get the algorithm
    01242     >>> cnt  = alg.Counter('#accept')  ## get the counter
    01243     >>> print cnt
    01244
    01245     """
    01246     _cmp  = getattr ( self , '_ialg' )
    01247     if not _cmp : self.retrieveInterface()
    01248     _cmp  = getattr ( self , '_ialg' )
    01249     return _get_counter_ ( _cmp , '_counter_a_' , name )
    01250 # ==============================================================================
    def _Counter_t_ ( self , name ) :

def GaudiPython::GaudiAlgs::_Counter_t_ | ( |  | self,
|  |  | name |
| ) |  |  | `[private]`

    Retrieve the counter managed GaudiCommon<TYPE> base by name:

    >>> tool = ...                      ## get the tool
    >>> cnt  = tool.Counter('#accept')  ## get the counter
    >>> print cnt

Definition at line 1251 of file GaudiAlgs.py.

    01251                                 :
    01252     """
    01253     Retrieve the counter managed GaudiCommon<TYPE> base by name:
    01254
    01255     >>> tool = ...                      ## get the tool
    01256     >>> cnt  = tool.Counter('#accept')  ## get the counter
    01257     >>> print cnt
    01258
    01259     """
    01260     _cmp  = getattr ( self , '_itool' )
    01261     if not _cmp : self.retrieveInterface()
    01262     _cmp  = getattr ( self , '_itool' )
    01263     return _get_counter_ ( _cmp , '_counter_t_' , name )
    01264
    01265 # =============================================================================
    01266 # get all histos
    01267 # =============================================================================
    01268 cpp.GaudiAlg.ID .__repr__ = cpp.GaudiAlg.ID.idAsString
    01269 cpp.GaudiAlg.ID . __str__ = cpp.GaudiAlg.ID.idAsString
    01270 cpp.StatEntity  .__repr__ = cpp.StatEntity.toString
    01271 cpp.StatEntity  . __str__ = cpp.StatEntity.toString
    01272 # =============================================================================
    def _get_all_histos_  ( component , method , name ) :

def GaudiPython::GaudiAlgs::_Counters_a_ | ( |  | self,
|  |  | name = `None` |
| ) |  |  | `[private]`

get all counters

    Retrieve the counters, managed GaudiCommon<TYPE> base:

    >>> alg  = ...             ## get the algorithm
    >>> cnts = alg.Counters()  ## get the counters
    >>> for key in cnts :
    ...        print key, cnts[key]

    Retrieve the counter, managed GaudiCommon<TYPE> base by name:

    >>> alg = ...                        ## get the algorithm
    >>> cnt = alg.Counters('MyCounter')  ## get the counter
    >>> print cnt

Definition at line 1184 of file GaudiAlgs.py.

    01184                                         :
    01185     """
    01186     Retrieve the counters, managed GaudiCommon<TYPE> base:
    01187
    01188     >>> alg  = ...             ## get the algorithm
    01189     >>> cnts = alg.Counters()  ## get the counters
    01190     >>> for key in cnts :
    01191     ...        print key, cnts[key]
    01192
    01193
    01194     Retrieve the counter, managed GaudiCommon<TYPE> base by name:
    01195
    01196     >>> alg = ...                        ## get the algorithm
    01197     >>> cnt = alg.Counters('MyCounter')  ## get the counter
    01198     >>> print cnt
    01199
    01200     """
    01201     _cmp  = getattr ( self , '_ialg' )
    01202     if not _cmp : self.retrieveInterface()
    01203     _cmp  = getattr ( self , '_ialg' )
    01204     return _get_all_counters_ ( _cmp , '_counters_a_' , name )
    01205 # =============================================================================
    def _Counters_t_ ( self , name = None ) :

def GaudiPython::GaudiAlgs::_Counters_t_ | ( |  | self,
|  |  | name = `None` |
| ) |  |  | `[private]`

    Retrieve the counters, managed GaudiCommon<TYPE> base:

    >>> tool = ...              ## get the tool
    >>> cnts = tool.Counters()  ## get the counters
    >>> for key in cnts :
    ...        print key, cnts[key]

    Retrieve the counter, managed GaudiCommon<TYPE> base by name:

    >>> tool = ...                         ## get the tool
    >>> cnt  = tool.Counters('MyCounter')  ## get the counter
    >>> print cnt

Definition at line 1206 of file GaudiAlgs.py.

    01206                                         :
    01207     """
    01208     Retrieve the counters, managed GaudiCommon<TYPE> base:
    01209
    01210     >>> tool = ...              ## get the tool
    01211     >>> cnts = tool.Counters()  ## get the counters
    01212     >>> for key in cnts :
    01213     ...        print key, cnts[key]
    01214
    01215
    01216     Retrieve the counter, managed GaudiCommon<TYPE> base by name:
    01217
    01218     >>> tool = ...                         ## get the tool
    01219     >>> cnt  = tool.Counters('MyCounter')  ## get the counter
    01220     >>> print cnt
    01221
    01222     """
    01223     _cmp  = getattr ( self , '_itool' )
    01224     if not _cmp : self.retrieveInterface()
    01225     _cmp  = getattr ( self , '_itool' )
    01226     return _get_all_counters_ ( _cmp , '_counters_t_' , name )
    01227 # =============================================================================
    01228 # get the counter
    01229 # =============================================================================
    def _get_counter_ ( self , method , name ) :

def GaudiPython::GaudiAlgs::_decorate_algs_ | ( |  | klasses | ) | `[private]`

Definition at line 1079 of file GaudiAlgs.py.

    01079                                 :
    01080     t = type( klasses )
    01081     if not issubclass ( t , list  ) and  \
    01082        not issubclass ( t , tuple ) : klasses = [ klasses ]
    01083     for _alg in klasses :
    01084         for key in _alg_map_ : setattr( _alg , key , _alg_map_[key] )
    01085
    01086 # =
    _decorate_algs_ ( GaudiAlgo )

def GaudiPython::GaudiAlgs::_decorate_plots_ | ( |  | klasses | ) | `[private]`

Definition at line 972 of file GaudiAlgs.py.

    00972                                  :
    00973     t = type( klasses )
    00974     if not issubclass ( t , list  ) and  \
    00975        not issubclass ( t , tuple ) : klasses = [ klasses ]
    00976     for klass in klasses :
    00977         klass .plot       = _plot1D_
    00978         klass .plot1D     = _plot1D_
    00979         klass .plot2D     = _plot2D_
    00980         klass .plot3D     = _plot3D_
    00981         klass .profile1D  = _profile1D_
    00982         klass .profile2D  = _profile2D_
    00983
    _decorate_plots_ ( HistoAlgo )

def GaudiPython::GaudiAlgs::_decorate_tuples_ | ( |  | klasses | ) | `[private]`

Definition at line 1004 of file GaudiAlgs.py.

    01004                                   :
    01005     t = type( klasses )
    01006     if not issubclass ( t , list  ) and  \
    01007        not issubclass ( t , tuple ) : klasses = [ klasses ]
    01008     for klass in klasses :
    01009         klass . nTuple    = _nTuple_
    01010         klass . evtCol    = _evtCol_
    01011         klass . ntupleSvc = _ntupleSvc
    01012         klass .  tupleSvc = _ntupleSvc
    01013         klass .   ntupSvc = _ntupleSvc
    01014         klass .    tupSvc = _ntupleSvc
    01015         klass . evtColSvc = _evtcolSvc
    01016         klass . evtcolSvc = _evtcolSvc
    01017
    01018 # ==========================================================
    _decorate_tuples_ ( TupleAlgo )

def GaudiPython::GaudiAlgs::_detSvc | ( |  | self | ) | `[private]`

Trivial helper function to access Detector Data and Detector Data Service.

Usage:

        # get detector data service
        svc = self.detSvc()

        # get the data
        lhcb = self.detSvc('/dd/Structure/LHCb')

Author:
  Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
  2006-11-26

      Trivial helper function to access Detector Data and Event Data Service

      Usage:
      # get detector data service
      svc = self.detSvc()

      # get the data
      lhcb = self.detSvc('/dd/Structure/LHCb')

Definition at line 324 of file GaudiAlgs.py.

    00324                        :
    00325     """
    00326     Trivial helper function to access Detector Data and Event Data Service
    00327
    00328     Usage:
    00329     # get detector data service
    00330     svc = self.detSvc()
    00331
    00332     # get the data
    00333     lhcb = self.detSvc('/dd/Structure/LHCb')
    00334     """
    00335     if not location :
    00336         return self._detSvc_
    00337     return self._detSvc_[location]
    00338
    00339 # =============================================================================
    ## Trivial helper function to access Histogram  Data and Histogram  Data Service

def GaudiPython::GaudiAlgs::_evtCol_ | ( |  | s,
|  |  | a |
| ) |  |  | `[private]`

    Retrieve (book-on-demand) N-Tuple object for Event Tag Collections

Definition at line 995 of file GaudiAlgs.py.

    00995                          :
    00996     """
    00997     Retrieve (book-on-demand) N-Tuple object for Event Tag Collections
    00998     """
    00999     return TupleAlgDecorator.evtCol ( s , *a )
    01000
    01001 _nTuple_.__doc__  += TupleAlgDecorator.nTuple.__doc__
    01002 _evtCol_.__doc__  += TupleAlgDecorator.evtCol.__doc__
    01003
    def _decorate_tuples_ ( klasses ) :

def GaudiPython::GaudiAlgs::_evtcolSvc | ( |  | self | ) | `[private]`

Trivial helper function to access Event Collection Service.

    Trivial function to access Event Collection Service

Definition at line 397 of file GaudiAlgs.py.

    00397                         :
    00398     """
    00399     Trivial function to access Event Collection Service
    00400     """
    00401     return self._evtcolSvc_
    00402
    00403
    00404 # =============================================================================
    ## The default finalization (finalization of base C++ class)

def GaudiPython::GaudiAlgs::_evtSvc | ( |  | self,
|  |  | location = `None` |
| ) |  |  | `[private]`

Trivial helper function to access Event Data and Event Data Service.

Usage:

        # get event data service
        svc = self.evtSvc()

        # get the data
        hits = self.evtSvc('MC/Calo/Hits')

Author:
  Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
  2006-11-26

      Trivial helper function to access Event Data and Event Data Service

      Usage:

      # get event data service
      svc = self.evtSvc()

      # get the data
      hits = self.evtSvc('MC/Calo/Hits')

Definition at line 291 of file GaudiAlgs.py.

    00291                                          :
    00292     """
    00293     Trivial helper function to access Event Data and Event Data Service
    00294
    00295     Usage:
    00296
    00297     # get event data service
    00298     svc = self.evtSvc()
    00299
    00300     # get the data
    00301     hits = self.evtSvc('MC/Calo/Hits')
    00302     """
    00303     if not location :
    00304         return self._evtSvc_
    00305     return self._evtSvc_[location]
    00306
    00307 # =============================================================================
    ## Trivial helper function to access Detector Data and Detector  Data Service

def GaudiPython::GaudiAlgs::_execute_ | ( |  | self | ) | `[private]`

    The fictive 'execute' method, which MUST be overwitten by user

Definition at line 841 of file GaudiAlgs.py.

    00841                        :
    00842     """
    00843     The fictive 'execute' method, which MUST be overwitten by user
    00844     """
    00845     raise RuntimeError, 'Execute method is not implemented for %s' % self.name()
    00846
    00847 GaudiAlgo.execute = _execute_
    00848 HistoAlgo.execute = _execute_
    00849 TupleAlgo.execute = _execute_
    00850
    def _stop_ ( self ) :

def GaudiPython::GaudiAlgs::_finalize_ | ( |  | self | ) | `[private]`

The default finalization (finalization of base C++ class).

    The default finalization : finalize the base C++ class

Definition at line 406 of file GaudiAlgs.py.

    00406                           :
    00407     """
    00408     The default finalization : finalize the base C++ class
    00409     """
    00410     status = self._Base.finalize_  ( self )
    00411     return status
    00412 # =============================================================================
    ## Dummy method returning success

def GaudiPython::GaudiAlgs::_get | ( |  | self,
|  |  | location |
| ) |  |  | `[private]`

Trivial function to access the data in TES.

    Trivial function to access the data in TES

Definition at line 373 of file GaudiAlgs.py.

    00373                                   :
    00374     """
    00375     Trivial function to access the data in TES
    00376     """
    00377     return self._evtSvc_[location]
    00378
    00379 # =============================================================================
    ## Trivial function to access the data in TDS

def GaudiPython::GaudiAlgs::_get_all_counters_ | ( |  | self,
|  |  | method,
|  |  | name = `None` |
| ) |  |  | `[private]`

get all counters

    get all counters

Definition at line 1165 of file GaudiAlgs.py.

    01165                                                        :
    01166     """
    01167     get all counters
    01168     """
    01169     _cnts = std.vector('const StatEntity*')()
    01170     _nams = std.vector('std::string')      ()
    01171     _func = getattr ( AlgDecorator , method )
    01172     _num  = _func   ( self , _nams , _cnts )
    01173     if _nams.size() != _num or _cnts.size() != _num  :
    01174         raise RuntimeError, 'Unable to extract Counters'
    01175     _res = {}
    01176     for _i in range(0,_num) :
    01177         _nam = _nams[_i]
    01178         _cnt = _cnts[_i]
    01179         _res [ _nam ] = _cnt
    01180     if not name : return _res
    01181     return _res.get( name , None )
    01182 # =============================================================================
    ## get all counters

def GaudiPython::GaudiAlgs::_get_all_histos_ | ( |  | component,
|  |  | method,
|  |  | name |
| ) |  |  | `[private]`

    Get All histogram form the component

Definition at line 1273 of file GaudiAlgs.py.

    01273                                                     :
    01274     """
    01275     Get All histogram form the component
    01276     """
    01277     _res = {}
    01278     for _his in (  std.vector('AIDA::IProfile2D*'   ) ,
    01279                    std.vector('AIDA::IProfile1D*'   ) ,
    01280                    std.vector('AIDA::IHistogram3D*' ) ,
    01281                    std.vector('AIDA::IHistogram2D*' ) ,
    01282                    std.vector('AIDA::IHistogram1D*' ) ) :
    01283         _his = _his()
    01284         _ids = std.vector('GaudiAlg::ID')     ()
    01285         _fun = getattr ( HistoDecorator , method )
    01286         _num = _fun ( component , _ids , _his )
    01287         if _ids.size() != _num or _his.size() != _num  :
    01288             raise RuntimeError, 'Unable to extract Histos!'
    01289         for _i in range(0,_num) :
    01290             _id = _ids[ _i ]
    01291             if   _id.numeric() : _id = _id.numericID  ()
    01292             elif _id.literal() : _id = _id.literalID  ()
    01293             else               : _id = _is.idAsString ()
    01294             _res [ _id ] = _his[ _i ]
    01295
    01296     if not name : return _res                          ## return the dictionary
    01297
    01298     id = cpp.GaudiAlg.ID ( name )
    01299     for i in ( name            ,
    01300                id.literalID () ,
    01301                id.numericID () ,
    01302                id.idAsString() , id  ) :
    01303         h = _res.get( i , None  )
    01304         if not not h : return h   ## return the histogram
    01305
    01306     return None
    01307 # =============================================================================
    def _Histos_a_ ( self , name = None ) :

def GaudiPython::GaudiAlgs::_get_all_tools_ | ( |  | self,
|  |  | method |
| ) |  |  | `[private]`

    Get all tools

Definition at line 1115 of file GaudiAlgs.py.

    01115                                       :
    01116     """
    01117     Get all tools
    01118     """
    01119     _tools = std.vector('IAlgTool*')()
    01120     _func  = getattr ( AlgDecorator , method )
    01121     _num   = _func ( self , _tools )
    01122     if _tools.size() != _num :
    01123         raise RuntimeError, 'Unable to extract Tools'
    01124     _res = []
    01125     for _tool in _tools : _res += [ iAlgTool ( _tool.name() , _tool ) ]
    01126     return _res
    01127 # =============================================================================
    def _Tools_a_ ( self ) :

def GaudiPython::GaudiAlgs::_get_attr_ | ( |  | self,
|  |  | pname |
| ) |  |  | `[private]`

get the attribute or property

    Get the attribute (or property)
    - if the attribute name corresponds to the property name, property value is returned

Definition at line 447 of file GaudiAlgs.py.

    00447                                 :
    00448     """
    00449     Get the attribute (or property)
    00450     - if the attribute name corresponds to the property name, property value is returned
    00451     """
    00452     if self.hasProperty( pname ) :
    00453         return iAlgorithm.__getattr__ ( self , pname )
    00454     raise AttributeError, 'attribute/property %s does not exist' % pname
    00455
    00456 # =============================================================================
    ## set the attribute or property

def GaudiPython::GaudiAlgs::_get_counter_ | ( |  | self,
|  |  | method,
|  |  | name |
| ) |  |  | `[private]`

    get the counter

Definition at line 1230 of file GaudiAlgs.py.

    01230                                            :
    01231     """
    01232     get the counter
    01233     """
    01234     _func = getattr ( AlgDecorator , method )
    01235     return _func ( self , name )
    01236 # ==============================================================================
    def _Counter_a_ ( self , name ) :

def GaudiPython::GaudiAlgs::_getDet | ( |  | self,
|  |  | location |
| ) |  |  | `[private]`

Trivial function to access the data in TDS.

    Trivial function to access the data in TDS

Definition at line 381 of file GaudiAlgs.py.

    00381                                   :
    00382     """
    00383     Trivial function to access the data in TDS
    00384     """
    00385     return self._detSvc_[location]
    00386
    00387 # =============================================================================
    ## Trivial helper function to access NTuple Service

def GaudiPython::GaudiAlgs::_getProperty_ | ( |  | self,
|  |  | pname |
| ) |  |  | `[private]`

get the value of the given property

    Get the property by name

Definition at line 427 of file GaudiAlgs.py.

    00427                                    :
    00428     """
    00429     Get the property by name
    00430     """
    00431     if not self.hasProperty( pname ) :
    00432         raise AttributeError, 'property %s does not exist' % pname
    00433     return iAlgorithm.__getattr__( self , pname )
    00434
    00435 # =============================================================================
    ## set the value for the given property

def GaudiPython::GaudiAlgs::_hasProperty_ | ( |  | self,
|  |  | pname |
| ) |  |  | `[private]`

check the existence of the property with the given name

    The trivial function which checks the existence of the property with given name

Definition at line 419 of file GaudiAlgs.py.

    00419                                    :
    00420     """
    00421     The trivial function which checks the existence of the property with given name
    00422     """
    00423     return cpp.Gaudi.Utils.hasProperty ( self , pname )
    00424
    00425 # =============================================================================
    ## get the value of the given property

def GaudiPython::GaudiAlgs::_help_ | ( |  | ) | `[private]`

Definition at line 1377 of file GaudiAlgs.py.

    01377              :
    01378     print __doc__ , __author__
    01379     print '\t\t\tDoc-string for class GaudiAlgo \n' , GaudiAlgo.__doc__
    01380     print '\t\t\tDoc-string for class HistoAlgo \n' , HistoAlgo.__doc__
    01381     print '\t\t\tDoc-string for class TupleAlgo \n' , TupleAlgo.__doc__
    01382
    01383 # =============================================================================
    01384 # pseudo-test suite
    01385 # =============================================================================
    if __name__ == '__main__' :

def GaudiPython::GaudiAlgs::_Histos_a_ | ( |  | self,
|  |  | name = `None` |
| ) |  |  | `[private]`

    Retrieve all histograms & profiles, booked through GauydiHistos<TYPE> base:

    >>> alg = ...              ## get the algorithm
    >>> histos = alg.Histos()  ## get all histograms & profiles
    >>> for key in histos :
    ...        print key, histos[key]

    Retrive the histogram with the certain ID :

    >>> alg = ...                           ## get the algorithm
    >>> histo = alg.Histos('some histo ID') ## get the histo by ID
    >>> print histo

Definition at line 1308 of file GaudiAlgs.py.

    01308                                       :
    01309     """
    01310     Retrieve all histograms & profiles, booked through GauydiHistos<TYPE> base:
    01311
    01312     >>> alg = ...              ## get the algorithm
    01313     >>> histos = alg.Histos()  ## get all histograms & profiles
    01314     >>> for key in histos :
    01315     ...        print key, histos[key]
    01316
    01317     Retrive the histogram with the certain ID :
    01318
    01319     >>> alg = ...                           ## get the algorithm
    01320     >>> histo = alg.Histos('some histo ID') ## get the histo by ID
    01321     >>> print histo
    01322
    01323     """
    01324     _cmp  = getattr ( self , '_ialg' )
    01325     if not _cmp : self.retrieveInterface()
    01326     _cmp  = getattr ( self , '_ialg' )
    01327     return _get_all_histos_ ( _cmp , '_histos_a_' , name )
    01328 # =============================================================================
    def _Histos_t_ ( self , name = None ) :

def GaudiPython::GaudiAlgs::_Histos_t_ | ( |  | self,
|  |  | name = `None` |
| ) |  |  | `[private]`

    Retrieve all histograms & profiles, booked through GauydiHistos<TYPE> base:

    >>> tool = ...              ## get the tool
    >>> histos = tool.Histos()  ## get all histograms & profiles
    >>> for key in histos :
    ...        print key, histos[key]

    Retrive the historgam with certain ID :

    >>> tool = ...                           ## get the tool
    >>> histo = tool.Histos('some histo ID') ## get the histo by ID
    >>> print histo

Definition at line 1329 of file GaudiAlgs.py.

    01329                                       :
    01330     """
    01331     Retrieve all histograms & profiles, booked through GauydiHistos<TYPE> base:
    01332
    01333     >>> tool = ...              ## get the tool
    01334     >>> histos = tool.Histos()  ## get all histograms & profiles
    01335     >>> for key in histos :
    01336     ...        print key, histos[key]
    01337
    01338     Retrive the historgam with certain ID :
    01339
    01340     >>> tool = ...                           ## get the tool
    01341     >>> histo = tool.Histos('some histo ID') ## get the histo by ID
    01342     >>> print histo
    01343
    01344     """
    01345     _cmp  = getattr ( self , '_itool' )
    01346     if not _cmp : self.retrieveInterface()
    01347     _cmp  = getattr ( self , '_itool' )
    01348     return _get_all_histos_ ( _cmp , '_histos_t_' , name )
    01349 # =============================================================================
    01350
    01351
    _Tools_a_    . __doc__ += AlgDecorator   . _tools_a_    . __doc__

def GaudiPython::GaudiAlgs::_histoSvc | ( |  | self,
|  |  | address = `None` |
| ) |  |  | `[private]`

Trivial helper function to access Histogram Data and Histogram Data Service.

Usage:

        # get histogram data service
        svc = self.histoSvc()

        # get the data
        histo = self.histoSvc('/stat/Calo/1')

Author:
  Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
  2006-11-26

      Trivial helper function to access Histogram  Data and Histogram  Data Service

      Usage:

      # get histogram data service
      svc = self.histoSvc()

      # get the data
      histo = self.histoSvc('/stat/Calo/1')

Definition at line 356 of file GaudiAlgs.py.

    00356                                          :
    00357     """
    00358     Trivial helper function to access Histogram  Data and Histogram  Data Service
    00359
    00360     Usage:
    00361
    00362     # get histogram data service
    00363     svc = self.histoSvc()
    00364
    00365     # get the data
    00366     histo = self.histoSvc('/stat/Calo/1')
    00367     """
    00368     if not address : return self._histoSvc_
    00369     return self._histoSvc_[ address ]
    00370
    00371 # =============================================================================
    ## Trivial function to access the data in TES

def GaudiPython::GaudiAlgs::_init_ | ( |  | self,
|  |  | name,
|  |  | args |
| ) |  |  | `[private]`

The constructor from unique algorithm instance name,.

Author:
  Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
  2006-11-26

      The constructor from unique algorithm instance name & parameters

Definition at line 190 of file GaudiAlgs.py.

    00190                                     :
    00191     """
    00192     The constructor from unique algorithm instance name & parameters
    00193     """
    00194     self._Base.__init__( self , self , name )
    00195     appMgr = AppMgr()
    00196     algMgr = appMgr._algmgr
    00197     status = algMgr.addAlgorithm( self )
    00198     if status.isFailure() :
    00199         raise RuntimeError, 'Unable to add Algorithm "' + name + '"'
    00200     iAlgorithm.__init__ ( self , name , self )
    00201     for key in args : setattr ( self , key , args[key] )
    00202     # take some care about the ownership of the algorithms
    00203     if not appMgr.__dict__.has_key ( 'GaudiPythonAlgos') :
    00204         appMgr.__dict__[ 'GaudiPythonAlgos'] = []
    00205     appMgr.__dict__[ 'GaudiPythonAlgos'].append( self )
    00206
    00207 # =============================================================================
    ## The default initialization (initialization of base C++ class + data

def GaudiPython::GaudiAlgs::_initialize_ | ( |  | self | ) | `[private]`

The default initialization (initialization of base C++ class + data.

Author:
  Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
  2006-11-26

      The default initialization (initialization of base C++ class + data)

Definition at line 212 of file GaudiAlgs.py.

    00212                           :
    00213     """
    00214     The default initialization (initialization of base C++ class + data)
    00215     """
    00216     status = self._Base.initialize_( self )
    00217     if status.isFailure() : return status
    00218
    00219     # set the basic services
    00220     _e = self._Base.evtSvc( self )
    00221     _s = InterfaceCast(cpp.IService)(_e)
    00222     self._evtSvc_ = iDataSvc ( _s.name() , _e )
    00223
    00224     _d = self._Base.detSvc( self )
    00225     _s = InterfaceCast(cpp.IService)(_d)
    00226     self._detSvc_ = iDataSvc ( _s.name() , _d )
    00227
    00228     return status
    00229
    00230 # =============================================================================
    ## The default initialization (initialization of base C++ class + data members)

def GaudiPython::GaudiAlgs::_initialize_histo_ | ( |  | self | ) | `[private]`

The default initialization (initialization of base C++ class + data members).

Author:
  Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
  2006-11-26

      The default initialization (initialization of base C++ class + data members)

Definition at line 235 of file GaudiAlgs.py.

    00235                                 :
    00236     """
    00237     The default initialization (initialization of base C++ class + data members)
    00238     """
    00239     status = _initialize_( self )
    00240     if status.isFailure() : return status
    00241
    00242     # set the basic services
    00243     _h = self._Base.histoSvc( self )
    00244     _s = InterfaceCast(cpp.IService)(_h)
    00245     self._histoSvc_ = iHistogramSvc ( _s.name() , _h )
    00246
    00247     return status
    00248
    00249 # =============================================================================
    ## The default initialization (initialization of base C++ class + data members)

def GaudiPython::GaudiAlgs::_initialize_tuple_ | ( |  | self | ) | `[private]`

The default initialization (initialization of base C++ class + data members).

Author:
  Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
  2006-11-26

      The default initialization (initialization of base C++ class + data members)

Definition at line 254 of file GaudiAlgs.py.

    00254                                 :
    00255     """
    00256     The default initialization (initialization of base C++ class + data members)
    00257     """
    00258     status = _initialize_histo_( self )
    00259     if status.isFailure() : return status
    00260
    00261     # set the basic services
    00262     if self.produceNTuples() :
    00263         _n = self._Base.ntupleSvc( self )
    00264         _s = InterfaceCast(cpp.IService)(_n)
    00265         self._ntupleSvc_ = iNTupleSvc ( _s.name() , _n )
    00266
    00267     if self.produceEvtCols() :
    00268         _n = self._Base.evtColSvc( self )
    00269         _s = InterfaceCast(cpp.IService)(_n)
    00270         self._evtcolSvc_ = iNTupleSvc ( _s.name() , _n )
    00271
    00272     return status
    00273
    00274 # =============================================================================
    ## Trivial helper function to access Event Data and Event Data Service

def GaudiPython::GaudiAlgs::_nTuple_ | ( |  | s,
|  |  | a |
| ) |  |  | `[private]`

    Retrieve (book-on-demand) N-Tuple object

Definition at line 989 of file GaudiAlgs.py.

    00989                          :
    00990     """
    00991     Retrieve (book-on-demand) N-Tuple object
    00992     """
    00993     return TupleAlgDecorator.nTuple ( s , *a )
    00994 # =============================================================================
    def _evtCol_ ( s , *a )  :

def GaudiPython::GaudiAlgs::_ntupleSvc | ( |  | self | ) | `[private]`

Trivial helper function to access NTuple Service.

    Trivial function to access N-Tuple Service

Definition at line 389 of file GaudiAlgs.py.

    00389                         :
    00390     """
    00391     Trivial function to access N-Tuple Service
    00392     """
    00393     return self._ntupleSvc_
    00394
    00395 # =============================================================================
    ## Trivial helper function to access Event Collection Service

def GaudiPython::GaudiAlgs::_plot1D_ | ( |  | s,
|  |  | a |
| ) |  |  | `[private]`

    The basic method to fill (book-on-demand) 1D-histogram

    The histogram will be created/booked dautomatically according to the
    specifications:

       - literal or numerical ID (optional)
       - title
       - low edge
       - high edge
       - number of bins (default is 100)

    The reference to the histogram is returned and could be used for later manipulations

Definition at line 863 of file GaudiAlgs.py.

    00863                           :
    00864     """
    00865     The basic method to fill (book-on-demand) 1D-histogram
    00866
    00867     The histogram will be created/booked dautomatically according to the
    00868     specifications:
    00869
    00870        - literal or numerical ID (optional)
    00871        - title
    00872        - low edge
    00873        - high edge
    00874        - number of bins (default is 100)
    00875
    00876     The reference to the histogram is returned and could be used for later manipulations
    00877
    00878     """
    00879     return HistoDecorator.plot1D    (s,*a)
    00880 # =============================================================================
    def _plot2D_    ( s, *a ) :

def GaudiPython::GaudiAlgs::_plot2D_ | ( |  | s,
|  |  | a |
| ) |  |  | `[private]`

    The basic method to fill (book-on-demand) 2D-histogram

    The histogram will be created/booked dautomatically according to the
    specifications:

       - literal or numerical ID (optional)
       - title
       - low X-edge
       - high X-edge
       - low Y-edge
       - high Y-edge
       - number of X-bins (default is 50)
       - number of Y-bins (default is 50)

    The reference to the histogram is returned and could be used for later manipulations

Definition at line 881 of file GaudiAlgs.py.

    00881                           :
    00882     """
    00883     The basic method to fill (book-on-demand) 2D-histogram
    00884
    00885     The histogram will be created/booked dautomatically according to the
    00886     specifications:
    00887
    00888        - literal or numerical ID (optional)
    00889        - title
    00890        - low X-edge
    00891        - high X-edge
    00892        - low Y-edge
    00893        - high Y-edge
    00894        - number of X-bins (default is 50)
    00895        - number of Y-bins (default is 50)
    00896
    00897     The reference to the histogram is returned and could be used for later manipulations
    00898
    00899     """
    00900     return HistoDecorator.plot2D    (s,*a)
    00901 # =============================================================================
    def _plot3D_    ( s, *a ) :

def GaudiPython::GaudiAlgs::_plot3D_ | ( |  | s,
|  |  | a |
| ) |  |  | `[private]`

    The basic method to fill (book-on-demand) 3D-histogram

    The histogram will be created/booked dautomatically according to the
    specifications:

       - literal or numerical ID (optional)
       - title
       - low X-edge
       - high X-edge
       - low Y-edge
       - high Y-edge
       - low Z-edge
       - high Z-edge
       - number of X-bins (default is 10)
       - number of Y-bins (default is 10)
       - number of Y-bins (default is 10)

    The reference to the histogram is returned and could be used for later manipulations

Definition at line 902 of file GaudiAlgs.py.

    00902                           :
    00903     """
    00904     The basic method to fill (book-on-demand) 3D-histogram
    00905
    00906     The histogram will be created/booked dautomatically according to the
    00907     specifications:
    00908
    00909        - literal or numerical ID (optional)
    00910        - title
    00911        - low X-edge
    00912        - high X-edge
    00913        - low Y-edge
    00914        - high Y-edge
    00915        - low Z-edge
    00916        - high Z-edge
    00917        - number of X-bins (default is 10)
    00918        - number of Y-bins (default is 10)
    00919        - number of Y-bins (default is 10)
    00920
    00921     The reference to the histogram is returned and could be used for later manipulations
    00922
    00923     """
    00924     return HistoDecorator.plot3D    (s,*a)
    00925 # =============================================================================
    def _profile1D_ ( s, *a ) :

def GaudiPython::GaudiAlgs::_profile1D_ | ( |  | s,
|  |  | a |
| ) |  |  | `[private]`

    The basic method to fill (book-on-demand) 1D profile histogram

    The profile histogram will be created/booked dautomatically
    according to the specifications:

       - literal or numerical ID (optional)
       - title
       - low X-edge
       - high X-edge
       - number of X-bins (default is 100)

    The reference to the histogram is returned and could be used for later manipulations

Definition at line 926 of file GaudiAlgs.py.

    00926                           :
    00927     """
    00928     The basic method to fill (book-on-demand) 1D profile histogram
    00929
    00930     The profile histogram will be created/booked dautomatically
    00931     according to the specifications:
    00932
    00933        - literal or numerical ID (optional)
    00934        - title
    00935        - low X-edge
    00936        - high X-edge
    00937        - number of X-bins (default is 100)
    00938
    00939     The reference to the histogram is returned and could be used for later manipulations
    00940
    00941     """
    00942     return HistoDecorator.profile1D (s,*a)
    00943 # =============================================================================
    def _profile2D_ ( s, *a ) :

def GaudiPython::GaudiAlgs::_profile2D_ | ( |  | s,
|  |  | a |
| ) |  |  | `[private]`

    The basic method to fill (book-on-demand) 2D profile histiogram

    The profile histogram will be created/booked automatically
    according to the specifications:

       - literal or numerical ID (optional)
       - title
       - low X-edge
       - high X-edge
       - low Y-edge
       - high Y-edge
       - number of X-bins (default is 50)
       - number of Y-bins (default is 50)

    The reference to the histogram is returned and could be used for later manipulations

Definition at line 944 of file GaudiAlgs.py.

    00944                           :
    00945     """
    00946     The basic method to fill (book-on-demand) 2D profile histiogram
    00947
    00948     The profile histogram will be created/booked automatically
    00949     according to the specifications:
    00950
    00951        - literal or numerical ID (optional)
    00952        - title
    00953        - low X-edge
    00954        - high X-edge
    00955        - low Y-edge
    00956        - high Y-edge
    00957        - number of X-bins (default is 50)
    00958        - number of Y-bins (default is 50)
    00959
    00960     The reference to the histogram is returned and could be used for later manipulations
    00961
    00962     """
    00963     return HistoDecorator.profile2D (s,*a)
    00964 # =============================================================================
    00965
    _plot1D_    .__doc__ += HistoDecorator.plot1D    .__doc__

def GaudiPython::GaudiAlgs::_service_ | ( |  | self,
|  |  | interface,
|  |  | name,
|  |  | create = `True` |
| ) |  |  | `[private]`

Useful method to locate a service:.

Usage:

         ntsvc = self.svc( INTupleSvc , 'NTUpleSvc' )

Author:
  Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
  2006-11-26

      Useful method to locate a service:

      Usage:

      ntsvc = self.svc( INTupleSvc , 'NTUpleSvc' )

Definition at line 164 of file GaudiAlgs.py.

    00167                                   :
    00168     """
    00169     Useful method to locate a service:
    00170
    00171     Usage:
    00172
    00173     ntsvc = self.svc( INTupleSvc , 'NTUpleSvc' )
    00174
    00175     """
    00176     if not interface : interface = cpp.IInterface
    00177     _svc = AlgDecorator.svc_ ( self , name , create )
    00178     if not _svc : return None
    00179     _svc = InterfaceCast(interface)(_svc)
    00180     if not _svc :
    00181         self.Warning('Invalid cast to interface %s' % interface )
    00182         return None
    00183     return _svc
    00184
    00185 # =============================================================================
    ## The constructor from unique algorithm instance name,

def GaudiPython::GaudiAlgs::_set_attr_ | ( |  | self,
|  |  | pname,
|  |  | pvalue |
| ) |  |  | `[private]`

set the attribute or property

    Set the attribute (or property) :
    - if the attribute name corresponds to the property name, the property is updated

Definition at line 458 of file GaudiAlgs.py.

    00458                                          :
    00459     """
    00460     Set the attribute (or property) :
    00461     - if the attribute name corresponds to the property name, the property is updated
    00462     """
    00463     if not self.hasProperty( pname ) : self.__dict__[pname] = pvalue
    00464     else : iAlgorithm.__setattr__ ( self , pname , pvalue )
    00465
    00466
    _GaudiAlgorithm = cpp.GaudiPython.PyAlg( 'GaudiAlgorithm' )

def GaudiPython::GaudiAlgs::_setProperty_ | ( |  | self,
|  |  | pname,
|  |  | pvalue |
| ) |  |  | `[private]`

set the value for the given property

    Set the property from the value

Definition at line 437 of file GaudiAlgs.py.

    00437                                             :
    00438     """
    00439     Set the property from the value
    00440     """
    00441     if not self.hasProperty( pname ) :
    00442         raise AttributeError, 'property %s does not exist' % pname
    00443     return iAlgorithm.__setattr__ ( self , pname , pvalue )
    00444
    00445 # =============================================================================
    ## get the attribute or property

def GaudiPython::GaudiAlgs::_start_ | ( |  | self | ) | `[private]`

    The stub 'start' method needed by the internal implementation of PyAlg<>.

Definition at line 830 of file GaudiAlgs.py.

    00830                      :
    00831     """
    00832     The stub 'start' method needed by the internal implementation of PyAlg<>.
    00833     """
    00834     # return self._Base.start_(self)
    00835     return SUCCESS
    00836
    00837 GaudiAlgo.start = _start_
    00838 HistoAlgo.start = _start_
    00839 TupleAlgo.start = _start_
    00840
    def _execute_ ( self ) :

def GaudiPython::GaudiAlgs::_stop_ | ( |  | self | ) | `[private]`

    The stub 'stop' method needed by the internal implementation of PyAlg<>.

Definition at line 851 of file GaudiAlgs.py.

    00851                     :
    00852     """
    00853     The stub 'stop' method needed by the internal implementation of PyAlg<>.
    00854     """
    00855     # return self._Base.stop_(self)
    00856     return SUCCESS
    00857
    00858 GaudiAlgo.stop = _stop_
    00859 HistoAlgo.stop = _stop_
    00860 TupleAlgo.stop = _stop_
    00861
    00862 # =============================================================================
    def _plot1D_    ( s, *a ) :

def GaudiPython::GaudiAlgs::_success_ | ( |  | self | ) | `[private]`

Dummy method returning success.

Definition at line 414 of file GaudiAlgs.py.

    00414                        : return SUCCESS
    00415
    00416
    00417 # =============================================================================

def GaudiPython::GaudiAlgs::_t_array_ | ( |  | s,
|  |  | a |
| ) |  |  | `[private]`

Definition at line 1030 of file GaudiAlgs.py.

    01030 : return _Dec.array  (s,*a)

def GaudiPython::GaudiAlgs::_t_column_ | ( |  | s,
|  |  | a |
| ) |  |  | `[private]`

Definition at line 1029 of file GaudiAlgs.py.

    01029 : return _Dec.column (s,*a)

def GaudiPython::GaudiAlgs::_t_farray_ | ( |  | s,
|  |  | a |
| ) |  |  | `[private]`

Definition at line 1032 of file GaudiAlgs.py.

    01032 : return _Dec.farray (s,*a)

def GaudiPython::GaudiAlgs::_t_fmatrix_ | ( |  | s,
|  |  | a |
| ) |  |  | `[private]`

Definition at line 1033 of file GaudiAlgs.py.

    01033                        : return _Dec.fmatrix (s,*a)
    01034

def GaudiPython::GaudiAlgs::_t_matrix_ | ( |  | s,
|  |  | a |
| ) |  |  | `[private]`

Definition at line 1031 of file GaudiAlgs.py.

    01031 : return _Dec.matrix (s,*a)

def GaudiPython::GaudiAlgs::_t_ntuple_ | ( |  | s,
|  |  | a |
| ) |  |  | `[private]`

Definition at line 1026 of file GaudiAlgs.py.

    01026 : return _Dec.ntuple (s,*a)

def GaudiPython::GaudiAlgs::_t_nTuple_ | ( |  | s,
|  |  | a |
| ) |  |  | `[private]`

Definition at line 1025 of file GaudiAlgs.py.

    01025 : return _Dec.nTuple (s,*a)

def GaudiPython::GaudiAlgs::_t_valid_ | ( |  | s,
|  |  | a |
| ) |  |  | `[private]`

Definition at line 1027 of file GaudiAlgs.py.

    01027 : return _Dec.valid  (s,*a)

def GaudiPython::GaudiAlgs::_t_write_ | ( |  | s,
|  |  | a |
| ) |  |  | `[private]`

Definition at line 1028 of file GaudiAlgs.py.

    01028 : return _Dec.write  (s,*a)

def GaudiPython::GaudiAlgs::_tool_ | ( |  | self,
|  |  | interface,
|  |  | typename,
|  |  | name = `None`,
|  |  | parent = `None`,
|  |  | create = `True` |
| ) |  |  | `[private]`

Useful method to locate the tool a certain.

Usage:

          # locate public tool
          t1 = self.tool(ITrExtrapolator,'TrParabolicExtrapolator')
          # locate private tool
          t2 = self.tool(ITrExtrapolator,'TrParabolicExtrapolator',parent=self)
          # locate public tool with defined name
          t3 = self.tool(ITrExtrapolator,'TrParabolicExtrapolator/MyExt1')
          # locate private tool with defined name
          t4 = self.tool(ITrExtrapolator,'TrParabolicExtrapolator/MyExt2',parent=self)
          # locate public tool with defined name
          t5 = self.tool(ITrExtrapolator,'TrParabolicExtrapolator','MyExt3')
          # locate private tool with defined name
          t6 = self.tool(ITrExtrapolator,'TrParabolicExtrapolator','MyExt4',parent=self)

Author:
  Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
  2006-11-26

      Useful method to locate the tool a certain

      Usage:

      # locate public tool
      t1 = self.tool(ITrExtrapolator,'TrParabolicExtrapolator')
      # locate private tool
      t2 = self.tool(ITrExtrapolator,'TrParabolicExtrapolator',parent=self)
      # locate public tool with defined name
      t3 = self.tool(ITrExtrapolator,'TrParabolicExtrapolator/MyExt1')
      # locate private tool with defined name
      t4 = self.tool(ITrExtrapolator,'TrParabolicExtrapolator/MyExt2',parent=self)
      # locate public tool with defined name
      t5 = self.tool(ITrExtrapolator,'TrParabolicExtrapolator','MyExt3')
      # locate private tool with defined name
      t6 = self.tool(ITrExtrapolator,'TrParabolicExtrapolator','MyExt4',parent=self)

Definition at line 115 of file GaudiAlgs.py.

    00120                                 :
    00121     """
    00122     Useful method to locate the tool a certain
    00123
    00124     Usage:
    00125
    00126     # locate public tool
    00127     t1 = self.tool(ITrExtrapolator,'TrParabolicExtrapolator')
    00128     # locate private tool
    00129     t2 = self.tool(ITrExtrapolator,'TrParabolicExtrapolator',parent=self)
    00130     # locate public tool with defined name
    00131     t3 = self.tool(ITrExtrapolator,'TrParabolicExtrapolator/MyExt1')
    00132     # locate private tool with defined name
    00133     t4 = self.tool(ITrExtrapolator,'TrParabolicExtrapolator/MyExt2',parent=self)
    00134     # locate public tool with defined name
    00135     t5 = self.tool(ITrExtrapolator,'TrParabolicExtrapolator','MyExt3')
    00136     # locate private tool with defined name
    00137     t6 = self.tool(ITrExtrapolator,'TrParabolicExtrapolator','MyExt4',parent=self)
    00138
    00139     """
    00140     if not interface : interface = cpp.IAlgTool
    00141     if not parent    : parent    = self
    00142     if name          : typename  += '/' + name
    00143     _tool = AlgDecorator.tool_( self , typename , parent , create )
    00144     if not _tool : return None
    00145     _tool = InterfaceCast(interface)(_tool)
    00146     if not _tool :
    00147         self.Warning('Invalid cast to interface %s' % interface )
    00148         return None
    00149     return _tool
    00150
    00151 # =============================================================================
    ## Useful method to locate a service:

def GaudiPython::GaudiAlgs::_Tools_a_ | ( |  | self | ) | `[private]`

    Retrieve the list of tools,
        aquired by component through GaudiCommon<TYPE> base:

    >>> alg   = ...             ## get the algorithm
    >>> tools = alg.Tools()     ## get the tools
    >>> for tool in tools :
    ...        print tool

Definition at line 1128 of file GaudiAlgs.py.

    01128                        :
    01129     """
    01130     Retrieve the list of tools,
    01131         aquired by component through GaudiCommon<TYPE> base:
    01132
    01133     >>> alg   = ...             ## get the algorithm
    01134     >>> tools = alg.Tools()     ## get the tools
    01135     >>> for tool in tools :
    01136     ...        print tool
    01137
    01138     """
    01139     _cmp  = getattr ( self , '_ialg' )
    01140     if not _cmp : self.retrieveInterface()
    01141     _cmp  = getattr ( self , '_ialg' )
    01142     return _get_all_tools_ ( _cmp , '_tools_a_' )
    01143 # =============================================================================
    def _Tools_t_ ( self ) :

def GaudiPython::GaudiAlgs::_Tools_t_ | ( |  | self | ) | `[private]`

    Retrieve the list of tools,
        aquired by component through GaudiCommon<TYPE> base:

    >>> tool  = ...              ## get the tool
    >>> tools = tool.Tools()     ## get the tools
    >>> for t in tools :
    ...        print t

Definition at line 1144 of file GaudiAlgs.py.

    01144                        :
    01145     """
    01146     Retrieve the list of tools,
    01147         aquired by component through GaudiCommon<TYPE> base:
    01148
    01149     >>> tool  = ...              ## get the tool
    01150     >>> tools = tool.Tools()     ## get the tools
    01151     >>> for t in tools :
    01152     ...        print t
    01153
    01154     """
    01155     _cmp  = getattr ( self , '_itool' )
    01156     if not _cmp : self.retrieveInterface()
    01157     _cmp  = getattr ( self , '_itool' )
    01158     return _get_all_tools_ ( _cmp , '_tools_t_' )
    01159
    01160
    01161 # =============================================================================
    01162 # get the list of counters
    01163 # =============================================================================
    ## get all counters

def GaudiPython::GaudiAlgs::mapvct | ( |  | func,
|  |  | sequence,
|  |  | ovct = `None` |
| ) |  |  |

    Helper function to fill histogram/ntuple using 'map'-operation

Definition at line 1094 of file GaudiAlgs.py.

    01094                                              :
    01095     """ Helper function to fill histogram/ntuple using 'map'-operation """
    01096     if not ovct :
    01097         vct = GaudiPython.Vector
    01098     else :
    01099         vct = ovct
    01100     if   hasattr( sequence, 'size' ) :
    01101         vct.reserve ( vct.size() + sequence.size() )
    01102     elif hasattr( sequence, '__len__' ) :
    01103         vct.reserve ( vct.size() + len( sequence ) )
    01104     for object in sequence :
    01105         vct.push_back( func( object ) )
    01106     if not ovct : return vct
    01107 # =============================================================================
    01108
    01109
    01110
    01111
    01112 # =============================================================================
    01113 # get the list of tools
    01114 # =============================================================================
    def _get_all_tools_ ( self , method ) :

## Variable Documentation

tuple GaudiPython::GaudiAlgs::__all__

Initial value:

    (
        'GaudiAlgo' ,                    ##               base class for algorithms
        'HistoAlgo' ,                    ## base class for histo-related algorithms
        'TupleAlgo' ,                    ## base class for tuple-related algorithms
        'Tuple'     ,                    ##                                 N-Tuple
        'HistoID'   ,                    ##                         ID for N-tuples
        'TupleID'   ,                    ##                       ID for Histograms
        'aida2root' ,                    ##                  AIDA -> ROOT converter
        'SUCCESS'                        ##                             status code
        )

Definition at line 43 of file GaudiAlgs.py.

string GaudiPython::GaudiAlgs::__author__ = 'Vanya BELYAEV Ivan.Belyaev@lapp.in2p3.fr'

Definition at line 39 of file GaudiAlgs.py.

dictionary GaudiPython::GaudiAlgs::_alg_map_

Initial value:

    {
        '__init__'    : _init_        , # constructor
        'tool'        : _tool_        , # service locator
        'svc'         : _service_     , # tool locator
        'evtSvc'      : _evtSvc       , # event data service
        'eventSvc'    : _evtSvc       , # event data service
        'detSvc'      : _detSvc       , # detector data service
        'histoSvc'    : _histoSvc     , # histogram data service
        'histSvc'     : _histoSvc     , # histogram data service
        'get'         : _get          , # access to event data
        'getDet'      : _getDet       , # access to detector data
        'finalize'    : _finalize_    , # algorithm finalization
        'beginRun'    : _success_     , # dummy function returning success
        'endRun'      : _success_     , # dummy function returning success
        #
        'hasProperty' : _hasProperty_ , # check the existence of property with given name
        'getProperty' : _getProperty_ , # get the property value with given name
        'setProperty' : _setProperty_ , # set the property with given name
        '__setattr__' : _set_attr_    , # set the attribute/property with given name
        '__getattr__' : _get_attr_      # set the attribute/property with given name
        }

Definition at line 1055 of file GaudiAlgs.py.

GaudiPython::GaudiAlgs::_Dec = TupleDecorator

Definition at line 1024 of file GaudiAlgs.py.

GaudiPython::GaudiAlgs::_detSvc_

Definition at line 226 of file GaudiAlgs.py.

GaudiPython::GaudiAlgs::_evtcolSvc_

Definition at line 270 of file GaudiAlgs.py.

GaudiPython::GaudiAlgs::_evtSvc_

Definition at line 222 of file GaudiAlgs.py.

tuple GaudiPython::GaudiAlgs::_GaudiAlgorithm = cpp.GaudiPython.PyAlg( 'GaudiAlgorithm' )

Definition at line 467 of file GaudiAlgs.py.

tuple GaudiPython::GaudiAlgs::_GaudiHistoAlg = cpp.GaudiPython.PyAlg( 'GaudiHistoAlg' )

Definition at line 468 of file GaudiAlgs.py.

tuple GaudiPython::GaudiAlgs::_GaudiTupleAlg = cpp.GaudiPython.PyAlg( 'GaudiTupleAlg' )

Definition at line 469 of file GaudiAlgs.py.

GaudiPython::GaudiAlgs::_histoSvc_

Definition at line 245 of file GaudiAlgs.py.

GaudiPython::GaudiAlgs::_ntupleSvc_

Definition at line 265 of file GaudiAlgs.py.

GaudiPython::GaudiAlgs::AlgDecorator = cpp.GaudiPython.AlgDecorator

get the decorator:

Definition at line 86 of file GaudiAlgs.py.

GaudiPython::GaudiAlgs::HID = cpp.GaudiAlg.ID

histogram and N-Tuple universal identifier

Definition at line 80 of file GaudiAlgs.py.

GaudiPython::GaudiAlgs::HistoDecorator = cpp.GaudiPython.HistoDecorator

Definition at line 87 of file GaudiAlgs.py.

GaudiPython::GaudiAlgs::HistoID = HID

Definition at line 81 of file GaudiAlgs.py.

GaudiPython::GaudiAlgs::iAlgorithm = GaudiPython.Bindings.iAlgorithm

Definition at line 56 of file GaudiAlgs.py.

GaudiPython::GaudiAlgs::iAlgTool = GaudiPython.Bindings.iAlgTool

Definition at line 57 of file GaudiAlgs.py.

tuple GaudiPython::GaudiAlgs::Matrix = std.vector('std::vector<double>')

"typedef" for GaudiPython::Matrix

Definition at line 77 of file GaudiAlgs.py.

GaudiPython::GaudiAlgs::std = cpp.std

Definition at line 72 of file GaudiAlgs.py.

GaudiPython::GaudiAlgs::TID = HID

Definition at line 82 of file GaudiAlgs.py.

GaudiPython::GaudiAlgs::Tuple = cpp.Tuples.Tuple

Definition at line 1023 of file GaudiAlgs.py.

GaudiPython::GaudiAlgs::TupleAlgDecorator = cpp.GaudiPython.TupleAlgDecorator

Definition at line 88 of file GaudiAlgs.py.

GaudiPython::GaudiAlgs::TupleDecorator = cpp.GaudiPython.TupleDecorator

Definition at line 89 of file GaudiAlgs.py.

GaudiPython::GaudiAlgs::TupleID = TID

Definition at line 83 of file GaudiAlgs.py.

tuple GaudiPython::GaudiAlgs::Vector = std.vector('double')

"typedef" for GaudiPython::Vector

Definition at line 75 of file GaudiAlgs.py.