| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Public Member Functions

# 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.

## Constructor & Destructor Documentation

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

Reimplemented from GaudiPython::Bindings::iDataSvc.

Definition at line 448 of file Bindings.py.

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

## Member Function Documentation

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.

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

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.

    00474                           :
    00475         """
    00476         Book the histograms(1D,2D&3D) , see IHistogramSvc::book
    00477         >>> svc = ...
    00478         >>> histo = svc.book( .... )
    00479         """
            return apply(self._ihs.book,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.

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

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.

    00498                                   :
    00499         """
    00500         Retrieve the histogram from  Histogram Transient Store (by path)
    00501         The reference to AIDA histogram is returned (if possible)
    00502         >>> svc = ...
    00503         >>> histo = svc.getAsAIDA ( 'path/to/my/histogram' )
    00504         """
            return self.__getitem__( 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.

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

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.

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

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

Definition at line 451 of file Bindings.py.

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

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

Definition at line 453 of file Bindings.py.

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

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

Definition at line 455 of file Bindings.py.

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

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

Definition at line 457 of file Bindings.py.

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

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

Definition at line 459 of file Bindings.py.

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

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines