Gaudi Framework, version v21r8

Home   Generated: 17 Mar 2010

GaudiPython::HistoUtils Namespace Reference


Classes

class  HistoFile

Functions

def _getAppMgr
 Helper private auxiliary function to get Application Manager.
def _getHistoSvc
 Helper private auxiliary function to get iHistogramSvs.
def _getEvtSvc
 Helper private auxiliary function to get iDataSvs.
def book
 The trivial function to book the various 1D,2D&3D-histograms.
def bookProf
 The trivial function to book 1D&2D profile histograms:.
def getAsAIDA
 The most trivial function to retrieve the histogram from Histogram Transient Store.
def getAsROOT
 The most trivial function to retrieve the histogram from Histogram Transient Store.
def fill
 The function which allows 'the smart fill' of 1D-histogram.
def _to_root_
 Convert AIDA to ROOT.
def _moment_
 Evaluate 'bin-by-bin' momentum of certain order around the value.
def _momentErr_
 Evaluate error in 'bin-by-bin' momentum of certain order around the value.
def _centralMoment_
 Evaluate 'bin-by-bin' central momentum (around mean value).
def _centralMomentErr_
 Evaluate error in 'bin-by-bin' momentum of certain order around the value.
def _skewness_
 Evaluate 'bin-by-bin' skewness for 1D histogram.
def _skewnessErr_
 Evaluate error for 'bin-by-bin' skewness for 1D histogram.
def _kurtosis_
 Evaluate 'bin-by-bin' kurtosis for 1D histogram.
def _kurtosisErr_
 Evaluate error for 'bin-by-bin' kurtosis for 1D histogram.
def _nEff_
def _mean_
def _meanErr_
def _rms_
def _rmsErr_
def _sumBinHeightErr_
def _sumAllBinHeightErr_
def _overflowEntriesFrac_
def _overflowEntriesFracErr_
def _underflowEntriesFrac_
def _underflowEntriesFracErr_
def _overflowIntegralFrac_
def _overflowIntegralFracErr_
def _underflowIntegralFrac_
def _underflowIntegralFracErr_
def _nEntries_
 get number of entries in histogram up to the certain bin (not-included) get number of entries in histogram form the certain minimal bin up to the certain maximal bin (not-included)
def _nEntriesFrac_
def _nEntriesFracErr_
def _path_
 ============================================================================
def __dumpHisto__
 =============================================================================

Variables

string __author__ = "Vanya BELYAEV ibelyaev@physics.syr.edu"
 This module contains set of simple and useful utilities for booking and manipulations with Gaudi-AIDA histograms, inspired by Thomas' request.
tuple __all__
 HID = cpp.GaudiAlg.ID
 useROOT = False
 global flag
 aida2root = cpp.Gaudi.Utils.Aida2ROOT.aida2root
 AIDA -> ROOT converter.
 HistoStats = cpp.Gaudi.Utils.HistoStats
 i1DH = cpp.AIDA.IHistogram1D
 iBH = cpp.AIDA.IBaseHistogram
 histoDump = __dumpHisto__
 the actual function for text dump of the histogram
 dumpHisto = __dumpHisto__


Function Documentation

def GaudiPython::HistoUtils::__dumpHisto__ (   histo,
  args 
)

=============================================================================


