Gaudi Framework, version v24r2

Home   Generated: Wed Dec 4 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
GaudiPython.Bindings.iHistogramSvc Class Reference
Inheritance diagram for GaudiPython.Bindings.iHistogramSvc:
Inheritance graph
[legend]
Collaboration diagram for GaudiPython.Bindings.iHistogramSvc:
Collaboration graph
[legend]

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
 
- Public Member Functions inherited from GaudiPython.Bindings.iDataSvc
def __init__
 
def registerObject
 
def unregisterObject
 
def retrieveObject
 
def findObject
 get object from TES
 
def getObject
 get or retrieve object, possible switch-off 'on-demand' actions
 
def __getitem__
 
def __setitem__
 
def __delitem__
 
def leaves
 
def dump
 
def getList
 
def getHistoNames
 
def setRoot
 
def clearStore
 
- Public Member Functions inherited from GaudiPython.Bindings.iService
def __init__
 
def retrieveInterface
 
def isValid
 
- Public Member Functions inherited from GaudiPython.Bindings.iProperty
def __init__
 
def getInterface
 
def retrieveInterface
 
def __call_interface_method__
 
def __setattr__
 
def __getattr__
 
def properties
 
def name
 

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

Constructor & Destructor Documentation

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

Definition at line 448 of file Bindings.py.

449  def __init__(self, name, ihs) :
450  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']

Definition at line 487 of file Bindings.py.

488  def __getitem__ ( self, path ) :
489  """
490  Retrieve the object from Histogram Transient Store (by path)
491  The reference to AIDA histogram is returned (if possible)
492  >>> svc = ...
493  >>> histo = svc['path/to/my/histogram']
494  """
495  h = self.retrieve ( path )
496  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.

474  def book(self, *args) :
475  """
476  Book the histograms(1D,2D&3D) , see IHistogramSvc::book
477  >>> svc = ...
478  >>> histo = svc.book( .... )
479  """
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.

481  def bookProf(self, *args) :
482  """
483  Book the profile(1D&2D) histograms, see IHistogramSvc::bookProf
484  >>> svc = ...
485  >>> histo = svc.bookProf( .... )
486  """
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.

498  def getAsAIDA ( self , path ) :
499  """
500  Retrieve the histogram from Histogram Transient Store (by path)
501  The reference to AIDA histogram is returned (if possible)
502  >>> svc = ...
503  >>> histo = svc.getAsAIDA ( 'path/to/my/histogram' )
504  """
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.

506  def getAsROOT ( self , path ) :
507  """
508  Retrieve the histogram from Histogram Transient Store (by path)
509  The Underlying native ROOT object is returned (if possible)
510  >>> svc = ...
511  >>> histo = svc.getAsROOT ( 'path/to/my/histogram' )
512  """
513  fun=gbl.Gaudi.Utils.Aida2ROOT.aida2root
514  return fun( self.getAsAIDA( path ) )
515 
#----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.

462  def retrieve(self,path):
463  """
464  Retrieve AIDA histogram or AIDA profile histogram by path in Histogram Transient Store
465  >>> svc = ...
466  >>> histo = svc.retrieve ( 'path/to/my/histogram' )
467  """
468  h = self.retrieve1D(path)
469  if not h : h = self.retrieve2D(path)
470  if not h : h = self.retrieve3D(path)
471  if not h : h = self.retrieveProfile1D(path)
472  if not h : h = self.retrieveProfile2D(path)
return h
def GaudiPython.Bindings.iHistogramSvc.retrieve1D (   self,
  path 
)

Definition at line 451 of file Bindings.py.

452  def retrieve1D(self, path) :
return Helper.histo1D(self._ihs, path)
def GaudiPython.Bindings.iHistogramSvc.retrieve2D (   self,
  path 
)

Definition at line 453 of file Bindings.py.

454  def retrieve2D(self, path) :
return Helper.histo2D(self._ihs, path)
def GaudiPython.Bindings.iHistogramSvc.retrieve3D (   self,
  path 
)

Definition at line 455 of file Bindings.py.

456  def retrieve3D(self, path) :
return Helper.histo3D(self._ihs, path)
def GaudiPython.Bindings.iHistogramSvc.retrieveProfile1D (   self,
  path 
)

Definition at line 457 of file Bindings.py.

458  def retrieveProfile1D(self, path) :
return Helper.profile1D(self._ihs, path)
def GaudiPython.Bindings.iHistogramSvc.retrieveProfile2D (   self,
  path 
)

Definition at line 459 of file Bindings.py.

460  def retrieveProfile2D(self, path) :
return Helper.profile2D(self._ihs, path)

The documentation for this class was generated from the following file:
Generated at Wed Dec 4 2013 14:33:22 for Gaudi Framework, version v24r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004