The Gaudi Framework  v32r2 (46d42edc)
GaudiPython.Bindings.iHistogramSvc Class Reference
Inheritance diagram for GaudiPython.Bindings.iHistogramSvc:
Collaboration diagram for GaudiPython.Bindings.iHistogramSvc:

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 registerObject (self, path, obj)
 
def unregisterObject (self, path)
 
def retrieveObject (self, path)
 
def findObject (self, path)
 
def getObject (self, path, *args)
 
def __setitem__ (self, path, obj)
 
def __delitem__ (self, path)
 
def leaves (self, node=None)
 
def dump (self, node=None)
 
def getList (self, node=None, lst=[], rootFID=None)
 
def getHistoNames (self, node=None, lst=[])
 
def setRoot (self, name, obj)
 
def clearStore (self)
 
- Public Member Functions inherited from GaudiPython.Bindings.iService
def retrieveInterface (self)
 
def initialize (self)
 
def start (self)
 
def stop (self)
 
def finalize (self)
 
def reinitialize (self)
 
def restart (self)
 
def isValid (self)
 
- Public Member Functions inherited from GaudiPython.Bindings.iProperty
def getInterface (self)
 
def __call_interface_method__ (self, ifname, method, *args)
 
def __setattr__ (self, name, value)
 
def __getattr__ (self, name)
 
def properties (self)
 
def name (self)
 

Detailed Description

Definition at line 688 of file Bindings.py.

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented from GaudiPython.Bindings.iDataSvc.

Definition at line 689 of file Bindings.py.

689  def __init__(self, name, ihs):
690  self.__dict__['_ihs'] = InterfaceCast(gbl.IHistogramSvc)(ihs)
691  iDataSvc.__init__(self, name, ihs)
692 

Member Function Documentation

◆ __getitem__()

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

741  def __getitem__(self, path):
742  """
743  Retrieve the object from Histogram Transient Store (by path)
744  The reference to AIDA histogram is returned (if possible)
745  >>> svc = ...
746  >>> histo = svc['path/to/my/histogram']
747  """
748  h = self.retrieve(path)
749  if h:
750  return h
751  return iDataSvc.__getitem__(self, path)
752 

◆ book()

def GaudiPython.Bindings.iHistogramSvc.book (   self,
args 
)
Book the histograms(1D,2D&3D) , see IHistogramSvc::book
>>> svc = ...
>>> histo = svc.book( .... )

Definition at line 725 of file Bindings.py.

725  def book(self, *args):
726  """
727  Book the histograms(1D,2D&3D) , see IHistogramSvc::book
728  >>> svc = ...
729  >>> histo = svc.book( .... )
730  """
731  return self._ihs.book(*args)
732 
GAUDI_API AIDA::IHistogram1D * book(IHistogramSvc *svc, const std::string &path, const Gaudi::Histo1DDef &hist)
helper function to book 1D-histogram
Definition: HistoDef.cpp:87

◆ bookProf()

def GaudiPython.Bindings.iHistogramSvc.bookProf (   self,
args 
)
Book the profile(1D&2D) histograms, see IHistogramSvc::bookProf
>>> svc = ...
>>> histo = svc.bookProf( .... )

Definition at line 733 of file Bindings.py.

733  def bookProf(self, *args):
734  """
735  Book the profile(1D&2D) histograms, see IHistogramSvc::bookProf
736  >>> svc = ...
737  >>> histo = svc.bookProf( .... )
738  """
739  return self._ihs.bookProf(*args)
740 
def bookProf(*args, **kwargs)
Definition: HistoUtils.py:257

◆ getAsAIDA()

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

753  def getAsAIDA(self, path):
754  """
755  Retrieve the histogram from Histogram Transient Store (by path)
756  The reference to AIDA histogram is returned (if possible)
757  >>> svc = ...
758  >>> histo = svc.getAsAIDA ( 'path/to/my/histogram' )
759  """
760  return self.__getitem__(path)
761 
def getAsAIDA(path, **kwargs)
Definition: HistoUtils.py:337

◆ getAsROOT()

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

762  def getAsROOT(self, path):
763  """
764  Retrieve the histogram from Histogram Transient Store (by path)
765  The Underlying native ROOT object is returned (if possible)
766  >>> svc = ...
767  >>> histo = svc.getAsROOT ( 'path/to/my/histogram' )
768  """
769  fun = gbl.Gaudi.Utils.Aida2ROOT.aida2root
770  return fun(self.getAsAIDA(path))
771 
772 
773 # ----iNTupleSvc class---------------------------------------------------------
774 
775 
def getAsROOT(path, **kwargs)
Definition: HistoUtils.py:362

◆ retrieve()

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

708  def retrieve(self, path):
709  """
710  Retrieve AIDA histogram or AIDA profile histogram by path in Histogram Transient Store
711  >>> svc = ...
712  >>> histo = svc.retrieve ( 'path/to/my/histogram' )
713  """
714  h = self.retrieve1D(path)
715  if not h:
716  h = self.retrieve2D(path)
717  if not h:
718  h = self.retrieve3D(path)
719  if not h:
720  h = self.retrieveProfile1D(path)
721  if not h:
722  h = self.retrieveProfile2D(path)
723  return h
724 

◆ retrieve1D()

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

Definition at line 693 of file Bindings.py.

693  def retrieve1D(self, path):
694  return Helper.histo1D(self._ihs, path)
695 

◆ retrieve2D()

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

Definition at line 696 of file Bindings.py.

696  def retrieve2D(self, path):
697  return Helper.histo2D(self._ihs, path)
698 

◆ retrieve3D()

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

Definition at line 699 of file Bindings.py.

699  def retrieve3D(self, path):
700  return Helper.histo3D(self._ihs, path)
701 

◆ retrieveProfile1D()

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

Definition at line 702 of file Bindings.py.

702  def retrieveProfile1D(self, path):
703  return Helper.profile1D(self._ihs, path)
704 

◆ retrieveProfile2D()

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

Definition at line 705 of file Bindings.py.

705  def retrieveProfile2D(self, path):
706  return Helper.profile2D(self._ihs, path)
707 

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