The Gaudi Framework  v36r9p1 (5c15b2bb)
GaudiPython.HistoUtils Namespace Reference

Classes

class  HistoFile
 

Functions

def _getAppMgr (**kwargs)
 
def _getHistoSvc (**kwargs)
 
def _getEvtSvc (**kwargs)
 
def book (*args, **kwargs)
 
def bookProf (*args, **kwargs)
 
def getAsAIDA (path, **kwargs)
 
def getAsROOT (path, **kwargs)
 
def fill (histo, data, fun=lambda x:x, cut=lambda x:True, **kwargs)
 
def _to_root_ (self)
 
def _moment_ (self, order, value=0)
 
def _momentErr_ (self, order)
 
def _centralMoment_ (self, order)
 
def _centralMomentErr_ (self, order)
 
def _skewness_ (self)
 
def _skewnessErr_ (self)
 
def _kurtosis_ (self)
 
def _kurtosisErr_ (self)
 
def _nEff_ (self)
 
def _mean_ (self)
 
def _meanErr_ (self)
 
def _rms_ (self)
 
def _rmsErr_ (self)
 
def _sumBinHeightErr_ (self)
 
def _sumAllBinHeightErr_ (self)
 
def _overflowEntriesFrac_ (self)
 
def _overflowEntriesFracErr_ (self)
 
def _underflowEntriesFrac_ (self)
 
def _underflowEntriesFracErr_ (self)
 
def _overflowIntegralFrac_ (self)
 
def _overflowIntegralFracErr_ (self)
 
def _underflowIntegralFrac_ (self)
 
def _underflowIntegralFracErr_ (self)
 
def _nEntries_ (self, i1, i2=-10000000)
 
def _nEntriesFrac_ (self, i1, i2=-10000000)
 
def _nEntriesFracErr_ (self, i1, i2=-10000000)
 
def _path_ (self)
 
def __dumpHisto__ (histo, *args)
 

Variables

string __author__ = "Vanya BELYAEV ibelyaev@physics.syr.edu"
 
tuple __all__
 
 HID = cpp.GaudiAlg.ID
 
bool useROOT = False
 global flag More...
 
 aida2root = cpp.Gaudi.Utils.Aida2ROOT.aida2root
 
 __repr__
 
 __str__
 
 HistoStats = cpp.Gaudi.Utils.HistoStats
 
 i1DH = cpp.AIDA.IHistogram1D
 
 moment
 
 momentErr
 
 centralMoment
 
 centralMomentErr
 
 nEff
 
 mean
 
 meanErr
 
 rms
 
 rmsErr
 
 skewness
 
 skewnessErr
 
 kurtosis
 
 kurtosisErr
 
 overflowEntriesFrac
 
 overflowEntriesFracErr
 
 underflowEntriesFrac
 
 underflowEntriesFracErr
 
 overflowIntegralFrac
 
 overflowIntegralFracErr
 
 underflowIntegralFrac
 
 underflowIntegralFracErr
 
 nEntries
 
 nEntriesFrac
 
 nEntriesFracErr
 
 iBH = cpp.AIDA.IBaseHistogram
 
 path
 
 TESpath
 
 location
 
def histoDump = __dumpHisto__
 
def dumpHisto = __dumpHisto__
 

Function Documentation

◆ __dumpHisto__()

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 969 of file HistoUtils.py.

969 def __dumpHisto__(histo, *args):
970  """
971 
972  Dump the histogram/profile in text format (a'la HBOOK)
973 
974  >>> histo
975  >>> print(dumpHisto ( histo ))
976 
977  >>> print(histo.dump())
978  >>> print(histo.dump( 20 , 20 ))
979  >>> print(histo.dump( 20 , 20 , True ))
980 
981  Uses:
982 
983  """
984  return cpp.Gaudi.Utils.Histos.histoDump(histo, *args)
985 
986 
987 __dumpHisto__.__doc__ = "\n" + cpp.Gaudi.Utils.Histos.histoDump.__doc__
988 
989 # =============================================================================
990 # the actual function for text dump of the histogram

◆ _centralMoment_()

def GaudiPython.HistoUtils._centralMoment_ (   self,
  order 
)
private
Evaluate 'bin-by-bin' central momentum (around mean value)
for 1D histogram

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

Definition at line 579 of file HistoUtils.py.

579 def _centralMoment_(self, order):
580  """
581  Evaluate 'bin-by-bin' central momentum (around mean value)
582  for 1D histogram
583 
584  >>> h1 = ...
585  >>> print(h1.centralMoment ( 5 ))
586 
587  """
588  return HistoStats.centralMoment(self, order)
589 
590 
591 # =============================================================================
592 # Evaluate error in 'bin-by-bin' momentum of certain order around the value
593 
594 

◆ _centralMomentErr_()

def GaudiPython.HistoUtils._centralMomentErr_ (   self,
  order 
)
private
Evaluate error for 'bin-by-bin' central momentum (around mean value)
for 1D histogram

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

Definition at line 595 of file HistoUtils.py.

595 def _centralMomentErr_(self, order):
596  """
597  Evaluate error for 'bin-by-bin' central momentum (around mean value)
598  for 1D histogram
599 
600  >>> h1 = ...
601  >>> print(h1.centralMomentErr ( 5 ))
602 
603  """
604  return HistoStats.centralMomentErr(self, order)
605 
606 
607 # =============================================================================
608 # Evaluate 'bin-by-bin' skewness for 1D histogram
609 
610 

◆ _getAppMgr()

def GaudiPython.HistoUtils._getAppMgr ( **  kwargs)
private
Helper private auxiliary function to get Application Manager

Definition at line 69 of file HistoUtils.py.