Dump the histogram/profile in text format (a'la HBOOK)

>>> histo
>>> print dumpHisto ( histo )

>>> print histo.dump()
>>> print histo.dump( 20 , 20 )
>>> print histo.dump( 20 , 20 , True )

Uses:

Definition at line 778 of file HistoUtils.py.

00778                                     :
00779     """
00780 
00781     Dump the histogram/profile in text format (a'la HBOOK)
00782 
00783     >>> histo
00784     >>> print dumpHisto ( histo )
00785 
00786     >>> print histo.dump()
00787     >>> print histo.dump( 20 , 20 )
00788     >>> print histo.dump( 20 , 20 , True )
00789 
00790     Uses:
00791 
00792     """
00793     return cpp.Gaudi.Utils.Histos.histoDump ( histo , *args )
00794 
__dumpHisto__ .__doc__ = '\n'  + cpp.Gaudi.Utils.Histos.histoDump . __doc__

def GaudiPython::HistoUtils::_centralMoment_ (   self,
  order 
) [private]

Evaluate 'bin-by-bin' central momentum (around mean value).

Evaluate 'bin-by-bin' central momentum (around mean value)
for 1D histogram

>>> h1 = ...
>>> print h1.centralMoment ( 5 )

Definition at line 502 of file HistoUtils.py.

00502                                      :
00503     """
00504     Evaluate 'bin-by-bin' central momentum (around mean value)
00505     for 1D histogram
00506 
00507     >>> h1 = ...
00508     >>> print h1.centralMoment ( 5 )
00509 
00510     """
00511     return HistoStats.centralMoment ( self , order )
00512 
00513 # =============================================================================
## Evaluate error in 'bin-by-bin' momentum of certain order around the value

def GaudiPython::HistoUtils::_centralMomentErr_ (   self,
  order 
) [private]

Evaluate error in 'bin-by-bin' momentum of certain order around the value.

Evaluate error for 'bin-by-bin' central momentum (around mean value)
for 1D histogram

>>> h1 = ...
>>> print h1.centralMomentErr ( 5 )

Definition at line 515 of file HistoUtils.py.

00515                                         :
00516     """
00517     Evaluate error for 'bin-by-bin' central momentum (around mean value)
00518     for 1D histogram
00519 
00520     >>> h1 = ...
00521     >>> print h1.centralMomentErr ( 5 )
00522 
00523     """
00524     return HistoStats.centralMomentErr ( self , order )
00525 
00526 # =============================================================================
## Evaluate 'bin-by-bin' skewness for 1D histogram

def GaudiPython::HistoUtils::_getAppMgr (   kwargs  )  [private]

Helper private auxiliary function to get Application Manager.

Helper private auxiliary function to get Application Manager

Definition at line 54 of file HistoUtils.py.

00054                                :
00055     """
00056     Helper private auxiliary function to get Application Manager
00057     """
00058     gaudi = kwargs.get ( 'gaudi' , None )
00059     if not gaudi : gaudi = AppMgr()
00060     if not gaudi : raise RuntimeError, 'Unable to get valid ApplicationMgr'
00061 
00062     state = gaudi._isvc.FSMState() 
00063     if state < cpp.Gaudi.StateMachine.CONFIGURED  : gaudi.config     () 
00064     state = gaudi._isvc.FSMState()    
00065     if state < cpp.Gaudi.StateMachine.INITIALIZED : gaudi.initialize ()
00066     
00067     return gaudi                                               ## RETURN
00068 
00069 # =============================================================================
## Helper private auxiliary function to get iHistogramSvs

def GaudiPython::HistoUtils::_getEvtSvc (   kwargs  )  [private]

Helper private auxiliary function to get iDataSvs.

Helper private auxiliary function to get iDataSvs

Definition at line 83 of file HistoUtils.py.

00083                             :
00084     """
00085     Helper private auxiliary function to get iDataSvs
00086     """
00087     svc = kwargs.get ( 'service' , None )
00088     if not svc : svc = kwargs.get ( 'svc' , None )
00089     else       : return svc                                    ## RETURN
00090     gaudi = _getAppMgr ( **kwargs )
00091     return gaudi.evtsvc()                                      ## RETURN
00092 
00093 # =============================================================================
## The trivial function to book the various 1D,2D&3D-histograms

def GaudiPython::HistoUtils::_getHistoSvc (   kwargs  )  [private]

Helper private auxiliary function to get iHistogramSvs.

Helper private auxiliary function to get iHistogramSvs

Definition at line 71 of file HistoUtils.py.

00071                               :
00072     """
00073     Helper private auxiliary function to get iHistogramSvs
00074     """
00075     svc = kwargs.get ( 'service' , None )
00076     if not svc : svc = kwargs.get ( 'svc' , None )
00077     else       : return svc                                    ## RETURN
00078     gaudi = _getAppMgr ( **kwargs )
00079     return gaudi.histsvc ()                                    ## RETURN
00080 
00081 # =============================================================================
## Helper private auxiliary function to get iDataSvs

def GaudiPython::HistoUtils::_kurtosis_ (   self  )  [private]

Evaluate 'bin-by-bin' kurtosis for 1D histogram.

Evaluate 'bin-by-bin' kurtosis

>>> h1 = ...
>>> print h1.kurtosis ()

Definition at line 552 of file HistoUtils.py.

00552                         :
00553     """
00554     Evaluate 'bin-by-bin' kurtosis
00555 
00556     >>> h1 = ...
00557     >>> print h1.kurtosis ()
00558 
00559     """
00560     return HistoStats.kurtosis ( self )
00561 
00562 # =============================================================================
## Evaluate error for 'bin-by-bin' kurtosis for 1D histogram

def GaudiPython::HistoUtils::_kurtosisErr_ (   self  )  [private]

Evaluate error for 'bin-by-bin' kurtosis for 1D histogram.

Evaluate error for 'bin-by-bin' kurtotis for 1D AIDA histogram

>>> h1 = ...
>>> print h1.kurtotisErr()

Definition at line 564 of file HistoUtils.py.

00564                            :
00565     """
00566     Evaluate error for 'bin-by-bin' kurtotis for 1D AIDA histogram
00567 
00568     >>> h1 = ...
00569     >>> print h1.kurtotisErr()
00570 
00571     """
00572     return HistoStats.kurtosisErr ( self )
00573 
00574 # =============================================================================
def _nEff_    ( self ) :

def GaudiPython::HistoUtils::_mean_ (   self  )  [private]

Evaluate the MEAN value

Definition at line 581 of file HistoUtils.py.

00581                        :
00582     """
00583     Evaluate the MEAN value
00584     """
00585     return HistoStats.mean ( self )
00586 # =============================================================================
def _meanErr_ ( self ) :

def GaudiPython::HistoUtils::_meanErr_ (   self  )  [private]

Evaluate the error for MEAN estimate 

Definition at line 587 of file HistoUtils.py.

00587                        :
00588     """
00589     Evaluate the error for MEAN estimate 
00590     """
00591     return HistoStats.meanErr ( self )
00592 
00593 # =============================================================================
def _rms_    ( self ) :

def GaudiPython::HistoUtils::_moment_ (   self,
  order,
  value = 0 
) [private]

Evaluate 'bin-by-bin' momentum of certain order around the value.

Evaluate 'bin-by-bin' momentum of order 'order' around the value 'value'
for 1D histogram

>>> h1 = ...
>>> print h1.moment ( 5 )

Definition at line 477 of file HistoUtils.py.

00477                                           :
00478     """
00479     Evaluate 'bin-by-bin' momentum of order 'order' around the value 'value'
00480     for 1D histogram
00481 
00482     >>> h1 = ...
00483     >>> print h1.moment ( 5 )
00484 
00485     """
00486     return HistoStats.moment ( self , order , value )
00487 
00488 # =============================================================================
## Evaluate error in 'bin-by-bin' momentum of certain order around the value

def GaudiPython::HistoUtils::_momentErr_ (   self,
  order 
) [private]

Evaluate error in 'bin-by-bin' momentum of certain order around the value.

Evaluate error for 'bin-by-bin' momentum of order 'order' around the value 'value'
for 1D histogram

>>> h1 = ...
>>> print h1.momentErr ( 5 )

Definition at line 490 of file HistoUtils.py.

00490                                  :
00491     """
00492     Evaluate error for 'bin-by-bin' momentum of order 'order' around the value 'value'
00493     for 1D histogram
00494 
00495     >>> h1 = ...
00496     >>> print h1.momentErr ( 5 )
00497 
00498     """
00499     return HistoStats.momentErr ( self , order )
00500 # =============================================================================
## Evaluate 'bin-by-bin' central momentum (around mean value)

def GaudiPython::HistoUtils::_nEff_ (   self  )  [private]

Number of equivalent entries

Definition at line 575 of file HistoUtils.py.

00575                        :
00576     """
00577     Number of equivalent entries
00578     """
00579     return HistoStats.nEff ( self )
00580 # =============================================================================
def _mean_    ( self ) :

def GaudiPython::HistoUtils::_nEntries_ (   self,
  i1,
  i2 = -10000000 
) [private]

get number of entries in histogram up to the certain bin (not-included) get number of entries in histogram form the certain minimal bin up to the certain maximal bin (not-included)

Get number of entries in histogram up to  the certain bin (not-included)

attention: underflow bin is included!

>>> h1
>>> print h1.nEntries ( 10 )

Get number of entries in histogram form the certain
minimal bin up to the certain maximal bin (not-included)

>>> h1
>>> print h1.nEntries ( 10 , 15 )

Definition at line 672 of file HistoUtils.py.

00672                                               :
00673     """
00674     Get number of entries in histogram up to  the certain bin (not-included)
00675 
00676     attention: underflow bin is included!
00677 
00678     >>> h1
00679     >>> print h1.nEntries ( 10 )
00680 
00681     Get number of entries in histogram form the certain
00682     minimal bin up to the certain maximal bin (not-included)
00683 
00684     >>> h1
00685     >>> print h1.nEntries ( 10 , 15 )
00686 
00687     """
00688     if  i2 < i1 or i2 < 0 : return HistoStats.nEntries ( self , i1 )
00689     return HistoStats.nEntries ( self , i1 , i2 )
00690 # =============================================================================
def _nEntriesFrac_ ( self , i1 , i2 = -10000000 ) :

def GaudiPython::HistoUtils::_nEntriesFrac_ (   self,
  i1,
  i2 = -10000000 
) [private]

Get the fraction of entries in histogram up to  the certain bin (not-included)

attention: underflow bin is included!

>>> h1
>>> print h1.nEntriesFrac ( 10 )

Get the fraction of entries in histogram form the certain
minimal bin up to the certain maximal bin (not-included)

>>> h1
>>> print h1.nEntriesFrac ( 10 , 15 )

Definition at line 691 of file HistoUtils.py.

00691                                                   :
00692     """
00693     Get the fraction of entries in histogram up to  the certain bin (not-included)
00694 
00695     attention: underflow bin is included!
00696 
00697     >>> h1
00698     >>> print h1.nEntriesFrac ( 10 )
00699 
00700     Get the fraction of entries in histogram form the certain
00701     minimal bin up to the certain maximal bin (not-included)
00702 
00703     >>> h1
00704     >>> print h1.nEntriesFrac ( 10 , 15 )
00705 
00706     """
00707     if  i2 < i1 or i2 < 0 : return HistoStats.nEntriesFrac ( self , i1 )
00708     return HistoStats.nEntriesFrac ( self , i1 , i2 )
00709 # =============================================================================
def _nEntriesFracErr_ ( self , i1 , i2 = -10000000 ) :

def GaudiPython::HistoUtils::_nEntriesFracErr_ (   self,
  i1,
  i2 = -10000000 
) [private]

Get error for  fraction of entries in histogram up to  the certain bin (not-included)

attention: underflow bin is included!

>>> h1
>>> print h1.nEntriesFracErr( 10 )

Get error  fraction of entries in histogram form the certain
minimal bin up to the certain maximal bin (not-included)

>>> h1
>>> print h1.nEntriesFracErr ( 10 , 15 )

Definition at line 710 of file HistoUtils.py.

00710                                                      :
00711     """
00712     Get error for  fraction of entries in histogram up to  the certain bin (not-included)
00713 
00714     attention: underflow bin is included!
00715 
00716     >>> h1
00717     >>> print h1.nEntriesFracErr( 10 )
00718 
00719     Get error  fraction of entries in histogram form the certain
00720     minimal bin up to the certain maximal bin (not-included)
00721 
00722     >>> h1
00723     >>> print h1.nEntriesFracErr ( 10 , 15 )
00724 
00725     """
00726     if  i2 < i1 or i2 < 0 : return HistoStats.nEntriesFracErr ( self , i1 )
00727     return HistoStats.nEntriesFracErr ( self , i1 , i2 )
00728 
00729 # =============================================================================
i1DH = cpp.AIDA.IHistogram1D

def GaudiPython::HistoUtils::_overflowEntriesFrac_ (   self  )  [private]

The fraction of overflow entries  (useful for shape comparison)

Definition at line 619 of file HistoUtils.py.

00619                                        :
00620     """
00621     The fraction of overflow entries  (useful for shape comparison)
00622     """
00623     return HistoStats.overflowEntriesFrac     ( self )
00624 # =============================================================================
def _overflowEntriesFracErr_  ( self ) :

def GaudiPython::HistoUtils::_overflowEntriesFracErr_ (   self  )  [private]

The error for fraction of overflow entries  (useful for shape comparison)

Definition at line 625 of file HistoUtils.py.

00625                                        :
00626     """
00627     The error for fraction of overflow entries  (useful for shape comparison)
00628     """
00629     return HistoStats.overflowEntriesFracErr  ( self )
00630 # =============================================================================
def _underflowEntriesFrac_    ( self ) :

def GaudiPython::HistoUtils::_overflowIntegralFrac_ (   self  )  [private]

The fraction of overflow integral  (useful for shape comparison)

Definition at line 644 of file HistoUtils.py.

00644                                         :
00645     """
00646     The fraction of overflow integral  (useful for shape comparison)
00647     """
00648     return HistoStats.overflowIntegralFrac     ( self )
00649 # =============================================================================
def _overflowIntegralFracErr_  ( self ) :

def GaudiPython::HistoUtils::_overflowIntegralFracErr_ (   self  )  [private]

The error for fraction of overflow integral  (useful for shape comparison)

Definition at line 650 of file HistoUtils.py.

00650                                         :
00651     """
00652     The error for fraction of overflow integral  (useful for shape comparison)
00653     """
00654     return HistoStats.overflowIntegralFracErr  ( self )
00655 # =============================================================================
def _underflowIntegralFrac_    ( self ) :

def GaudiPython::HistoUtils::_path_ (   self  )  [private]

============================================================================

Get the path in THS for the given AIDA object:

>>> aida =
>>> print aida.path()

Definition at line 761 of file HistoUtils.py.

00761                     :
00762     """
00763     Get the path in THS for the given AIDA object:
00764 
00765     >>> aida =
00766     >>> print aida.path()
00767 
00768     """
00769     return cpp.Gaudi.Utils.Histos.path ( self )
00770 
iBH = cpp.AIDA.IBaseHistogram

def GaudiPython::HistoUtils::_rms_ (   self  )  [private]

Evaluate the RMS for AIDA histogram 

Definition at line 594 of file HistoUtils.py.

00594                       :
00595     """
00596     Evaluate the RMS for AIDA histogram 
00597     """
00598     return HistoStats.rms ( self )
00599 # =============================================================================
def _rmsErr_ ( self ) :

def GaudiPython::HistoUtils::_rmsErr_ (   self  )  [private]

Evaluate the error for RMS estimate

Definition at line 600 of file HistoUtils.py.

00600                       :
00601     """
00602     Evaluate the error for RMS estimate
00603     """
00604     return HistoStats.rmsErr ( self )
00605 
00606 # =============================================================================
def _sumBinHeightErr_    ( self ) :

def GaudiPython::HistoUtils::_skewness_ (   self  )  [private]

Evaluate 'bin-by-bin' skewness for 1D histogram.

Evaluate 'bin-by-bin' skewness for 1D AIDA histogram

>>> h1 = ...
>>> print h1.skewness()

Definition at line 528 of file HistoUtils.py.

00528                         :
00529     """
00530     Evaluate 'bin-by-bin' skewness for 1D AIDA histogram
00531 
00532     >>> h1 = ...
00533     >>> print h1.skewness()
00534 
00535     """
00536     return HistoStats.skewness ( self )
00537 
00538 # =============================================================================
## Evaluate error for 'bin-by-bin' skewness for 1D histogram

def GaudiPython::HistoUtils::_skewnessErr_ (   self  )  [private]

Evaluate error for 'bin-by-bin' skewness for 1D histogram.

Evaluate error for 'bin-by-bin' skewness 

>>> h1 = ...
>>> print h1.skewnessErr()

Definition at line 540 of file HistoUtils.py.

00540                            :
00541     """
00542     Evaluate error for 'bin-by-bin' skewness 
00543 
00544     >>> h1 = ...
00545     >>> print h1.skewnessErr()
00546 
00547     """
00548     return HistoStats.skewnessErr ( self )
00549 
00550 # =============================================================================
## Evaluate 'bin-by-bin' kurtosis for 1D histogram

def GaudiPython::HistoUtils::_sumAllBinHeightErr_ (   self  )  [private]

Get an error in the sum bin height ('in-range integral') 

Definition at line 614 of file HistoUtils.py.

00614                                   :
00615     """ Get an error in the sum bin height ('in-range integral') """
00616     return HistoStats.sumAllBinHeightErr ( self )
00617 
00618 # =============================================================================
def _overflowEntriesFrac_     ( self ) :

def GaudiPython::HistoUtils::_sumBinHeightErr_ (   self  )  [private]

Get an error in the sum bin height ('in-range integral') 

Definition at line 607 of file HistoUtils.py.

00607                                   :
00608     """
00609     Get an error in the sum bin height ('in-range integral') 
00610     """
00611     return HistoStats.sumBinHeightErr ( self )
00612 
00613 # =============================================================================
def _sumAllBinHeightErr_ ( self ) :

def GaudiPython::HistoUtils::_to_root_ (   self  )  [private]

Convert AIDA to ROOT.

Convert AIDA to ROOT

>>> aida = ...            ## get AIDA histogram
>>> root = aida.toROOT()  ## convert it to ROOT

Definition at line 445 of file HistoUtils.py.

00445                        :
00446     """
00447     Convert AIDA to ROOT
00448 
00449     >>> aida = ...            ## get AIDA histogram
00450     >>> root = aida.toROOT()  ## convert it to ROOT
00451 
00452     """
00453     return aida2root ( self )
00454 
_to_root_ . __doc__  += aida2root . __doc__

def GaudiPython::HistoUtils::_underflowEntriesFrac_ (   self  )  [private]

The fraction of underflow entries  (useful for shape comparison)

Definition at line 631 of file HistoUtils.py.

00631                                        :
00632     """
00633     The fraction of underflow entries  (useful for shape comparison)
00634     """
00635     return HistoStats.underflowEntriesFrac    ( self )
00636 # =============================================================================
def _underflowEntriesFracErr_ ( self ) :

def GaudiPython::HistoUtils::_underflowEntriesFracErr_ (   self  )  [private]

The error for fraction of underflow entries  (useful for shape comparison)

Definition at line 637 of file HistoUtils.py.

00637                                        :
00638     """
00639     The error for fraction of underflow entries  (useful for shape comparison)
00640     """
00641     return HistoStats.underflowEntriesFracErr ( self )
00642 
00643 # =============================================================================
def _overflowIntegralFrac_     ( self ) :

def GaudiPython::HistoUtils::_underflowIntegralFrac_ (   self  )  [private]

The fraction of underflow integral  (useful for shape comparison)

Definition at line 656 of file HistoUtils.py.

00656                                         :
00657     """
00658     The fraction of underflow integral  (useful for shape comparison)
00659     """
00660     return HistoStats.underflowIntegralFrac    ( self )
00661 # =============================================================================
def _underflowIntegralFracErr_ ( self ) :

def GaudiPython::HistoUtils::_underflowIntegralFracErr_ (   self  )  [private]

The error for fraction of underflow integral (useful for shape comparison)

Definition at line 662 of file HistoUtils.py.

00662                                         :
00663     """
00664     The error for fraction of underflow integral (useful for shape comparison)
00665     """
00666     return HistoStats.underflowIntegralFracErr ( self )
00667 
00668 # =============================================================================
## get number of entries in histogram up to  the certain bin (not-included)

def GaudiPython::HistoUtils::book (   args,
  kwargs 
)

The trivial function to book the various 1D,2D&3D-histograms.

The trivial function to book the various 1D,2D&3D-histograms

(1) book the trivial 1D histogram with full path

>>> h1D = book ( 'path/to/my/histo'       , ## path in Histogram Transient Store
                 'cosine of decay angle ' , ## histogram title
                  100                     , ## number of bins
                  -1                      , ## low edge
                  100                     ) ## high edge

(2) book the trivial 1D histogram with directory path and string ID :

>>> h1D = book ( 'path/to/directory'      , ## the path to directory in HTS
                 'H1'                     , ## string histogram identifier
                 'cosine of decay angle ' , ## histogram title
                  100                     , ## number of bins
                  -1                      , ## low edge
                  100                     ) ## high edge

(3) book the trivial 1D histogram with directory path and integer ID :

>>> h1D = book ( 'path/to/directory'      , ## the path to directory in HTS
                 124                      , ## integer histogram identifier
                 'cosine of decay angle ' , ## histogram title
                  100                     , ## number of bins
                  -1                      , ## low edge
                  100                     ) ## high edge

(4) book the trivial 2D histogram with full path

>>> h1D = book ( 'path/to/my/histo'       , ## path in Histogram Transient Store
                 'm12**2 versus m13**2'   , ## histogram title
                  50                      , ## number of X-bins
                  1.0                     , ## low X-edge
                  4.0                     , ## high X-edge
                  50                      , ## number of Y-bins
                  1                       , ## low Y-edge
                  2                       ) ## high Y-edge

(5) book the trivial 2D histogram with directory path and literal ID

>>> h1D = book ( 'path/to/directory'      , ## path in Histogram Transient Store
                 'Dalitz1'                , ## literal histogram identifier
                 'm12**2 versus m13**2'   , ## histogram title
                  50                      , ## number of X-bins
                  1.0                     , ## low X-edge
                  4.0                     , ## high X-edge
                  50                      , ## number of Y-bins
                  1                       , ## low Y-edge
                  2                       ) ## high Y-edge

(6) book the trivial 2D histogram with directory path and integer ID

>>> h1D = book ( 'path/to/directory'      , ## path in Histogram Transient Store
                 854                      , ## integer histogram identifier
                 'm12**2 versus m13**2'   , ## histogram title
                  50                      , ## number of X-bins
                  1.0                     , ## low X-edge
                  4.0                     , ## high X-edge
                  50                      , ## number of Y-bins
                  1.0                     , ## low Y-edge
                  4.0                     ) ## high Y-edge

(7) book the trivial 3D histogram with full path

>>> h1D = book ( 'path/to/my/histo'       , ## path in Histogram Transient Store
                 'x vs y vs z '           , ## histogram title
                  10                      , ## number of X-bins
                  -1.0                    , ## low X-edge
                  1.0                     , ## high X-edge
                  10                      , ## number of Y-bins
                  -1.0                    , ## low Y-edge
                  1.0                     , ## high Y-edge
                  10                      , ## number of Z-bins
                  -1.0                    , ## low Z-edge
                  1.0                     ) ## high Z-edge

(8) book the trivial 3D histogram with directory path and literal ID

>>> h1D = book ( 'path/to/directory'      , ## path in Histogram Transient Store
                 'xyz'                    , ## literal histogram identifier
                 'x vs y vs z'            , ## histogram title
                  10                      , ## number of X-bins
                  -1.0                    , ## low X-edge
                  1.0                     , ## high X-edge
                  10                      , ## number of Y-bins
                  -1.0                    , ## low Y-edge
                  1.0                     , ## high Y-edge
                  10                      , ## number of Z-bins
                  -1.0                    , ## low Z-edge
                  1.0                     ) ## high Z-edge

(9) book the trivial 3D histogram with directory path and integer ID

>>> h1D = book ( 'path/to/directory'      , ## path in Histogram Transient Store
                 888                      , ## integer histogram identifier
                 'x vs y vs z'            , ## histogram title
                  10                      , ## number of X-bins
                  -1.0                    , ## low X-edge
                  1.0                     , ## high X-edge
                  10                      , ## number of Y-bins
                  -1.0                    , ## low Y-edge
                  1.0                     , ## high Y-edge
                  10                      , ## number of Z-bins
                  -1.0                    , ## low Z-edge
                  1.0                     ) ## high Z-edge

Many other booking methods are available,
e.g. for the histograms with non-equidistant bins, see IHistogamSvc::book

Definition at line 95 of file HistoUtils.py.

00095                               :
00096     """
00097     The trivial function to book the various 1D,2D&3D-histograms
00098 
00099     (1) book the trivial 1D histogram with full path
00100 
00101     >>> h1D = book ( 'path/to/my/histo'       , ## path in Histogram Transient Store
00102                      'cosine of decay angle ' , ## histogram title
00103                       100                     , ## number of bins
00104                       -1                      , ## low edge
00105                       100                     ) ## high edge
00106 
00107     (2) book the trivial 1D histogram with directory path and string ID :
00108 
00109     >>> h1D = book ( 'path/to/directory'      , ## the path to directory in HTS
00110                      'H1'                     , ## string histogram identifier
00111                      'cosine of decay angle ' , ## histogram title
00112                       100                     , ## number of bins
00113                       -1                      , ## low edge
00114                       100                     ) ## high edge
00115 
00116     (3) book the trivial 1D histogram with directory path and integer ID :
00117 
00118     >>> h1D = book ( 'path/to/directory'      , ## the path to directory in HTS
00119                      124                      , ## integer histogram identifier
00120                      'cosine of decay angle ' , ## histogram title
00121                       100                     , ## number of bins
00122                       -1                      , ## low edge
00123                       100                     ) ## high edge
00124 
00125     (4) book the trivial 2D histogram with full path
00126 
00127     >>> h1D = book ( 'path/to/my/histo'       , ## path in Histogram Transient Store
00128                      'm12**2 versus m13**2'   , ## histogram title
00129                       50                      , ## number of X-bins
00130                       1.0                     , ## low X-edge
00131                       4.0                     , ## high X-edge
00132                       50                      , ## number of Y-bins
00133                       1                       , ## low Y-edge
00134                       2                       ) ## high Y-edge
00135 
00136     (5) book the trivial 2D histogram with directory path and literal ID
00137 
00138     >>> h1D = book ( 'path/to/directory'      , ## path in Histogram Transient Store
00139                      'Dalitz1'                , ## literal histogram identifier
00140                      'm12**2 versus m13**2'   , ## histogram title
00141                       50                      , ## number of X-bins
00142                       1.0                     , ## low X-edge
00143                       4.0                     , ## high X-edge
00144                       50                      , ## number of Y-bins
00145                       1                       , ## low Y-edge
00146                       2                       ) ## high Y-edge
00147 
00148     (6) book the trivial 2D histogram with directory path and integer ID
00149 
00150     >>> h1D = book ( 'path/to/directory'      , ## path in Histogram Transient Store
00151                      854                      , ## integer histogram identifier
00152                      'm12**2 versus m13**2'   , ## histogram title
00153                       50                      , ## number of X-bins
00154                       1.0                     , ## low X-edge
00155                       4.0                     , ## high X-edge
00156                       50                      , ## number of Y-bins
00157                       1.0                     , ## low Y-edge
00158                       4.0                     ) ## high Y-edge
00159 
00160     (7) book the trivial 3D histogram with full path
00161 
00162     >>> h1D = book ( 'path/to/my/histo'       , ## path in Histogram Transient Store
00163                      'x vs y vs z '           , ## histogram title
00164                       10                      , ## number of X-bins
00165                       -1.0                    , ## low X-edge
00166                       1.0                     , ## high X-edge
00167                       10                      , ## number of Y-bins
00168                       -1.0                    , ## low Y-edge
00169                       1.0                     , ## high Y-edge
00170                       10                      , ## number of Z-bins
00171                       -1.0                    , ## low Z-edge
00172                       1.0                     ) ## high Z-edge
00173 
00174     (8) book the trivial 3D histogram with directory path and literal ID
00175 
00176     >>> h1D = book ( 'path/to/directory'      , ## path in Histogram Transient Store
00177                      'xyz'                    , ## literal histogram identifier
00178                      'x vs y vs z'            , ## histogram title
00179                       10                      , ## number of X-bins
00180                       -1.0                    , ## low X-edge
00181                       1.0                     , ## high X-edge
00182                       10                      , ## number of Y-bins
00183                       -1.0                    , ## low Y-edge
00184                       1.0                     , ## high Y-edge
00185                       10                      , ## number of Z-bins
00186                       -1.0                    , ## low Z-edge
00187                       1.0                     ) ## high Z-edge
00188 
00189     (9) book the trivial 3D histogram with directory path and integer ID
00190 
00191     >>> h1D = book ( 'path/to/directory'      , ## path in Histogram Transient Store
00192                      888                      , ## integer histogram identifier
00193                      'x vs y vs z'            , ## histogram title
00194                       10                      , ## number of X-bins
00195                       -1.0                    , ## low X-edge
00196                       1.0                     , ## high X-edge
00197                       10                      , ## number of Y-bins
00198                       -1.0                    , ## low Y-edge
00199                       1.0                     , ## high Y-edge
00200                       10                      , ## number of Z-bins
00201                       -1.0                    , ## low Z-edge
00202                       1.0                     ) ## high Z-edge
00203 
00204     Many other booking methods are available,
00205     e.g. for the histograms with non-equidistant bins, see IHistogamSvc::book
00206 
00207     """
00208     if useROOT or kwargs.get( 'useROOT' , False ) or not kwargs.get('useAIDA' , True ) :
00209         from ROOT import TH1D 
00210         a0 = args[0]
00211         a1 = args[1]
00212         a2 = args[2]
00213         if not str is type(a1) :
00214             a1 = 'h'+str(a1)
00215         if     str is type(a2) :
00216             return TH1D ( a0+a1 , a2 , *args[3:] )
00217         else :
00218             return TH1D ( a0    , a1 , *args[2:] )
00219         
00220     svc = _getHistoSvc ( **kwargs )
00221     if not svc : raise RuntimeError, 'Unable to get valid HistogramService '
00222     ## book the histogram using the service
00223     return svc.book(*args)                                          ## RETURN
00224 
00225 book.__doc__ += '\n\n' + '\thelp(iHistogramSvc.book) : \n\n' \
00226                 + iHistogramSvc.book       . __doc__
00227 book.__doc__ += '\n\n' + '\thelp(IHistogramSvc::book) : \n\n'            \
00228                 + cpp.IHistogramSvc.book . __doc__
00229 
00230 # =============================================================================
## The trivial function to book 1D&2D profile histograms:

def GaudiPython::HistoUtils::bookProf (   args,
  kwargs 
)

The trivial function to book 1D&2D profile histograms:.


The trivial function to book 1D&2D profile histograms:

(1) book 1D-profile histogram with full path in Histogram Transient Store:
>>> histo = bookProf ( 'path/to/my/profile'  , ## path in Histogram Transient Store
                       'Energy Correction'   , ## the histogram title
                       100                   , ## number of X-bins
                       0.0                   , ## low X-edge
                       100                   ) ## high X-edge

(2) book 1D-profile histogram with directory path and literal ID
>>> histo = bookProf ( 'path/to/my/profile'  , ## path in Histogram Transient Store
                       'Calibration'         , ## the histogram literal identifier
                       'Energy Correction'   , ## the histogram title
                       100                   , ## number of X-bins
                       0.0                   , ## low X-edge
                       100                   ) ## high X-edge

(3) book 1D-profile histogram with directory path and integer  ID
>>> histo = bookProf ( 'path/to/my/profile'  , ## path in Histogram Transient Store
                       418                   , ## the histogram integer identifier
                       'Energy Correction'   , ## the histogram title
                       100                   , ## number of X-bins
                       0.0                   , ## low X-edge
                       100                   ) ## high X-edge

(4) book 2D-profile histogram with full path in Histogram Transient Store:
>>> histo = bookProf ( 'path/to/my/profile'  , ## path in Histogram Transient Store
                       'Energy Correction'   , ## the histogram title
                       50                    , ## number of X-bins
                       0.0                   , ## low X-edge
                       100                   , ## high X-edge
                       50                    , ## number of Y-bins
                       0.0                   , ## low Y-edge
                       100                   ) ## high Y-edge

(5) book 2D-profile histogram with directory path and literal ID
>>> histo = bookProf ( 'path/to/my/profile'  , ## path in Histogram Transient Store
                       'Calibration'         , ## the histogram literal identifier
                       'Energy Correction'   , ## the histogram title
                       50                    , ## number of X-bins
                       0.0                   , ## low X-edge
                       100                   , ## high X-edge
                       50                    , ## number of Y-bins
                       0.0                   , ## low Y-edge
                       100                   ) ## high Y-edge

(6) book 2D-profile histogram with directory path and integer  ID
>>> histo = bookProf ( 'path/to/my/profile'  , ## path in Histogram Transient Store
                       418                   , ## the histogram integer identifier
                       'Energy Correction'   , ## the histogram title
                       50                    , ## number of X-bins
                       0.0                   , ## low X-edge
                       100                   , ## high X-edge
                       50                    , ## number of Y-bins
                       0.0                   , ## low Y-edge
                       100                   ) ## high Y-edge

Many other booking methods are available,
e.g. for the histograms with non-equidistant bins, see IHistogamSvc::book

Definition at line 232 of file HistoUtils.py.

00232                                   :
00233     """
00234 
00235     The trivial function to book 1D&2D profile histograms:
00236 
00237     (1) book 1D-profile histogram with full path in Histogram Transient Store:
00238     >>> histo = bookProf ( 'path/to/my/profile'  , ## path in Histogram Transient Store
00239                            'Energy Correction'   , ## the histogram title
00240                            100                   , ## number of X-bins
00241                            0.0                   , ## low X-edge
00242                            100                   ) ## high X-edge
00243 
00244     (2) book 1D-profile histogram with directory path and literal ID
00245     >>> histo = bookProf ( 'path/to/my/profile'  , ## path in Histogram Transient Store
00246                            'Calibration'         , ## the histogram literal identifier
00247                            'Energy Correction'   , ## the histogram title
00248                            100                   , ## number of X-bins
00249                            0.0                   , ## low X-edge
00250                            100                   ) ## high X-edge
00251 
00252     (3) book 1D-profile histogram with directory path and integer  ID
00253     >>> histo = bookProf ( 'path/to/my/profile'  , ## path in Histogram Transient Store
00254                            418                   , ## the histogram integer identifier
00255                            'Energy Correction'   , ## the histogram title
00256                            100                   , ## number of X-bins
00257                            0.0                   , ## low X-edge
00258                            100                   ) ## high X-edge
00259 
00260     (4) book 2D-profile histogram with full path in Histogram Transient Store:
00261     >>> histo = bookProf ( 'path/to/my/profile'  , ## path in Histogram Transient Store
00262                            'Energy Correction'   , ## the histogram title
00263                            50                    , ## number of X-bins
00264                            0.0                   , ## low X-edge
00265                            100                   , ## high X-edge
00266                            50                    , ## number of Y-bins
00267                            0.0                   , ## low Y-edge
00268                            100                   ) ## high Y-edge
00269 
00270     (5) book 2D-profile histogram with directory path and literal ID
00271     >>> histo = bookProf ( 'path/to/my/profile'  , ## path in Histogram Transient Store
00272                            'Calibration'         , ## the histogram literal identifier
00273                            'Energy Correction'   , ## the histogram title
00274                            50                    , ## number of X-bins
00275                            0.0                   , ## low X-edge
00276                            100                   , ## high X-edge
00277                            50                    , ## number of Y-bins
00278                            0.0                   , ## low Y-edge
00279                            100                   ) ## high Y-edge
00280 
00281     (6) book 2D-profile histogram with directory path and integer  ID
00282     >>> histo = bookProf ( 'path/to/my/profile'  , ## path in Histogram Transient Store
00283                            418                   , ## the histogram integer identifier
00284                            'Energy Correction'   , ## the histogram title
00285                            50                    , ## number of X-bins
00286                            0.0                   , ## low X-edge
00287                            100                   , ## high X-edge
00288                            50                    , ## number of Y-bins
00289                            0.0                   , ## low Y-edge
00290                            100                   ) ## high Y-edge
00291 
00292     Many other booking methods are available,
00293     e.g. for the histograms with non-equidistant bins, see IHistogamSvc::book
00294 
00295     """
00296     svc = _getHistoSvc ( **kwargs )
00297     if not svc : raise RuntimeError, 'Unable to get valid HistogramService '
00298     ## book the histogram using the service
00299     return svc.bookProf(*args)                                      ## RETURN
00300 
00301 
00302 bookProf.__doc__ += '\n\n' + '\thelp(iHistogramSvc.bookProf) : \n\n' \
00303                     + iHistogramSvc.bookProf . __doc__
00304 bookProf.__doc__ += '\n\n' + '\thelp(IHistogramSvc::bookProf) : \n\n'             \
00305                     + cpp.IHistogramSvc.bookProf . __doc__
00306 
00307 # =============================================================================
## The most trivial function to retrieve the histogram from Histogram Transient Store

def GaudiPython::HistoUtils::fill (   histo,
  data,
  fun = lambda x : x,
  cut = lambda x : True,
  kwargs 
)

The function which allows 'the smart fill' of 1D-histogram.


The function which allows 'the smart fill' of 1D-histogram

>>> histo = ...

The most trivial case, fill with the value
>>> fill ( histo , 1.0 )

Fill from any iterable object (sequence)
>>> fill ( histo , [1,,2,3,4,5,10] )

Fill from iterable object and apply the function:
>>> fill ( histo , [1,2,3,4,5] , math.sin )

Use lambda form:
>>> fill ( histo , [1,2,3,4,5] , lambda x : x*x )

The same
>>> fill ( histo , [1,2,3,4,5] , fun = lambda x : x*x )

Use internal attributes:
>>> tracks = evtSvc['Rec/Track/Best']    ## iterable container of tracks
>>> fill ( histo , tracks , lambda t : t.pt() )

Apply the predicate: fill only even numbers:
>>> fill ( histo , [1,2,3,4,5,6,7] , lambda x : x , lambda y : y%2 )

The same (omit the trivial function) :
>>> fill ( histo , [1,2,3,4,5,6,7] , cut = lambda y : y%2 )

Apply the predicate: fill only pt for positively charged tracks:
>>> tracks = evtSvc['Rec/Track/Best']
>>> fill ( histo , tracks , lambda t : t.pt() , lambda t : 0<t.charge() )

The same:
>>> fill ( histo , tracks ,
           fun = lambda t : t.pt()       ,
           cut = lambda t : 0<t.charge() )

Ordinary functions are also fine:
>>> def myfun ( track ) : return sin( track.pt() + track.p() )
>>> def mycut ( track ) : return track.p() > 100 * GeV
>>> fill ( histo , tracks , myfun , mycut )

The 'data' could be the address in TES, in this case the object
is retrieved from TES and the method is applied to the objects,
retrieved from TES:
>>> fill (  histo             , ## the reference to the histogram
           'Rec/Track/Best'   , ## the location of objects in TES
            lambda t : t.pt() ) ## function to be used for histogram fill
>>> fill (  histo             , ## the reference to the histogram
           'Rec/Track/Best'   , ## the address of objects in TES
            lambda t : t.pt() , ## the function to be used for histogram fill
            lambda t : t.charge()>0 ) ## the criteria to select tracks

The arguments 'fun' and 'cut' could be strings, in this case
they are evaluated by python before usage.
This option could be often very useful.

Definition at line 350 of file HistoUtils.py.

00352                             : x    ,   ## function to be used
00353            cut   = lambda x : True ,   ## cut to be applied
00354            **kwargs                ) : ## optional extra arguments
00355     """
00356 
00357     The function which allows 'the smart fill' of 1D-histogram
00358 
00359     >>> histo = ...
00360 
00361     The most trivial case, fill with the value
00362     >>> fill ( histo , 1.0 )
00363 
00364     Fill from any iterable object (sequence)
00365     >>> fill ( histo , [1,,2,3,4,5,10] )
00366 
00367     Fill from iterable object and apply the function:
00368     >>> fill ( histo , [1,2,3,4,5] , math.sin )
00369 
00370     Use lambda form:
00371     >>> fill ( histo , [1,2,3,4,5] , lambda x : x*x )
00372 
00373     The same
00374     >>> fill ( histo , [1,2,3,4,5] , fun = lambda x : x*x )
00375 
00376     Use internal attributes:
00377     >>> tracks = evtSvc['Rec/Track/Best']    ## iterable container of tracks
00378     >>> fill ( histo , tracks , lambda t : t.pt() )
00379 
00380     Apply the predicate: fill only even numbers:
00381     >>> fill ( histo , [1,2,3,4,5,6,7] , lambda x : x , lambda y : y%2 )
00382 
00383     The same (omit the trivial function) :
00384     >>> fill ( histo , [1,2,3,4,5,6,7] , cut = lambda y : y%2 )
00385 
00386     Apply the predicate: fill only pt for positively charged tracks:
00387     >>> tracks = evtSvc['Rec/Track/Best']
00388     >>> fill ( histo , tracks , lambda t : t.pt() , lambda t : 0<t.charge() )
00389 
00390     The same:
00391     >>> fill ( histo , tracks ,
00392                fun = lambda t : t.pt()       ,
00393                cut = lambda t : 0<t.charge() )
00394 
00395     Ordinary functions are also fine:
00396     >>> def myfun ( track ) : return sin( track.pt() + track.p() )
00397     >>> def mycut ( track ) : return track.p() > 100 * GeV
00398     >>> fill ( histo , tracks , myfun , mycut )
00399 
00400     The 'data' could be the address in TES, in this case the object
00401     is retrieved from TES and the method is applied to the objects,
00402     retrieved from TES:
00403     >>> fill (  histo             , ## the reference to the histogram
00404                'Rec/Track/Best'   , ## the location of objects in TES
00405                 lambda t : t.pt() ) ## function to be used for histogram fill
00406     >>> fill (  histo             , ## the reference to the histogram
00407                'Rec/Track/Best'   , ## the address of objects in TES
00408                 lambda t : t.pt() , ## the function to be used for histogram fill
00409                 lambda t : t.charge()>0 ) ## the criteria to select tracks
00410 
00411     The arguments 'fun' and 'cut' could be strings, in this case
00412     they are evaluated by python before usage.
00413     This option could be often very useful.
00414 
00415     """
00416 
00417     # if value is a string, try to get the objects from TES
00418     if type ( data ) == str :
00419         svc  = _getEvtSvc ( **kwargs )
00420         data = svc[data]
00421         return fill ( histo , data , fun , cut , **kwargs )
00422 
00423     # if the function  is a string: evaluate it!
00424     if type ( fun  ) == str : fun  = eval ( fun  , globals() )
00425 
00426     # if the criterion is a string: evaluate it!
00427     if type ( cut  ) == str : cut  = eval ( cut  , globals() )
00428 
00429     if not hasattr ( data , '__iter__' ) : data = [ data ]
00430 
00431     if not hasattr ( histo , 'fill' ) and hasattr ( histo , 'Fill' ) :
00432         setattr ( histo , 'fill' , getattr ( histo , 'Fill' ) )
00433 
00434     for item in data :
00435         if not cut ( item )         : continue             ## CONTINUE
00436         histo.fill ( fun ( item ) )
00437 
00438     return histo                                           ## RETURN
00439 
00440 # =============================================================================

