All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GaudiPython.Bindings.iHistogramSvc Class Reference
Inheritance diagram for GaudiPython.Bindings.iHistogramSvc:
Collaboration diagram for GaudiPython.Bindings.iHistogramSvc:

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 More...
 
def getObject
 get or retrieve object, possible switch-off 'on-demand' actions More...
 
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 474 of file Bindings.py.

Constructor & Destructor Documentation

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

Definition at line 475 of file Bindings.py.

476  def __init__(self, name, ihs) :
477  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 514 of file Bindings.py.

515  def __getitem__ ( self, path ) :
516  """
517  Retrieve the object from Histogram Transient Store (by path)
518  The reference to AIDA histogram is returned (if possible)
519  >>> svc = ...
520  >>> histo = svc['path/to/my/histogram']
521  """
522  h = self.retrieve ( path )
523  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 500 of file Bindings.py.

501  def book(self, *args) :
502  """
503  Book the histograms(1D,2D&3D) , see IHistogramSvc::book
504  >>> svc = ...
505  >>> histo = svc.book( .... )
506  """
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 507 of file Bindings.py.

508  def bookProf(self, *args) :
509  """
510  Book the profile(1D&2D) histograms, see IHistogramSvc::bookProf
511  >>> svc = ...
512  >>> histo = svc.bookProf( .... )
513  """
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 524 of file Bindings.py.

525  def getAsAIDA ( self , path ) :
526  """
527  Retrieve the histogram from Histogram Transient Store (by path)
528  The reference to AIDA histogram is returned (if possible)
529  >>> svc = ...
530  >>> histo = svc.getAsAIDA ( 'path/to/my/histogram' )
531  """
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 532 of file Bindings.py.

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

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

Definition at line 478 of file Bindings.py.

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

Definition at line 480 of file Bindings.py.

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

Definition at line 482 of file Bindings.py.

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

Definition at line 484 of file Bindings.py.

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

Definition at line 486 of file Bindings.py.

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

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