Gaudi Framework, version v21r7p1

Home   Generated: 15 Feb 2010

GaudiPython::Pythonizations Namespace Reference


Functions

def _loadDict
def _printHisto1D
def _contentsHisto1D
def _printHisto2D
def _printStatusCode
def _printBitReference
def _printFillStream
def _container__getitem__
def _container__len__
def _container__iter__
def _draw_aida_

Variables

list __all__ = [ ]
 gbl = PyCintex.gbl
 _loadDict_save = PyCintex.loadDict
 _eq = gbl.Gaudi.StringKey.__cpp_eq__
 _ne = gbl.Gaudi.StringKey.__cpp_ne__


Function Documentation

def GaudiPython::Pythonizations::_container__getitem__ (   self,
  k 
) [private]

Definition at line 52 of file Pythonizations.py.

00052                                    :
00053     return self.containedObject(k)
def _container__len__(self) :

def GaudiPython::Pythonizations::_container__iter__ (   self  )  [private]

Definition at line 56 of file Pythonizations.py.

00056                              :
00057     if hasattr(self,'containedObjects') : sequential = self.containedObjects()
00058     else                                : sequential = self
00059     count = 0
00060     limit = self.__len__()
00061     while count < limit :
00062         yield sequential.__getitem__(count)
00063         count += 1
00064 
def _draw_aida_ ( self , *args ) :

def GaudiPython::Pythonizations::_container__len__ (   self  )  [private]

Definition at line 54 of file Pythonizations.py.

00054                             :
00055     return self.numberOfObjects()
def _container__iter__(self) :

def GaudiPython::Pythonizations::_contentsHisto1D (   h  )  [private]

Definition at line 28 of file Pythonizations.py.

00028                         :
00029     x = h.axis()
00030     return  map(h.binEntries, range(x.bins()))
def _printHisto2D(h) :

def GaudiPython::Pythonizations::_draw_aida_ (   self,
  args 
) [private]

Draw AIDA histogram (through access to internal ROOT histogram

>>> aida = ...    # get the historgam
>>> aida.Draw()

Definition at line 65 of file Pythonizations.py.

00065                                  :
00066     """
00067     Draw AIDA histogram (through access to internal ROOT histogram
00068 
00069     >>> aida = ...    # get the historgam
00070     >>> aida.Draw()
00071 
00072     """
00073     _fun = PyCintex.gbl.Gaudi.Utils.Aida2ROOT.aida2root
00074     _root = _fun ( self )
00075     return _root.Draw( *args )
00076 
00077 gbl.AIDA.IHistogram1D.__repr__ = _printHisto1D
00078 gbl.AIDA.IHistogram1D.contents = _contentsHisto1D
00079 gbl.AIDA.IHistogram2D.__repr__ = _printHisto2D
for h in (  gbl.AIDA.IHistogram   ,

def GaudiPython::Pythonizations::_loadDict (   name  )  [private]

Definition at line 18 of file Pythonizations.py.

00018                    :
00019     import sys
00020     if sys.platform != 'win32' and name[:3] != 'lib' : name = 'lib'+name
00021     return _loadDict_save(name)
00022 PyCintex.loadDict = _loadDict
00023 
00024 #--- Adding extra functionality to C++ raw classes------------------------------------
def _printHisto1D(h) :

def GaudiPython::Pythonizations::_printBitReference (   b  )  [private]

Definition at line 38 of file Pythonizations.py.

00038                           :
00039     return str(1==b.bool())
def _printFillStream(o) :

def GaudiPython::Pythonizations::_printFillStream (   o  )  [private]

Definition at line 40 of file Pythonizations.py.

00040                         :
00041     if  o :
00042         s = gbl.stringstream()
00043         o.fillStream(s)
00044         out = s.str()
00045         if out == '' :
00046             out = o.__class__.__name__ + ' object'
00047             if hasattr( o, 'hasKey') and o.hasKey() :
00048                 out += ' key = '+ str(o.key())
00049     else :
00050         out = o.__class__.__name__ + ' NULL object'
00051     return out
def _container__getitem__(self, k) :

def GaudiPython::Pythonizations::_printHisto1D (   h  )  [private]

Definition at line 25 of file Pythonizations.py.

00025                      :
00026     x = h.axis()
00027     return  'Histogram 1D "%s" %d bins [%f,%f]' % (h.title(), x.bins(), x.lowerEdge(), x.upperEdge())
def _contentsHisto1D(h) :

def GaudiPython::Pythonizations::_printHisto2D (   h  )  [private]

Definition at line 31 of file Pythonizations.py.

00031                      :
00032     x,y = h.xAxis(),h.yAxis()
00033     return  'Histogram 2D "%s" %d xbins [%f,%f], %d ybins [%f,%f]' % \
00034     (h.title(), x.bins(), x.lowerEdge(), x.upperEdge(), y.bins(), y.lowerEdge(), y.upperEdge() )
def _printStatusCode(s) :

def GaudiPython::Pythonizations::_printStatusCode (   s  )  [private]

Definition at line 35 of file Pythonizations.py.

00035                         :
00036     if s.isSuccess() : return 'SUCCESS'
00037     else             : return 'FAILURE'
def _printBitReference(b) :


Variable Documentation

Definition at line 8 of file Pythonizations.py.

GaudiPython::Pythonizations::_eq = gbl.Gaudi.StringKey.__cpp_eq__

Definition at line 107 of file Pythonizations.py.

Definition at line 17 of file Pythonizations.py.

GaudiPython::Pythonizations::_ne = gbl.Gaudi.StringKey.__cpp_ne__

Definition at line 112 of file Pythonizations.py.

Definition at line 11 of file Pythonizations.py.


Generated at Mon Feb 15 17:44:32 2010 for Gaudi Framework, version v21r7p1 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004