69 def _getAppMgr(**kwargs):
70  """
71  Helper private auxiliary function to get Application Manager
72  """
73  gaudi = kwargs.get("gaudi", None)
74  if not gaudi:
75  gaudi = AppMgr()
76  if not gaudi:
77  raise RuntimeError("Unable to get valid ApplicationMgr")
78 
79  state = gaudi._isvc.FSMState()
80  if state < cpp.Gaudi.StateMachine.CONFIGURED:
81  gaudi.config()
82  state = gaudi._isvc.FSMState()
83  if state < cpp.Gaudi.StateMachine.INITIALIZED:
84  gaudi.initialize()
85 
86  return gaudi # RETURN
87 
88 
89 # =============================================================================
90 # Helper private auxiliary function to get iHistogramSvs
91 
92 

◆ _getEvtSvc()

def GaudiPython.HistoUtils._getEvtSvc ( **  kwargs)
private
Helper private auxiliary function to get iDataSvs

Definition at line 110 of file HistoUtils.py.

110 def _getEvtSvc(**kwargs):
111  """
112  Helper private auxiliary function to get iDataSvs
113  """
114  svc = kwargs.get("service", None)
115  if not svc:
116  svc = kwargs.get("svc", None)
117  else:
118  return svc # RETURN
119  gaudi = _getAppMgr(**kwargs)
120  return gaudi.evtsvc() # RETURN
121 
122 
123 # =============================================================================
124 # The trivial function to book the various 1D,2D&3D-histograms
125 
126 

◆ _getHistoSvc()

def GaudiPython.HistoUtils._getHistoSvc ( **  kwargs)
private
Helper private auxiliary function to get iHistogramSvs

Definition at line 93 of file HistoUtils.py.

93 def _getHistoSvc(**kwargs):
94  """
95  Helper private auxiliary function to get iHistogramSvs
96  """
97  svc = kwargs.get("service", None)
98  if not svc:
99  svc = kwargs.get("svc", None)
100  else:
101  return svc # RETURN
102  gaudi = _getAppMgr(**kwargs)
103  return gaudi.histsvc() # RETURN
104 
105 
106 # =============================================================================
107 # Helper private auxiliary function to get iDataSvs
108 
109 

◆ _kurtosis_()

def GaudiPython.HistoUtils._kurtosis_ (   self)
private
Evaluate 'bin-by-bin' kurtosis

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

Definition at line 641 of file HistoUtils.py.

641 def _kurtosis_(self):
642  """
643  Evaluate 'bin-by-bin' kurtosis
644 
645  >>> h1 = ...
646  >>> print(h1.kurtosis ())
647 
648  """
649  return HistoStats.kurtosis(self)
650 
651 
652 # =============================================================================
653 # Evaluate error for 'bin-by-bin' kurtosis for 1D histogram
654 
655 

◆ _kurtosisErr_()

def GaudiPython.HistoUtils._kurtosisErr_ (   self)
private
Evaluate error for 'bin-by-bin' kurtotis for 1D AIDA histogram

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

Definition at line 656 of file HistoUtils.py.

656 def _kurtosisErr_(self):
657  """
658  Evaluate error for 'bin-by-bin' kurtotis for 1D AIDA histogram
659 
660  >>> h1 = ...
661  >>> print(h1.kurtotisErr())
662 
663  """
664  return HistoStats.kurtosisErr(self)
665 
666 
667 # =============================================================================
668 
669 

◆ _mean_()

def GaudiPython.HistoUtils._mean_ (   self)
private
Evaluate the MEAN value

Definition at line 680 of file HistoUtils.py.

680 def _mean_(self):
681  """
682  Evaluate the MEAN value
683  """
684  return HistoStats.mean(self)
685 
686 
687 # =============================================================================
688 
689 

◆ _meanErr_()

def GaudiPython.HistoUtils._meanErr_ (   self)
private
Evaluate the error for MEAN estimate

Definition at line 690 of file HistoUtils.py.

690 def _meanErr_(self):
691  """
692  Evaluate the error for MEAN estimate
693  """
694  return HistoStats.meanErr(self)
695 
696 
697 # =============================================================================
698 
699 

◆ _moment_()

def GaudiPython.HistoUtils._moment_ (   self,
  order,
  value = 0 
)
private
Evaluate 'bin-by-bin' momentum of order 'order' around the value 'value'
for 1D histogram

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

Definition at line 547 of file HistoUtils.py.

547 def _moment_(self, order, value=0):
548  """
549  Evaluate 'bin-by-bin' momentum of order 'order' around the value 'value'
550  for 1D histogram
551 
552  >>> h1 = ...
553  >>> print(h1.moment ( 5 ))
554 
555  """
556  return HistoStats.moment(self, order, value)
557 
558 
559 # =============================================================================
560 # Evaluate error in 'bin-by-bin' momentum of certain order around the value
561 
562 

◆ _momentErr_()

def GaudiPython.HistoUtils._momentErr_ (   self,
  order 
)
private
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 563 of file HistoUtils.py.

563 def _momentErr_(self, order):
564  """
565  Evaluate error for 'bin-by-bin' momentum of order 'order' around the value 'value'
566  for 1D histogram
567 
568  >>> h1 = ...
569  >>> print(h1.momentErr ( 5 ))
570 
571  """
572  return HistoStats.momentErr(self, order)
573 
574 
575 # =============================================================================
576 # Evaluate 'bin-by-bin' central momentum (around mean value)
577 
578 

◆ _nEff_()

def GaudiPython.HistoUtils._nEff_ (   self)
private
Number of equivalent entries

Definition at line 670 of file HistoUtils.py.

670 def _nEff_(self):
671  """
672  Number of equivalent entries
673  """
674  return HistoStats.nEff(self)
675 
676 
677 # =============================================================================
678 
679 

◆ _nEntries_()

def GaudiPython.HistoUtils._nEntries_ (   self,
  i1,
  i2 = -10000000 
)
private
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 821 of file HistoUtils.py.