def GaudiPython::HistoUtils::getAsAIDA (   path,
  kwargs 
)

The most trivial function to retrieve the histogram from Histogram Transient Store.


The most trivial function to retrieve the histogram from Histogram Transient Store
The histogram is returned by reference to its AIDA-representation (if possible)

>>> h = getAsAIDA ( 'some/path/to/my/histogram' )

Definition at line 309 of file HistoUtils.py.

00309                                   :
00310     """
00311 
00312     The most trivial function to retrieve the histogram from Histogram Transient Store
00313     The histogram is returned by reference to its AIDA-representation (if possible)
00314 
00315     >>> h = getAsAIDA ( 'some/path/to/my/histogram' )
00316 
00317     """
00318     svc = _getHistoSvc ( **kwargs )
00319     if not svc : raise RuntimeError, 'Unable to get valid HistogramService '
00320     ## return the histogram
00321     return svc.getAsAIDA( path )                                   ## RETURN
00322 
00323 getAsAIDA.__doc__ += '\n\n' + '\thelp(iHistogramSvc.getAsAIDA) : \n\n' \
00324                      + iHistogramSvc.getAsAIDA . __doc__
00325 getAsAIDA.__doc__ += '\n\n' + '\thelp(iHistogramSvc.retrieve)  : \n\n' \
00326                      + iHistogramSvc.retrieve  . __doc__
00327 
00328 # =============================================================================
## The most trivial function to retrieve the histogram from Histogram Transient Store

