The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
GaudiPython.Bindings.iHistogramSvc Class Reference
Inheritance diagram for GaudiPython.Bindings.iHistogramSvc:
Collaboration diagram for GaudiPython.Bindings.iHistogramSvc:

Public Member Functions

 __init__ (self, name, ihs)
 retrieve1D (self, path)
 retrieve2D (self, path)
 retrieve3D (self, path)
 retrieveProfile1D (self, path)
 retrieveProfile2D (self, path)
 retrieve (self, path)
 book (self, *args)
 bookProf (self, *args)
 __getitem__ (self, path)
 getAsAIDA (self, path)
 getAsROOT (self, path)
Public Member Functions inherited from GaudiPython.Bindings.iDataSvc
 __init__ (self, name, idp)
 registerObject (self, path, obj)
 unregisterObject (self, path)
 retrieveObject (self, path)
 findObject (self, path)
 getObject (self, path, *args)
 __getitem__ (self, path)
 __setitem__ (self, path, obj)
 __delitem__ (self, path)
 leaves (self, node=cppyy.nullptr)
 dump (self, node=cppyy.nullptr)
 getList (self, node=cppyy.nullptr, lst=[], rootFID=None)
 getHistoNames (self, node=cppyy.nullptr, lst=[])
 setRoot (self, name, obj)
 selectOnlyStore (self)
 selectStore (self, n)
 clearStore (self)
Public Member Functions inherited from GaudiPython.Bindings.iService
 __init__ (self, name, isvc=cppyy.nullptr)
 retrieveInterface (self)
 initialize (self)
 start (self)
 stop (self)
 finalize (self)
 reinitialize (self)
 restart (self)
 isValid (self)
Public Member Functions inherited from GaudiPython.Bindings.iProperty
 __init__ (self, name, ip=cppyy.nullptr)
 getInterface (self)
 __call_interface_method__ (self, ifname, method, *args)
 __setattr__ (self, name, value)
 __getattr__ (self, name)
 properties (self)
 name (self)

Protected Attributes

 _ihs
Protected Attributes inherited from GaudiPython.Bindings.iDataSvc
 _idp
 _idm
 _ihwb
Protected Attributes inherited from GaudiPython.Bindings.iService
 _isvc
Protected Attributes inherited from GaudiPython.Bindings.iProperty
 _ip
 _svcloc
 _name

Detailed Description

Definition at line 712 of file Bindings.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 713 of file Bindings.py.

713 def __init__(self, name, ihs):
714 self.__dict__["_ihs"] = InterfaceCast(gbl.IHistogramSvc)(ihs)
715 iDataSvc.__init__(self, name, ihs)
716

Member Function Documentation

◆ __getitem__()

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

765 def __getitem__(self, path):
766 """
767 Retrieve the object from Histogram Transient Store (by path)
768 The reference to AIDA histogram is returned (if possible)
769 >>> svc = ...
770 >>> histo = svc['path/to/my/histogram']
771 """
772 h = self.retrieve(path)
773 if h:
774 return h
775 return iDataSvc.__getitem__(self, path)
776

◆ book()

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

Definition at line 749 of file Bindings.py.

749 def book(self, *args):
750 """
751 Book the histograms(1D,2D&3D) , see IHistogramSvc::book
752 >>> svc = ...
753 >>> histo = svc.book( .... )
754 """
755 return self._ihs.book(*args)
756

◆ bookProf()

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

Definition at line 757 of file Bindings.py.

757 def bookProf(self, *args):
758 """
759 Book the profile(1D&2D) histograms, see IHistogramSvc::bookProf
760 >>> svc = ...
761 >>> histo = svc.bookProf( .... )
762 """
763 return self._ihs.bookProf(*args)
764

◆ getAsAIDA()

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

777 def getAsAIDA(self, path):
778 """
779 Retrieve the histogram from Histogram Transient Store (by path)
780 The reference to AIDA histogram is returned (if possible)
781 >>> svc = ...
782 >>> histo = svc.getAsAIDA ( 'path/to/my/histogram' )
783 """
784 return self.__getitem__(path)
785

◆ getAsROOT()

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

786 def getAsROOT(self, path):
787 """
788 Retrieve the histogram from Histogram Transient Store (by path)
789 The Underlying native ROOT object is returned (if possible)
790 >>> svc = ...
791 >>> histo = svc.getAsROOT ( 'path/to/my/histogram' )
792 """
793 fun = gbl.Gaudi.Utils.Aida2ROOT.aida2root
794 return fun(self.getAsAIDA(path))
795
796
797# ----iNTupleSvc class---------------------------------------------------------
798
799

◆ retrieve()

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

732 def retrieve(self, path):
733 """
734 Retrieve AIDA histogram or AIDA profile histogram by path in Histogram Transient Store
735 >>> svc = ...
736 >>> histo = svc.retrieve ( 'path/to/my/histogram' )
737 """
738 h = self.retrieve1D(path)
739 if not h:
740 h = self.retrieve2D(path)
741 if not h:
742 h = self.retrieve3D(path)
743 if not h:
744 h = self.retrieveProfile1D(path)
745 if not h:
746 h = self.retrieveProfile2D(path)
747 return h
748

◆ retrieve1D()

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

Definition at line 717 of file Bindings.py.

717 def retrieve1D(self, path):
718 return Helper.histo1D(self._ihs, path)
719

◆ retrieve2D()

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

Definition at line 720 of file Bindings.py.

720 def retrieve2D(self, path):
721 return Helper.histo2D(self._ihs, path)
722

◆ retrieve3D()

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

Definition at line 723 of file Bindings.py.

723 def retrieve3D(self, path):
724 return Helper.histo3D(self._ihs, path)
725

◆ retrieveProfile1D()

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

Definition at line 726 of file Bindings.py.

726 def retrieveProfile1D(self, path):
727 return Helper.profile1D(self._ihs, path)
728

◆ retrieveProfile2D()

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

Definition at line 729 of file Bindings.py.

729 def retrieveProfile2D(self, path):
730 return Helper.profile2D(self._ihs, path)
731

Member Data Documentation

◆ _ihs

GaudiPython.Bindings.iHistogramSvc._ihs
protected

Definition at line 718 of file Bindings.py.


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