821 def _nEntries_(self, i1, i2=-10000000):
822  """
823  Get number of entries in histogram up to the certain bin (not-included)
824 
825  attention: underflow bin is included!
826 
827  >>> h1
828  >>> print(h1.nEntries ( 10 ))
829 
830  Get number of entries in histogram form the certain
831  minimal bin up to the certain maximal bin (not-included)
832 
833  >>> h1
834  >>> print(h1.nEntries ( 10 , 15 ))
835 
836  """
837  if i2 < i1 or i2 < 0:
838  return HistoStats.nEntries(self, i1)
839  return HistoStats.nEntries(self, i1, i2)
840 
841 
842 # =============================================================================
843 
844 

◆ _nEntriesFrac_()

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 845 of file HistoUtils.py.

845 def _nEntriesFrac_(self, i1, i2=-10000000):
846  """
847  Get the fraction of entries in histogram up to the certain bin (not-included)
848 
849  attention: underflow bin is included!
850 
851  >>> h1
852  >>> print(h1.nEntriesFrac ( 10 ))
853 
854  Get the fraction of entries in histogram form the certain
855  minimal bin up to the certain maximal bin (not-included)
856 
857  >>> h1
858  >>> print(h1.nEntriesFrac ( 10 , 15 ))
859 
860  """
861  if i2 < i1 or i2 < 0:
862  return HistoStats.nEntriesFrac(self, i1)
863  return HistoStats.nEntriesFrac(self, i1, i2)
864 
865 
866 # =============================================================================
867 
868 

◆ _nEntriesFracErr_()

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 869 of file HistoUtils.py.

869 def _nEntriesFracErr_(self, i1, i2=-10000000):
870  """
871  Get error for fraction of entries in histogram up to the certain bin (not-included)
872 
873  attention: underflow bin is included!
874 
875  >>> h1
876  >>> print(h1.nEntriesFracErr( 10 ))
877 
878  Get error fraction of entries in histogram form the certain
879  minimal bin up to the certain maximal bin (not-included)
880 
881  >>> h1
882  >>> print(h1.nEntriesFracErr ( 10 , 15 ))
883 
884  """
885  if i2 < i1 or i2 < 0:
886  return HistoStats.nEntriesFracErr(self, i1)
887  return HistoStats.nEntriesFracErr(self, i1, i2)
888 
889 
890 # =============================================================================

◆ _overflowEntriesFrac_()

def GaudiPython.HistoUtils._overflowEntriesFrac_ (   self)
private
The fraction of overflow entries  (useful for shape comparison)

Definition at line 738 of file HistoUtils.py.

738 def _overflowEntriesFrac_(self):
739  """
740  The fraction of overflow entries (useful for shape comparison)
741  """
742  return HistoStats.overflowEntriesFrac(self)
743 
744 
745 # =============================================================================
746 
747 

◆ _overflowEntriesFracErr_()

def GaudiPython.HistoUtils._overflowEntriesFracErr_ (   self)
private
The error for fraction of overflow entries  (useful for shape comparison)

Definition at line 748 of file HistoUtils.py.

748 def _overflowEntriesFracErr_(self):
749  """
750  The error for fraction of overflow entries (useful for shape comparison)
751  """
752  return HistoStats.overflowEntriesFracErr(self)
753 
754 
755 # =============================================================================
756 
757 

◆ _overflowIntegralFrac_()

def GaudiPython.HistoUtils._overflowIntegralFrac_ (   self)
private
The fraction of overflow integral  (useful for shape comparison)

Definition at line 778 of file HistoUtils.py.

778 def _overflowIntegralFrac_(self):
779  """
780  The fraction of overflow integral (useful for shape comparison)
781  """
782  return HistoStats.overflowIntegralFrac(self)
783 
784 
785 # =============================================================================
786 
787 

◆ _overflowIntegralFracErr_()

def GaudiPython.HistoUtils._overflowIntegralFracErr_ (   self)
private
The error for fraction of overflow integral  (useful for shape comparison)

Definition at line 788 of file HistoUtils.py.

788 def _overflowIntegralFracErr_(self):
789  """
790  The error for fraction of overflow integral (useful for shape comparison)
791  """
792  return HistoStats.overflowIntegralFracErr(self)
793 
794 
795 # =============================================================================
796 
797 

◆ _path_()

def GaudiPython.HistoUtils._path_ (   self)
private
Get the path in THS for the given AIDA object:

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

Definition at line 948 of file HistoUtils.py.

948 def _path_(self):
949  """
950  Get the path in THS for the given AIDA object:
951 
952  >>> aida =
953  >>> print(aida.path())
954 
955  """
956  return cpp.Gaudi.Utils.Histos.path(self)
957 
958 

◆ _rms_()

def GaudiPython.HistoUtils._rms_ (   self)
private
Evaluate the RMS for AIDA histogram

Definition at line 700 of file HistoUtils.py.

700 def _rms_(self):
701  """
702  Evaluate the RMS for AIDA histogram
703  """
704  return HistoStats.rms(self)
705 
706 
707 # =============================================================================
708 
709 

◆ _rmsErr_()

def GaudiPython.HistoUtils._rmsErr_ (   self)
private
Evaluate the error for RMS estimate

Definition at line 710 of file HistoUtils.py.

710 def _rmsErr_(self):
711  """
712  Evaluate the error for RMS estimate
713  """
714  return HistoStats.rmsErr(self)
715 
716 
717 # =============================================================================
718 
719 

◆ _skewness_()

def GaudiPython.HistoUtils._skewness_ (   self)
private
Evaluate 'bin-by-bin' skewness for 1D AIDA histogram

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

Definition at line 611 of file HistoUtils.py.

611 def _skewness_(self):
612  """
613  Evaluate 'bin-by-bin' skewness for 1D AIDA histogram
614 
615  >>> h1 = ...
616  >>> print(h1.skewness())
617 
618  """
619  return HistoStats.skewness(self)
620 
621 
622 # =============================================================================
623 # Evaluate error for 'bin-by-bin' skewness for 1D histogram
624 
625 

◆ _skewnessErr_()

def GaudiPython.HistoUtils._skewnessErr_ (   self)
private
Evaluate error for 'bin-by-bin' skewness

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

Definition at line 626 of file HistoUtils.py.