def GaudiPython::HistoUtils::getAsROOT (   path,
  kwargs 
)

The most trivial function to retrieve the histogram from Histogram Transient Store.


The most trivial function to retrieve the histogram from Histogram Transient Store
The histogram is returned by reference to its underlying native ROOT-representation (if possible)

>>> h = getAsROOT ( 'some/path/to/my/histogram' )

Definition at line 330 of file HistoUtils.py.

00330                                   :
00331     """
00332 
00333     The most trivial function to retrieve the histogram from Histogram Transient Store
00334     The histogram is returned by reference to its underlying native ROOT-representation (if possible)
00335 
00336     >>> h = getAsROOT ( 'some/path/to/my/histogram' )
00337 
00338     """
00339     svc = _getHistoSvc ( **kwargs )
00340     if not svc : raise RuntimeError, 'Unable to get valid HistogramService '
00341     ## return the histogram
00342     return svc.getAsROOT( path )                                   ## RETURN
00343 
00344 getAsROOT.__doc__ += '\n\n' + '\thelp(iHistogramSvc.getAsROOT) : \n\n' \
00345                      + iHistogramSvc.getAsROOT . __doc__
00346 
00347 
00348 # =============================================================================
## The function which allows 'the smart fill' of 1D-histogram


Variable Documentation

