| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
GaudiPython.Bindings.iHistogramSvc Class Reference
Inheritance diagram for GaudiPython.Bindings.iHistogramSvc:
[legend]
Collaboration diagram for GaudiPython.Bindings.iHistogramSvc:
[legend]

## Public Member Functions
def | __init__ (self, name, ihs)
def | retrieve1D (self, path)
def | retrieve2D (self, path)
def | retrieve3D (self, path)
def | retrieveProfile1D (self, path)
def | retrieveProfile2D (self, path)
def | retrieve (self, path)
def | book (self, args)
def | bookProf (self, args)
def | __getitem__ (self, path)
def | getAsAIDA (self, path)
def | getAsROOT (self, path)
Public Member Functions inherited from GaudiPython.Bindings.iDataSvc
def | __init__ (self, name, idp)
def | registerObject (self, path, obj)
def | unregisterObject (self, path)
def | retrieveObject (self, path)
def | findObject (self, path)
| get object from TES More...
def | getObject (self, path, args)
| get or retrieve object, possible switch-off 'on-demand' actions More...
def | __getitem__ (self, path)
def | __setitem__ (self, path, obj)
def | __delitem__ (self, path)
def | leaves
def | dump
def | getList
def | getHistoNames
def | setRoot (self, name, obj)
def | clearStore (self)
Public Member Functions inherited from GaudiPython.Bindings.iService
def | __init__
def | retrieveInterface (self)
def | isValid (self)
Public Member Functions inherited from GaudiPython.Bindings.iProperty
def | __init__
def | getInterface (self)
def | retrieveInterface (self)
def | __call_interface_method__ (self, ifname, method, args)
def | __setattr__ (self, name, value)
def | __getattr__ (self, name)
def | properties (self)
def | name (self)

## Additional Inherited Members
Static Public Attributes inherited from GaudiPython.Bindings.iService
tuple | initialize = lambdaself:self.__call_interface_method__("_isvc","initialize")
tuple | start = lambdaself:self.__call_interface_method__("_isvc","start")
tuple | stop = lambdaself:self.__call_interface_method__("_isvc","stop")
tuple | finalize = lambdaself:self.__call_interface_method__("_isvc","finalize")
tuple | reinitialize = lambdaself:self.__call_interface_method__("_isvc","reinitialize")
tuple | restart = lambdaself:self.__call_interface_method__("_isvc","restart")

## Detailed Description

Definition at line 473 of file Bindings.py.

## Constructor & Destructor Documentation

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

Definition at line 474 of file Bindings.py.

474 def __init__(self, name, ihs) :
475 self.__dict__['_ihs'] = InterfaceCast(gbl.IHistogramSvc)(ihs)
476 iDataSvc.__init__(self, name, ihs)
GaudiPython.Bindings.InterfaceCast
Definition: Bindings.py:77
GaudiPython.Bindings.iHistogramSvc.__init__
def __init__(self, name, ihs)
Definition: Bindings.py:474

## 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']

Definition at line 513 of file Bindings.py.

513 def __getitem__ ( self, path ) :
514 """
515 Retrieve the object from Histogram Transient Store (by path)
516 The reference to AIDA histogram is returned (if possible)
517 >>> svc = ...
518 >>> histo = svc['path/to/my/histogram']
519 """
520 h = self.retrieve ( path )
521 if h : return h
522 return iDataSvc.__getitem__( self , path )
GaudiPython.Bindings.iHistogramSvc.__getitem__
def __getitem__(self, path)
Definition: Bindings.py:513
GaudiPython.Bindings.iHistogramSvc.retrieve
def retrieve(self, path)
Definition: Bindings.py:487

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

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

Definition at line 499 of file Bindings.py.

499 def book(self, *args) :
500 """
501 Book the histograms(1D,2D&3D) , see IHistogramSvc::book
502 >>> svc = ...
503 >>> histo = svc.book( .... )
504 """
505 return apply(self._ihs.book,args)
GaudiPython.Bindings.iHistogramSvc.book
def book(self, args)
Definition: Bindings.py:499

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

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

Definition at line 506 of file Bindings.py.

506 def bookProf(self, *args) :
507 """
508 Book the profile(1D&2D) histograms, see IHistogramSvc::bookProf
509 >>> svc = ...
510 >>> histo = svc.bookProf( .... )
511 """
512 return apply(self._ihs.bookProf,args)
GaudiPython.Bindings.iHistogramSvc.bookProf
def bookProf(self, args)
Definition: Bindings.py:506

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 523 of file Bindings.py.