626 def _skewnessErr_(self):
627  """
628  Evaluate error for 'bin-by-bin' skewness
629 
630  >>> h1 = ...
631  >>> print(h1.skewnessErr())
632 
633  """
634  return HistoStats.skewnessErr(self)
635 
636 
637 # =============================================================================
638 # Evaluate 'bin-by-bin' kurtosis for 1D histogram
639 
640 

◆ _sumAllBinHeightErr_()

def GaudiPython.HistoUtils._sumAllBinHeightErr_ (   self)
private
Get an error in the sum bin height ('in-range integral')

Definition at line 730 of file HistoUtils.py.

730 def _sumAllBinHeightErr_(self):
731  """Get an error in the sum bin height ('in-range integral')"""
732  return HistoStats.sumAllBinHeightErr(self)
733 
734 
735 # =============================================================================
736 
737 

◆ _sumBinHeightErr_()

def GaudiPython.HistoUtils._sumBinHeightErr_ (   self)
private
Get an error in the sum bin height ('in-range integral')

Definition at line 720 of file HistoUtils.py.

720 def _sumBinHeightErr_(self):
721  """
722  Get an error in the sum bin height ('in-range integral')
723  """
724  return HistoStats.sumBinHeightErr(self)
725 
726 
727 # =============================================================================
728 
729 

◆ _to_root_()

def GaudiPython.HistoUtils._to_root_ (   self)
private
Convert AIDA to ROOT

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

Definition at line 510 of file HistoUtils.py.

510 def _to_root_(self):
511  """
512  Convert AIDA to ROOT
513 
514  >>> aida = ... ## get AIDA histogram
515  >>> root = aida.toROOT() ## convert it to ROOT
516 
517  """
518  return aida2root(self)
519 
520 
521 _to_root_.__doc__ += aida2root.__doc__
522 

◆ _underflowEntriesFrac_()

def GaudiPython.HistoUtils._underflowEntriesFrac_ (   self)
private
The fraction of underflow entries  (useful for shape comparison)

Definition at line 758 of file HistoUtils.py.

758 def _underflowEntriesFrac_(self):
759  """
760  The fraction of underflow entries (useful for shape comparison)
761  """
762  return HistoStats.underflowEntriesFrac(self)
763 
764 
765 # =============================================================================
766 
767 

◆ _underflowEntriesFracErr_()

def GaudiPython.HistoUtils._underflowEntriesFracErr_ (   self)
private
The error for fraction of underflow entries  (useful for shape comparison)

Definition at line 768 of file HistoUtils.py.

768 def _underflowEntriesFracErr_(self):
769  """
770  The error for fraction of underflow entries (useful for shape comparison)
771  """
772  return HistoStats.underflowEntriesFracErr(self)
773 
774 
775 # =============================================================================
776 
777 

◆ _underflowIntegralFrac_()

def GaudiPython.HistoUtils._underflowIntegralFrac_ (   self)
private
The fraction of underflow integral  (useful for shape comparison)

Definition at line 798 of file HistoUtils.py.

798 def _underflowIntegralFrac_(self):
799  """
800  The fraction of underflow integral (useful for shape comparison)
801  """
802  return HistoStats.underflowIntegralFrac(self)
803 
804 
805 # =============================================================================
806 
807 

◆ _underflowIntegralFracErr_()

def GaudiPython.HistoUtils._underflowIntegralFracErr_ (   self)
private
The error for fraction of underflow integral (useful for shape comparison)

Definition at line 808 of file HistoUtils.py.

809  """
810  The error for fraction of underflow integral (useful for shape comparison)
811  """
812  return HistoStats.underflowIntegralFracErr(self)
813 
814 
815 # =============================================================================
816 # get number of entries in histogram up to the certain bin (not-included)
817 # get number of entries in histogram form the certain
818 # minimal bin up to the certain maximal bin (not-included)
819 
820 

◆ book()

def GaudiPython.HistoUtils.book ( args,
**  kwargs 
)
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 127 of file HistoUtils.py.