Initial value:

(
    'book'      , ##                book AIDA histogram using Histogram Service
    'bookProf'  , ##        book AIDA profile histogram using Histogram Service
    'getAsAIDA' , ## get the histogram form Histogram Service as AIDA histogram
    'getAsROOT' , ## get the histogram form Histogram Service as AIDA histogram
    'fill'      , ##              "power-fill" method for filling of histograms
    'aida2root' , ##                                     AIDA -> ROOT converter
    'HistoStats', ##                  statistical information for 1D-histograms
    'HistoFile' , ##                     class for storing histograms to a file
    'histoDump' , ##                     dump histogramintext format a'la HBOOK
    'dumphisto'   ##                     dump histogramintext format a'la HBOOK
    )

Definition at line 29 of file HistoUtils.py.

string GaudiPython::HistoUtils::__author__ = "Vanya BELYAEV ibelyaev@physics.syr.edu"

This module contains set of simple and useful utilities for booking and manipulations with Gaudi-AIDA histograms, inspired by Thomas' request.

Author:
Vanya BELYAEV ibelyaev@physics.syr.edu
Date:
2007-08-03 =============================================================================

Definition at line 27 of file HistoUtils.py.

GaudiPython::HistoUtils::aida2root = cpp.Gaudi.Utils.Aida2ROOT.aida2root

AIDA -> ROOT converter.

Definition at line 442 of file HistoUtils.py.

Definition at line 800 of file HistoUtils.py.

GaudiPython::HistoUtils::HID = cpp.GaudiAlg.ID

Definition at line 47 of file HistoUtils.py.

the actual function for text dump of the histogram

Definition at line 799 of file HistoUtils.py.

GaudiPython::HistoUtils::HistoStats = cpp.Gaudi.Utils.HistoStats

Definition at line 473 of file HistoUtils.py.

GaudiPython::HistoUtils::i1DH = cpp.AIDA.IHistogram1D

Definition at line 730 of file HistoUtils.py.

GaudiPython::HistoUtils::iBH = cpp.AIDA.IBaseHistogram

Definition at line 771 of file HistoUtils.py.

global flag

Definition at line 50 of file HistoUtils.py.


Generated at Wed Mar 17 18:21:55 2010 for Gaudi Framework, version v21r8 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004