523 def getAsAIDA ( self , path ) :
524 """
525 Retrieve the histogram from Histogram Transient Store (by path)
526 The reference to AIDA histogram is returned (if possible)
527 >>> svc = ...
528 >>> histo = svc.getAsAIDA ( 'path/to/my/histogram' )
529 """
530 return self.__getitem__( path )
GaudiPython.Bindings.iDataSvc.__getitem__
def __getitem__(self, path)
Definition: Bindings.py:406
GaudiPython.Bindings.iHistogramSvc.getAsAIDA
def getAsAIDA(self, path)
Definition: Bindings.py:523

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 531 of file Bindings.py.

531 def getAsROOT ( self , path ) :
532 """
533 Retrieve the histogram from Histogram Transient Store (by path)
534 The Underlying native ROOT object is returned (if possible)
535 >>> svc = ...
536 >>> histo = svc.getAsROOT ( 'path/to/my/histogram' )
537 """
538 fun = gbl.Gaudi.Utils.Aida2ROOT.aida2root
539 return fun( self.getAsAIDA( path ) )
540
541 #----iNTupleSvc class---------------------------------------------------------------------
GaudiPython.Bindings.iHistogramSvc.getAsAIDA
def getAsAIDA(self, path)
Definition: Bindings.py:523
GaudiPython.Bindings.iHistogramSvc.getAsROOT
def getAsROOT(self, path)
Definition: Bindings.py:531
fun
double fun(const std::vector< double > &x)
Definition: PFuncTest.cpp:26

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 487 of file Bindings.py.

487 def retrieve(self,path):
488 """
489 Retrieve AIDA histogram or AIDA profile histogram by path in Histogram Transient Store
490 >>> svc = ...
491 >>> histo = svc.retrieve ( 'path/to/my/histogram' )
492 """
493 h = self.retrieve1D(path)
494 if not h : h = self.retrieve2D(path)
495 if not h : h = self.retrieve3D(path)
496 if not h : h = self.retrieveProfile1D(path)
497 if not h : h = self.retrieveProfile2D(path)
498 return h
GaudiPython.Bindings.iHistogramSvc.retrieveProfile1D
def retrieveProfile1D(self, path)
Definition: Bindings.py:483
GaudiPython.Bindings.iHistogramSvc.retrieve1D
def retrieve1D(self, path)
Definition: Bindings.py:477
GaudiPython.Bindings.iHistogramSvc.retrieve3D
def retrieve3D(self, path)
Definition: Bindings.py:481
GaudiPython.Bindings.iHistogramSvc.retrieveProfile2D
def retrieveProfile2D(self, path)
Definition: Bindings.py:485
GaudiPython.Bindings.iHistogramSvc.retrieve2D
def retrieve2D(self, path)
Definition: Bindings.py:479
GaudiPython.Bindings.iHistogramSvc.retrieve
def retrieve(self, path)
Definition: Bindings.py:487

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

Definition at line 477 of file Bindings.py.

477 def retrieve1D(self, path) :
478 return Helper.histo1D(self._ihs, path)
GaudiPython.Bindings.iHistogramSvc.retrieve1D
def retrieve1D(self, path)
Definition: Bindings.py:477

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

Definition at line 479 of file Bindings.py.

479 def retrieve2D(self, path) :
480 return Helper.histo2D(self._ihs, path)
GaudiPython.Bindings.iHistogramSvc.retrieve2D
def retrieve2D(self, path)
Definition: Bindings.py:479

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

Definition at line 481 of file Bindings.py.

481 def retrieve3D(self, path) :
482 return Helper.histo3D(self._ihs, path)
GaudiPython.Bindings.iHistogramSvc.retrieve3D
def retrieve3D(self, path)
Definition: Bindings.py:481

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

Definition at line 483 of file Bindings.py.

483 def retrieveProfile1D(self, path) :
484 return Helper.profile1D(self._ihs, path)
GaudiPython.Bindings.iHistogramSvc.retrieveProfile1D
def retrieveProfile1D(self, path)
Definition: Bindings.py:483

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

Definition at line 485 of file Bindings.py.

485 def retrieveProfile2D(self, path) :
486 return Helper.profile2D(self._ihs, path)
GaudiPython.Bindings.iHistogramSvc.retrieveProfile2D
def retrieveProfile2D(self, path)
Definition: Bindings.py:485

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

- GaudiPython/python/GaudiPython/Bindings.py