Gaudi Framework, version v21r4

Home   Generated: 7 Sep 2009

GaudiPython::Bindings::iHistogramSvc Class Reference

Inheritance diagram for GaudiPython::Bindings::iHistogramSvc:

Inheritance graph
[legend]
Collaboration diagram for GaudiPython::Bindings::iHistogramSvc:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 362 of file Bindings.py.


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

Member Function Documentation

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

Reimplemented from GaudiPython::Bindings::iDataSvc.

Definition at line 363 of file Bindings.py.

00363                                 :
00364     self.__dict__['_ihs'] = InterfaceCast(gbl.IHistogramSvc)(ihs)
00365     iDataSvc.__init__(self, name, ihs)
  def retrieve1D(self, path) :

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

Definition at line 366 of file Bindings.py.

00366                              :
00367     return Helper.histo1D(self._ihs, path)
  def retrieve2D(self, path) :

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

Definition at line 368 of file Bindings.py.

00368                              :
00369     return Helper.histo2D(self._ihs, path)
  def retrieve3D(self, path) :

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

Definition at line 370 of file Bindings.py.

00370                              :
00371     return Helper.histo3D(self._ihs, path)
  def retrieveProfile1D(self, path) :

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

Definition at line 372 of file Bindings.py.

00372                                     :
00373     return Helper.profile1D(self._ihs, path)
  def retrieveProfile2D(self, path) :

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

Definition at line 374 of file Bindings.py.

00374                                     :
00375     return Helper.profile2D(self._ihs, path)
  def retrieve(self,path):

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

00376                          :
00377     """
00378     Retrieve AIDA histogram or AIDA profile histogram by path in Histogram Transient Store
00379     >>> svc = ...
00380     >>> histo = svc.retrieve ( 'path/to/my/histogram' )
00381     """
00382     h = self.retrieve1D(path)
00383     if not h : h = self.retrieve2D(path)
00384     if not h : h = self.retrieve3D(path)
00385     if not h : h = self.retrieveProfile1D(path)
00386     if not h : h = self.retrieveProfile2D(path)
00387     return h
  def book(self, *args) :

def GaudiPython::Bindings::iHistogramSvc::book (   self,
  args 
)

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

Definition at line 388 of file Bindings.py.

00388                         :
00389     """
00390     Book the histograms(1D,2D&3D) , see IHistogramSvc::book
00391     >>> svc = ...
00392     >>> histo = svc.book( .... )
00393     """
00394     return apply(self._ihs.book,args)  
  def bookProf(self, *args) :

def GaudiPython::Bindings::iHistogramSvc::bookProf (   self,
  args 
)

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

Definition at line 395 of file Bindings.py.

00395                             :
00396     """
00397     Book the profile(1D&2D) histograms, see IHistogramSvc::bookProf
00398     >>> svc = ...
00399     >>> histo = svc.bookProf( .... )
00400     """
00401     return apply(self._ihs.bookProf,args)  
  def __getitem__ ( self, path ) :

def GaudiPython::Bindings::iHistogramSvc::__getitem__ (   self,
  path 
)

Retrieve the object from  Histogram Transient Store (by path)
The reference to AIDA historam is returned (if possible)
>>> svc = ...
>>> histo = svc['path/to/my/histogram']

Reimplemented from GaudiPython::Bindings::iDataSvc.

Definition at line 402 of file Bindings.py.

00402                                  :
00403     """
00404     Retrieve the object from  Histogram Transient Store (by path)
00405     The reference to AIDA historam is returned (if possible)
00406     >>> svc = ...
00407     >>> histo = svc['path/to/my/histogram']
00408     """
00409     h = self.retrieve ( path ) 
00410     if h : return h 
00411     return iDataSvc.__getitem__( self , path ) 
  def getAsAIDA ( self , path ) :

def GaudiPython::Bindings::iHistogramSvc::getAsAIDA (   self,
  path 
)

Retrieve the histogram from  Histogram Transient Store (by path)
The reference to AIDA historam is returned (if possible)
>>> svc = ...
>>> histo = svc.getAsAIDA ( 'path/to/my/histogram' )

Definition at line 412 of file Bindings.py.

00412                                 :
00413     """
00414     Retrieve the histogram from  Histogram Transient Store (by path)
00415     The reference to AIDA historam is returned (if possible)
00416     >>> svc = ...
00417     >>> histo = svc.getAsAIDA ( 'path/to/my/histogram' )
00418     """
00419     return self.__getitem__( path ) 
  def getAsROOT ( self , 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 420 of file Bindings.py.

00420                                 :
00421     """
00422     Retrieve the histogram from  Histogram Transient Store (by path)
00423     The Underlying native ROOT object is returned (if possible)
00424     >>> svc = ...
00425     >>> histo = svc.getAsROOT ( 'path/to/my/histogram' )
00426     """    
00427     fun=gbl.Gaudi.Utils.Aida2ROOT.aida2root 
00428     return fun( self.getAsAIDA( path ) )
00429 
00430 #----iNTupleSvc class--------------------------------------------------------------------- 
class iNTupleSvc(iDataSvc) :


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

Generated at Mon Sep 7 18:26:37 2009 for Gaudi Framework, version v21r4 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004