127 def book(*args, **kwargs):
128  """
129  The trivial function to book the various 1D,2D&3D-histograms
130 
131  (1) book the trivial 1D histogram with full path
132 
133  >>> h1D = book ( 'path/to/my/histo' , ## path in Histogram Transient Store
134  'cosine of decay angle ' , ## histogram title
135  100 , ## number of bins
136  -1 , ## low edge
137  100 ) ## high edge
138 
139  (2) book the trivial 1D histogram with directory path and string ID :
140 
141  >>> h1D = book ( 'path/to/directory' , ## the path to directory in HTS
142  'H1' , ## string histogram identifier
143  'cosine of decay angle ' , ## histogram title
144  100 , ## number of bins
145  -1 , ## low edge
146  100 ) ## high edge
147 
148  (3) book the trivial 1D histogram with directory path and integer ID :
149 
150  >>> h1D = book ( 'path/to/directory' , ## the path to directory in HTS
151  124 , ## integer histogram identifier
152  'cosine of decay angle ' , ## histogram title
153  100 , ## number of bins
154  -1 , ## low edge
155  100 ) ## high edge
156 
157  (4) book the trivial 2D histogram with full path
158 
159  >>> h1D = book ( 'path/to/my/histo' , ## path in Histogram Transient Store
160  'm12**2 versus m13**2' , ## histogram title
161  50 , ## number of X-bins
162  1.0 , ## low X-edge
163  4.0 , ## high X-edge
164  50 , ## number of Y-bins
165  1 , ## low Y-edge
166  2 ) ## high Y-edge
167 
168  (5) book the trivial 2D histogram with directory path and literal ID
169 
170  >>> h1D = book ( 'path/to/directory' , ## path in Histogram Transient Store
171  'Dalitz1' , ## literal histogram identifier
172  'm12**2 versus m13**2' , ## histogram title
173  50 , ## number of X-bins
174  1.0 , ## low X-edge
175  4.0 , ## high X-edge
176  50 , ## number of Y-bins
177  1 , ## low Y-edge
178  2 ) ## high Y-edge
179 
180  (6) book the trivial 2D histogram with directory path and integer ID
181 
182  >>> h1D = book ( 'path/to/directory' , ## path in Histogram Transient Store
183  854 , ## integer histogram identifier
184  'm12**2 versus m13**2' , ## histogram title
185  50 , ## number of X-bins
186  1.0 , ## low X-edge
187  4.0 , ## high X-edge
188  50 , ## number of Y-bins
189  1.0 , ## low Y-edge
190  4.0 ) ## high Y-edge
191 
192  (7) book the trivial 3D histogram with full path
193 
194  >>> h1D = book ( 'path/to/my/histo' , ## path in Histogram Transient Store
195  'x vs y vs z ' , ## histogram title
196  10 , ## number of X-bins
197  -1.0 , ## low X-edge
198  1.0 , ## high X-edge
199  10 , ## number of Y-bins
200  -1.0 , ## low Y-edge
201  1.0 , ## high Y-edge
202  10 , ## number of Z-bins
203  -1.0 , ## low Z-edge
204  1.0 ) ## high Z-edge
205 
206  (8) book the trivial 3D histogram with directory path and literal ID
207 
208  >>> h1D = book ( 'path/to/directory' , ## path in Histogram Transient Store
209  'xyz' , ## literal histogram identifier
210  'x vs y vs z' , ## histogram title
211  10 , ## number of X-bins
212  -1.0 , ## low X-edge
213  1.0 , ## high X-edge
214  10 , ## number of Y-bins
215  -1.0 , ## low Y-edge
216  1.0 , ## high Y-edge
217  10 , ## number of Z-bins
218  -1.0 , ## low Z-edge
219  1.0 ) ## high Z-edge
220 
221  (9) book the trivial 3D histogram with directory path and integer ID
222 
223  >>> h1D = book ( 'path/to/directory' , ## path in Histogram Transient Store
224  888 , ## integer histogram identifier
225  'x vs y vs z' , ## histogram title
226  10 , ## number of X-bins
227  -1.0 , ## low X-edge
228  1.0 , ## high X-edge
229  10 , ## number of Y-bins
230  -1.0 , ## low Y-edge
231  1.0 , ## high Y-edge
232  10 , ## number of Z-bins
233  -1.0 , ## low Z-edge
234  1.0 ) ## high Z-edge
235 
236  Many other booking methods are available,
237  e.g. for the histograms with non-equidistant bins, see IHistogamSvc::book
238 
239  """
240  if useROOT or kwargs.get("useROOT", False) or not kwargs.get("useAIDA", True):
241  from ROOT import TH1D
242 
243  a0 = args[0]
244  a1 = args[1]
245  a2 = args[2]
246  if not str is type(a1):
247  a1 = "h" + str(a1)
248  if str is type(a2):
249  return TH1D(a0 + a1, a2, *args[3:])
250  else:
251  return TH1D(a0, a1, *args[2:])
252 
253  svc = _getHistoSvc(**kwargs)
254  if not svc:
255  raise RuntimeError("Unable to get valid HistogramService ")
256  # book the histogram using the service
257  return svc.book(*args) # RETURN
258 
259 
260 book.__doc__ += (
261  "\n\n" + "\thelp(iHistogramSvc.book) : \n\n" + iHistogramSvc.book.__doc__
262 )
263 book.__doc__ += (
264  "\n\n" + "\thelp(IHistogramSvc::book) : \n\n" + cpp.IHistogramSvc.book.__doc__
265 )
266 
267 # =============================================================================
268 # The trivial function to book 1D&2D profile histograms:
269 
270 

◆ bookProf()

def GaudiPython.HistoUtils.bookProf ( args,
**  kwargs 
)
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 271 of file HistoUtils.py.

271 def bookProf(*args, **kwargs):
272  """
273 
274  The trivial function to book 1D&2D profile histograms:
275 
276  (1) book 1D-profile histogram with full path in Histogram Transient Store:
277  >>> histo = bookProf ( 'path/to/my/profile' , ## path in Histogram Transient Store
278  'Energy Correction' , ## the histogram title
279  100 , ## number of X-bins
280  0.0 , ## low X-edge
281  100 ) ## high X-edge
282 
283  (2) book 1D-profile histogram with directory path and literal ID
284  >>> histo = bookProf ( 'path/to/my/profile' , ## path in Histogram Transient Store
285  'Calibration' , ## the histogram literal identifier
286  'Energy Correction' , ## the histogram title
287  100 , ## number of X-bins
288  0.0 , ## low X-edge
289  100 ) ## high X-edge
290 
291  (3) book 1D-profile histogram with directory path and integer ID
292  >>> histo = bookProf ( 'path/to/my/profile' , ## path in Histogram Transient Store
293  418 , ## the histogram integer identifier
294  'Energy Correction' , ## the histogram title
295  100 , ## number of X-bins
296  0.0 , ## low X-edge
297  100 ) ## high X-edge
298 
299  (4) book 2D-profile histogram with full path in Histogram Transient Store:
300  >>> histo = bookProf ( 'path/to/my/profile' , ## path in Histogram Transient Store
301  'Energy Correction' , ## the histogram title
302  50 , ## number of X-bins
303  0.0 , ## low X-edge
304  100 , ## high X-edge
305  50 , ## number of Y-bins
306  0.0 , ## low Y-edge
307  100 ) ## high Y-edge
308 
309  (5) book 2D-profile histogram with directory path and literal ID
310  >>> histo = bookProf ( 'path/to/my/profile' , ## path in Histogram Transient Store
311  'Calibration' , ## the histogram literal identifier
312  'Energy Correction' , ## the histogram title
313  50 , ## number of X-bins
314  0.0 , ## low X-edge
315  100 , ## high X-edge
316  50 , ## number of Y-bins
317  0.0 , ## low Y-edge
318  100 ) ## high Y-edge
319 
320  (6) book 2D-profile histogram with directory path and integer ID
321  >>> histo = bookProf ( 'path/to/my/profile' , ## path in Histogram Transient Store
322  418 , ## the histogram integer identifier
323  'Energy Correction' , ## the histogram title
324  50 , ## number of X-bins
325  0.0 , ## low X-edge
326  100 , ## high X-edge
327  50 , ## number of Y-bins
328  0.0 , ## low Y-edge
329  100 ) ## high Y-edge
330 
331  Many other booking methods are available,
332  e.g. for the histograms with non-equidistant bins, see IHistogamSvc::book
333 
334  """
335  svc = _getHistoSvc(**kwargs)
336  if not svc:
337  raise RuntimeError("Unable to get valid HistogramService ")
338  # book the histogram using the service
339  return svc.bookProf(*args) # RETURN
340 
341 
342 bookProf.__doc__ += (
343  "\n\n" + "\thelp(iHistogramSvc.bookProf) : \n\n" + iHistogramSvc.bookProf.__doc__
344 )
345 bookProf.__doc__ += (
346  "\n\n"
347  + "\thelp(IHistogramSvc::bookProf) : \n\n"
348  + cpp.IHistogramSvc.bookProf.__doc__
349 )
350 
351 # =============================================================================
352 # The most trivial function to retrieve the histogram from Histogram Transient Store
353 
354 

