| # Gaudi Framework, version v21r11 |

Home |  | Generated: 30 Sep 2010

# GaudiPython::Bindings::iHistogramSvc Class Reference

Inheritance diagram for GaudiPython::Bindings::iHistogramSvc:
[legend]
Collaboration diagram for GaudiPython::Bindings::iHistogramSvc:
[legend]

List of all members.

## Public Member Functions
def | __init__
def | retrieve1D
def | retrieve2D
def | retrieve3D
def | retrieveProfile1D
def | retrieveProfile2D
def | retrieve
def | book
def | bookProf
def | __getitem__
def | getAsAIDA
def | getAsROOT

## Detailed Description

Definition at line 447 of file Bindings.py.

## Member Function Documentation

def GaudiPython::Bindings::iHistogramSvc::__init__ | ( |  | self,
|  |  | name,
|  |  | ihs |
| ) |  |  |

Reimplemented from GaudiPython::Bindings::iDataSvc.

Definition at line 448 of file Bindings.py.

    00448                                   :
    00449         self.__dict__['_ihs'] = InterfaceCast(gbl.IHistogramSvc)(ihs)
    00450         iDataSvc.__init__(self, name, ihs)
        def retrieve1D(self, path) :

def GaudiPython::Bindings::iHistogramSvc::retrieve1D | ( |  | self,
|  |  | path |
| ) |  |  |

Definition at line 451 of file Bindings.py.

    00451                                :
    00452         return Helper.histo1D(self._ihs, path)
        def retrieve2D(self, path) :

def GaudiPython::Bindings::iHistogramSvc::retrieve2D | ( |  | self,
|  |  | path |
| ) |  |  |

Definition at line 453 of file Bindings.py.

    00453                                :
    00454         return Helper.histo2D(self._ihs, path)
        def retrieve3D(self, path) :

def GaudiPython::Bindings::iHistogramSvc::retrieve3D | ( |  | self,
|  |  | path |
| ) |  |  |

Definition at line 455 of file Bindings.py.

    00455                                :
    00456         return Helper.histo3D(self._ihs, path)
        def retrieveProfile1D(self, path) :

def GaudiPython::Bindings::iHistogramSvc::retrieveProfile1D | ( |  | self,
|  |  | path |
| ) |  |  |

Definition at line 457 of file Bindings.py.

    00457                                       :
    00458         return Helper.profile1D(self._ihs, path)
        def retrieveProfile2D(self, path) :

def GaudiPython::Bindings::iHistogramSvc::retrieveProfile2D | ( |  | self,
|  |  | path |
| ) |  |  |

Definition at line 459 of file Bindings.py.

    00459                                       :
    00460         return Helper.profile2D(self._ihs, path)
        def retrieve(self,path):

def GaudiPython::Bindings::iHistogramSvc::retrieve | ( |  | self,
|  |  | path |
| ) |  |  |

    Retrieve AIDA histogram or AIDA profile histogram by path in Histogram Transient Store
    >>> svc = ...
    >>> histo = svc.retrieve ( 'path/to/my/histogram' )

Definition at line 461 of file Bindings.py.

    00461                            :
    00462         """
    00463         Retrieve AIDA histogram or AIDA profile histogram by path in Histogram Transient Store
    00464         >>> svc = ...
    00465         >>> histo = svc.retrieve ( 'path/to/my/histogram' )
    00466         """
    00467         h = self.retrieve1D(path)
    00468         if not h : h = self.retrieve2D(path)
    00469         if not h : h = self.retrieve3D(path)
    00470         if not h : h = self.retrieveProfile1D(path)
    00471         if not h : h = self.retrieveProfile2D(path)
    00472         return h
        def book(self, *args) :

def GaudiPython::Bindings::iHistogramSvc::book | ( |  | self,
|  |  | args |
| ) |  |  |

    Book the histograms(1D,2D&3D) , see IHistogramSvc::book
    >>> svc = ...
    >>> histo = svc.book( .... )

Definition at line 473 of file Bindings.py.

    00473                           :
    00474         """
    00475         Book the histograms(1D,2D&3D) , see IHistogramSvc::book
    00476         >>> svc = ...
    00477         >>> histo = svc.book( .... )
    00478         """
    00479         return apply(self._ihs.book,args)
        def bookProf(self, *args) :

def GaudiPython::Bindings::iHistogramSvc::bookProf | ( |  | self,
|  |  | args |
| ) |  |  |

    Book the profile(1D&2D) histograms, see IHistogramSvc::bookProf
    >>> svc = ...
    >>> histo = svc.bookProf( .... )

Definition at line 480 of file Bindings.py.

    00480                               :
    00481         """
    00482         Book the profile(1D&2D) histograms, see IHistogramSvc::bookProf
    00483         >>> svc = ...
    00484         >>> histo = svc.bookProf( .... )
    00485         """
    00486         return apply(self._ihs.bookProf,args)
        def __getitem__ ( self, path ) :

def GaudiPython::Bindings::iHistogramSvc::__getitem__ | ( |  | self,
|  |  | path |
| ) |  |  |

    Retrieve the object from  Histogram Transient Store (by path)
    The reference to AIDA histogram is returned (if possible)
    >>> svc = ...
    >>> histo = svc['path/to/my/histogram']

Reimplemented from GaudiPython::Bindings::iDataSvc.

Definition at line 487 of file Bindings.py.

    00487                                    :
    00488         """
    00489         Retrieve the object from  Histogram Transient Store (by path)
    00490         The reference to AIDA histogram is returned (if possible)
    00491         >>> svc = ...
    00492         >>> histo = svc['path/to/my/histogram']
    00493         """
    00494         h = self.retrieve ( path )
    00495         if h : return h
    00496         return iDataSvc.__getitem__( self , path )
        def getAsAIDA ( self , path ) :

def GaudiPython::Bindings::iHistogramSvc::getAsAIDA | ( |  | self,
|  |  | path |
| ) |  |  |

    Retrieve the histogram from  Histogram Transient Store (by path)
    The reference to AIDA histogram is returned (if possible)
    >>> svc = ...
    >>> histo = svc.getAsAIDA ( 'path/to/my/histogram' )

Definition at line 497 of file Bindings.py.

    00497                                   :
    00498         """
    00499         Retrieve the histogram from  Histogram Transient Store (by path)
    00500         The reference to AIDA histogram is returned (if possible)
    00501         >>> svc = ...
    00502         >>> histo = svc.getAsAIDA ( 'path/to/my/histogram' )
    00503         """
    00504         return self.__getitem__( path )
        def getAsROOT ( self , path ) :

def GaudiPython::Bindings::iHistogramSvc::getAsROOT | ( |  | self,
|  |  | path |
| ) |  |  |

    Retrieve the histogram from  Histogram Transient Store (by path)
    The Underlying native ROOT object is returned (if possible)
    >>> svc = ...
    >>> histo = svc.getAsROOT ( 'path/to/my/histogram' )

Definition at line 505 of file Bindings.py.

    00505                                   :
    00506         """
    00507         Retrieve the histogram from  Histogram Transient Store (by path)
    00508         The Underlying native ROOT object is returned (if possible)
    00509         >>> svc = ...
    00510         >>> histo = svc.getAsROOT ( 'path/to/my/histogram' )
    00511         """
    00512         fun=gbl.Gaudi.Utils.Aida2ROOT.aida2root
    00513         return fun( self.getAsAIDA( path ) )
    00514
    00515 #----iNTupleSvc class---------------------------------------------------------------------
    class iNTupleSvc(iDataSvc) :

The documentation for this class was generated from the following file:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r11/GaudiPython/python/GaudiPython/Bindings.py