◆ fill()

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

>>> 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 405 of file HistoUtils.py.

405 def fill(
406  histo, # histogram
407  data, # input data
408  fun=lambda x: x, # function to be used
409  cut=lambda x: True, # cut to be applied
410  **kwargs
411 ): # optional extra arguments
412  """
413 
414  The function which allows 'the smart fill' of 1D-histogram
415 
416  >>> histo = ...
417 
418  The most trivial case, fill with the value
419  >>> fill ( histo , 1.0 )
420 
421  Fill from any iterable object (sequence)
422  >>> fill ( histo , [1,,2,3,4,5,10] )
423 
424  Fill from iterable object and apply the function:
425  >>> fill ( histo , [1,2,3,4,5] , math.sin )
426 
427  Use lambda form:
428  >>> fill ( histo , [1,2,3,4,5] , lambda x : x*x )
429 
430  The same
431  >>> fill ( histo , [1,2,3,4,5] , fun = lambda x : x*x )
432 
433  Use internal attributes:
434  >>> tracks = evtSvc['Rec/Track/Best'] ## iterable container of tracks
435  >>> fill ( histo , tracks , lambda t : t.pt() )
436 
437  Apply the predicate: fill only even numbers:
438  >>> fill ( histo , [1,2,3,4,5,6,7] , lambda x : x , lambda y : y%2 )
439 
440  The same (omit the trivial function) :
441  >>> fill ( histo , [1,2,3,4,5,6,7] , cut = lambda y : y%2 )
442 
443  Apply the predicate: fill only pt for positively charged tracks:
444  >>> tracks = evtSvc['Rec/Track/Best']
445  >>> fill ( histo , tracks , lambda t : t.pt() , lambda t : 0<t.charge() )
446 
447  The same:
448  >>> fill ( histo , tracks ,
449  fun = lambda t : t.pt() ,
450  cut = lambda t : 0<t.charge() )
451 
452  Ordinary functions are also fine:
453  >>> def myfun ( track ) : return sin( track.pt() + track.p() )
454  >>> def mycut ( track ) : return track.p() > 100 * GeV
455  >>> fill ( histo , tracks , myfun , mycut )
456 
457  The 'data' could be the address in TES, in this case the object
458  is retrieved from TES and the method is applied to the objects,
459  retrieved from TES:
460  >>> fill ( histo , ## the reference to the histogram
461  'Rec/Track/Best' , ## the location of objects in TES
462  lambda t : t.pt() ) ## function to be used for histogram fill
463  >>> fill ( histo , ## the reference to the histogram
464  'Rec/Track/Best' , ## the address of objects in TES
465  lambda t : t.pt() , ## the function to be used for histogram fill
466  lambda t : t.charge()>0 ) ## the criteria to select tracks
467 
468  The arguments 'fun' and 'cut' could be strings, in this case
469  they are evaluated by python before usage.
470  This option could be often very useful.
471 
472  """
473 
474  # if value is a string, try to get the objects from TES
475  if type(data) == str:
476  svc = _getEvtSvc(**kwargs)
477  data = svc[data]
478  return fill(histo, data, fun, cut, **kwargs)
479 
480  # if the function is a string: evaluate it!
481  if type(fun) == str:
482  fun = eval(fun, globals())
483 
484  # if the criterion is a string: evaluate it!
485  if type(cut) == str:
486  cut = eval(cut, globals())
487 
488  if not hasattr(data, "__iter__"):
489  data = [data]
490 
491  if not hasattr(histo, "fill") and hasattr(histo, "Fill"):
492  setattr(histo, "fill", getattr(histo, "Fill"))
493 
494  for item in data:
495  if not cut(item):
496  continue # CONTINUE
497  histo.fill(fun(item))
498 
499  return histo # RETURN
500 
501 
502 # =============================================================================
503 # AIDA -> ROOT converter

◆ getAsAIDA()

def GaudiPython.HistoUtils.getAsAIDA (   path,
**  kwargs 
)
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 355 of file HistoUtils.py.

355 def getAsAIDA(path, **kwargs):
356  """
357 
358  The most trivial function to retrieve the histogram from Histogram Transient Store
359  The histogram is returned by reference to its AIDA-representation (if possible)
360 
361  >>> h = getAsAIDA ( 'some/path/to/my/histogram' )
362 
363  """
364  svc = _getHistoSvc(**kwargs)
365  if not svc:
366  raise RuntimeError("Unable to get valid HistogramService ")
367  # return the histogram
368  return svc.getAsAIDA(path) # RETURN
369 
370 
371 getAsAIDA.__doc__ += (
372  "\n\n" + "\thelp(iHistogramSvc.getAsAIDA) : \n\n" + iHistogramSvc.getAsAIDA.__doc__
373 )
374 getAsAIDA.__doc__ += (
375  "\n\n" + "\thelp(iHistogramSvc.retrieve) : \n\n" + iHistogramSvc.retrieve.__doc__
376 )
377 
378 # =============================================================================
379 # The most trivial function to retrieve the histogram from Histogram Transient Store
380 
381 

◆ getAsROOT()

def GaudiPython.HistoUtils.getAsROOT (   path,
**  kwargs 
)
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 382 of file HistoUtils.py.

382 def getAsROOT(path, **kwargs):
383  """
384 
385  The most trivial function to retrieve the histogram from Histogram Transient Store
386  The histogram is returned by reference to its underlying native ROOT-representation (if possible)
387 
388  >>> h = getAsROOT ( 'some/path/to/my/histogram' )
389 
390  """
391  svc = _getHistoSvc(**kwargs)
392  if not svc:
393  raise RuntimeError("Unable to get valid HistogramService ")
394  # return the histogram
395  return svc.getAsROOT(path) # RETURN
396 
397 
398 getAsROOT.__doc__ += (
399  "\n\n" + "\thelp(iHistogramSvc.getAsROOT) : \n\n" + iHistogramSvc.getAsROOT.__doc__
400 )
401 
402 
403 # =============================================================================
404 # The function which allows 'the smart fill' of 1D-histogram

Variable Documentation

◆ __all__

tuple GaudiPython.HistoUtils.__all__
private
Initial value:
1 = (
2  "book", # book AIDA histogram using Histogram Service
3  "bookProf", # book AIDA profile histogram using Histogram Service
4  "getAsAIDA", # get the histogram form Histogram Service as AIDA histogram
5  "getAsROOT", # get the histogram form Histogram Service as AIDA histogram
6  "fill", # "power-fill" method for filling of histograms
7  "aida2root", # AIDA -> ROOT converter
8  "HistoStats", # statistical information for 1D-histograms
9  "HistoFile", # class for storing histograms to a file
10  "histoDump", # dump histogramintext format a'la HBOOK "dumpHisto", # dump histogramintext format a'la HBOOK
11 )

Definition at line 41 of file HistoUtils.py.

◆ __author__

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

Definition at line 39 of file HistoUtils.py.

◆ __repr__

GaudiPython.HistoUtils.__repr__
private

Definition at line 536 of file HistoUtils.py.

◆ __str__

GaudiPython.HistoUtils.__str__
private

Definition at line 539 of file HistoUtils.py.

◆ aida2root

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

Definition at line 504 of file HistoUtils.py.

◆ centralMoment

GaudiPython.HistoUtils.centralMoment

Definition at line 898 of file HistoUtils.py.

◆ centralMomentErr

GaudiPython.HistoUtils.centralMomentErr

Definition at line 900 of file HistoUtils.py.

◆ dumpHisto

def GaudiPython.HistoUtils.dumpHisto = __dumpHisto__

Definition at line 992 of file HistoUtils.py.

◆ HID

GaudiPython.HistoUtils.HID = cpp.GaudiAlg.ID

Definition at line 60 of file HistoUtils.py.

◆ histoDump

def GaudiPython.HistoUtils.histoDump = __dumpHisto__

Definition at line 991 of file HistoUtils.py.

◆ HistoStats

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

Definition at line 541 of file HistoUtils.py.

◆ i1DH

GaudiPython.HistoUtils.i1DH = cpp.AIDA.IHistogram1D

Definition at line 891 of file HistoUtils.py.

◆ iBH

GaudiPython.HistoUtils.iBH = cpp.AIDA.IBaseHistogram

Definition at line 959 of file HistoUtils.py.

◆ kurtosis

GaudiPython.HistoUtils.kurtosis

Definition at line 916 of file HistoUtils.py.

◆ kurtosisErr

GaudiPython.HistoUtils.kurtosisErr

Definition at line 918 of file HistoUtils.py.

◆ location

GaudiPython.HistoUtils.location

Definition at line 965 of file HistoUtils.py.

◆ mean

GaudiPython.HistoUtils.mean

Definition at line 904 of file HistoUtils.py.

◆ meanErr

GaudiPython.HistoUtils.meanErr

Definition at line 906 of file HistoUtils.py.

◆ moment

GaudiPython.HistoUtils.moment

Definition at line 894 of file HistoUtils.py.

◆ momentErr

GaudiPython.HistoUtils.momentErr

Definition at line 896 of file HistoUtils.py.

◆ nEff

GaudiPython.HistoUtils.nEff

Definition at line 902 of file HistoUtils.py.

◆ nEntries

GaudiPython.HistoUtils.nEntries

Definition at line 939 of file HistoUtils.py.

◆ nEntriesFrac

GaudiPython.HistoUtils.nEntriesFrac

Definition at line 941 of file HistoUtils.py.

◆ nEntriesFracErr

GaudiPython.HistoUtils.nEntriesFracErr

Definition at line 943 of file HistoUtils.py.

◆ overflowEntriesFrac

GaudiPython.HistoUtils.overflowEntriesFrac

Definition at line 921 of file HistoUtils.py.

◆ overflowEntriesFracErr

GaudiPython.HistoUtils.overflowEntriesFracErr

Definition at line 923 of file HistoUtils.py.

◆ overflowIntegralFrac

GaudiPython.HistoUtils.overflowIntegralFrac

Definition at line 930 of file HistoUtils.py.

◆ overflowIntegralFracErr

GaudiPython.HistoUtils.overflowIntegralFracErr

Definition at line 932 of file HistoUtils.py.

◆ path

GaudiPython.HistoUtils.path

Definition at line 961 of file HistoUtils.py.

◆ rms

GaudiPython.HistoUtils.rms

Definition at line 908 of file HistoUtils.py.

◆ rmsErr

GaudiPython.HistoUtils.rmsErr

Definition at line 910 of file HistoUtils.py.

◆ skewness

GaudiPython.HistoUtils.skewness

Definition at line 912 of file HistoUtils.py.

◆ skewnessErr

GaudiPython.HistoUtils.skewnessErr

Definition at line 914 of file HistoUtils.py.

◆ TESpath

GaudiPython.HistoUtils.TESpath

Definition at line 963 of file HistoUtils.py.

◆ underflowEntriesFrac

GaudiPython.HistoUtils.underflowEntriesFrac

Definition at line 925 of file HistoUtils.py.

◆ underflowEntriesFracErr

GaudiPython.HistoUtils.underflowEntriesFracErr

Definition at line 927 of file HistoUtils.py.

◆ underflowIntegralFrac

GaudiPython.HistoUtils.underflowIntegralFrac

Definition at line 934 of file HistoUtils.py.

◆ underflowIntegralFracErr

GaudiPython.HistoUtils.underflowIntegralFracErr

Definition at line 936 of file HistoUtils.py.

◆ useROOT

bool GaudiPython.HistoUtils.useROOT = False

global flag

Definition at line 63 of file HistoUtils.py.

GaudiPython.HistoUtils._rmsErr_
def _rmsErr_(self)
Definition: HistoUtils.py:710
GaudiPython.HistoUtils.bookProf
def bookProf(*args, **kwargs)
Definition: HistoUtils.py:271
GaudiPython.HistoUtils.getAsAIDA
def getAsAIDA(path, **kwargs)
Definition: HistoUtils.py:355
GaudiPython.HistoUtils._nEntriesFrac_
def _nEntriesFrac_(self, i1, i2=-10000000)
Definition: HistoUtils.py:845
GaudiPython.HistoUtils._meanErr_
def _meanErr_(self)
Definition: HistoUtils.py:690
GaudiPython.HistoUtils._skewnessErr_
def _skewnessErr_(self)
Definition: HistoUtils.py:626
GaudiPython.HistoUtils._overflowEntriesFrac_
def _overflowEntriesFrac_(self)
Definition: HistoUtils.py:738
GaudiPython.HistoUtils.book
def book(*args, **kwargs)
Definition: HistoUtils.py:127
GaudiPython.HistoUtils._underflowEntriesFrac_
def _underflowEntriesFrac_(self)
Definition: HistoUtils.py:758
GaudiPython.HistoUtils._overflowIntegralFrac_
def _overflowIntegralFrac_(self)
Definition: HistoUtils.py:778
GaudiPython.HistoUtils.aida2root
aida2root
Definition: HistoUtils.py:504
GaudiPython.HistoUtils._sumAllBinHeightErr_
def _sumAllBinHeightErr_(self)
Definition: HistoUtils.py:730
GaudiPython.HistoUtils._kurtosis_
def _kurtosis_(self)
Definition: HistoUtils.py:641
GaudiPython.HistoUtils._nEntries_
def _nEntries_(self, i1, i2=-10000000)
Definition: HistoUtils.py:821
GaudiPython.HistoUtils._getAppMgr
def _getAppMgr(**kwargs)
Definition: HistoUtils.py:69
GaudiPython.HistoUtils._momentErr_
def _momentErr_(self, order)
Definition: HistoUtils.py:563
GaudiPython.HistoUtils._overflowEntriesFracErr_
def _overflowEntriesFracErr_(self)
Definition: HistoUtils.py:748
GaudiPython.HistoUtils._underflowIntegralFracErr_
def _underflowIntegralFracErr_(self)
Definition: HistoUtils.py:808
GaudiPython.HistoUtils._path_
def _path_(self)
Definition: HistoUtils.py:948
GaudiPython.HistoUtils._getEvtSvc
def _getEvtSvc(**kwargs)
Definition: HistoUtils.py:110
GaudiPython.HistoUtils._underflowEntriesFracErr_
def _underflowEntriesFracErr_(self)
Definition: HistoUtils.py:768
GaudiPython.HistoUtils._centralMoment_
def _centralMoment_(self, order)
Definition: HistoUtils.py:579
GaudiPython.HistoUtils._rms_
def _rms_(self)
Definition: HistoUtils.py:700
GaudiPython.HistoUtils._to_root_
def _to_root_(self)
Definition: HistoUtils.py:510
GaudiPython.HistoUtils._kurtosisErr_
def _kurtosisErr_(self)
Definition: HistoUtils.py:656
GaudiPython.HistoUtils._getHistoSvc
def _getHistoSvc(**kwargs)
Definition: HistoUtils.py:93
GaudiPython.HistoUtils._nEntriesFracErr_
def _nEntriesFracErr_(self, i1, i2=-10000000)
Definition: HistoUtils.py:869
GaudiPython.HistoUtils._skewness_
def _skewness_(self)
Definition: HistoUtils.py:611
gaudirun.type
type
Definition: gaudirun.py:160
GaudiPython.HistoUtils.fill
def fill(histo, data, fun=lambda x:x, cut=lambda x:True, **kwargs)
Definition: HistoUtils.py:405
GaudiPython.HistoUtils._moment_
def _moment_(self, order, value=0)
Definition: HistoUtils.py:547
GaudiPython.HistoUtils._overflowIntegralFracErr_
def _overflowIntegralFracErr_(self)
Definition: HistoUtils.py:788
GaudiPython.HistoUtils._sumBinHeightErr_
def _sumBinHeightErr_(self)
Definition: HistoUtils.py:720
GaudiPython.HistoUtils._underflowIntegralFrac_
def _underflowIntegralFrac_(self)
Definition: HistoUtils.py:798
GaudiPython.HistoUtils._centralMomentErr_
def _centralMomentErr_(self, order)
Definition: HistoUtils.py:595
GaudiPython.HistoUtils._mean_
def _mean_(self)
Definition: HistoUtils.py:680
GaudiPython.HistoUtils.__dumpHisto__
def __dumpHisto__(histo, *args)
Definition: HistoUtils.py:969
GaudiPython.HistoUtils._nEff_
def _nEff_(self)
Definition: HistoUtils.py:670
GaudiPython.HistoUtils.getAsROOT
def getAsROOT(path, **kwargs)
Definition: HistoUtils.py:382