The Gaudi Framework  v36r1 (3e2fb5a8)
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__
 
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 951 of file HistoUtils.py.

951 def __dumpHisto__(histo, *args):
952  """
953 
954  Dump the histogram/profile in text format (a'la HBOOK)
955 
956  >>> histo
957  >>> print(dumpHisto ( histo ))
958 
959  >>> print(histo.dump())
960  >>> print(histo.dump( 20 , 20 ))
961  >>> print(histo.dump( 20 , 20 , True ))
962 
963  Uses:
964 
965  """
966  return cpp.Gaudi.Utils.Histos.histoDump(histo, *args)
967 
968 
969 __dumpHisto__.__doc__ = '\n' + cpp.Gaudi.Utils.Histos.histoDump.__doc__
970 
971 # =============================================================================
972 # 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 561 of file HistoUtils.py.

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

◆ _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 577 of file HistoUtils.py.

577 def _centralMomentErr_(self, order):
578  """
579  Evaluate error for 'bin-by-bin' central momentum (around mean value)
580  for 1D histogram
581 
582  >>> h1 = ...
583  >>> print(h1.centralMomentErr ( 5 ))
584 
585  """
586  return HistoStats.centralMomentErr(self, order)
587 
588 
589 # =============================================================================
590 # Evaluate 'bin-by-bin' skewness for 1D histogram
591 
592 

◆ _getAppMgr()

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

Definition at line 67 of file HistoUtils.py.

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

◆ _getEvtSvc()

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

Definition at line 108 of file HistoUtils.py.

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

◆ _getHistoSvc()

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

Definition at line 91 of file HistoUtils.py.

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

◆ _kurtosis_()

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

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

Definition at line 623 of file HistoUtils.py.

623 def _kurtosis_(self):
624  """
625  Evaluate 'bin-by-bin' kurtosis
626 
627  >>> h1 = ...
628  >>> print(h1.kurtosis ())
629 
630  """
631  return HistoStats.kurtosis(self)
632 
633 
634 # =============================================================================
635 # Evaluate error for 'bin-by-bin' kurtosis for 1D histogram
636 
637 

◆ _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 638 of file HistoUtils.py.

638 def _kurtosisErr_(self):
639  """
640  Evaluate error for 'bin-by-bin' kurtotis for 1D AIDA histogram
641 
642  >>> h1 = ...
643  >>> print(h1.kurtotisErr())
644 
645  """
646  return HistoStats.kurtosisErr(self)
647 
648 
649 # =============================================================================
650 
651 

◆ _mean_()

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

Definition at line 662 of file HistoUtils.py.

662 def _mean_(self):
663  """
664  Evaluate the MEAN value
665  """
666  return HistoStats.mean(self)
667 
668 
669 # =============================================================================
670 
671 

◆ _meanErr_()

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

Definition at line 672 of file HistoUtils.py.

672 def _meanErr_(self):
673  """
674  Evaluate the error for MEAN estimate
675  """
676  return HistoStats.meanErr(self)
677 
678 
679 # =============================================================================
680 
681 

◆ _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 529 of file HistoUtils.py.

529 def _moment_(self, order, value=0):
530  """
531  Evaluate 'bin-by-bin' momentum of order 'order' around the value 'value'
532  for 1D histogram
533 
534  >>> h1 = ...
535  >>> print(h1.moment ( 5 ))
536 
537  """
538  return HistoStats.moment(self, order, value)
539 
540 
541 # =============================================================================
542 # Evaluate error in 'bin-by-bin' momentum of certain order around the value
543 
544 

◆ _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 545 of file HistoUtils.py.

545 def _momentErr_(self, order):
546  """
547  Evaluate error for 'bin-by-bin' momentum of order 'order' around the value 'value'
548  for 1D histogram
549 
550  >>> h1 = ...
551  >>> print(h1.momentErr ( 5 ))
552 
553  """
554  return HistoStats.momentErr(self, order)
555 
556 
557 # =============================================================================
558 # Evaluate 'bin-by-bin' central momentum (around mean value)
559 
560 

◆ _nEff_()

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

Definition at line 652 of file HistoUtils.py.

652 def _nEff_(self):
653  """
654  Number of equivalent entries
655  """
656  return HistoStats.nEff(self)
657 
658 
659 # =============================================================================
660 
661 

◆ _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 803 of file HistoUtils.py.

803 def _nEntries_(self, i1, i2=-10000000):
804  """
805  Get number of entries in histogram up to the certain bin (not-included)
806 
807  attention: underflow bin is included!
808 
809  >>> h1
810  >>> print(h1.nEntries ( 10 ))
811 
812  Get number of entries in histogram form the certain
813  minimal bin up to the certain maximal bin (not-included)
814 
815  >>> h1
816  >>> print(h1.nEntries ( 10 , 15 ))
817 
818  """
819  if i2 < i1 or i2 < 0:
820  return HistoStats.nEntries(self, i1)
821  return HistoStats.nEntries(self, i1, i2)
822 
823 
824 # =============================================================================
825 
826 

◆ _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 827 of file HistoUtils.py.

827 def _nEntriesFrac_(self, i1, i2=-10000000):
828  """
829  Get the fraction of entries in histogram up to the certain bin (not-included)
830 
831  attention: underflow bin is included!
832 
833  >>> h1
834  >>> print(h1.nEntriesFrac ( 10 ))
835 
836  Get the fraction of entries in histogram form the certain
837  minimal bin up to the certain maximal bin (not-included)
838 
839  >>> h1
840  >>> print(h1.nEntriesFrac ( 10 , 15 ))
841 
842  """
843  if i2 < i1 or i2 < 0:
844  return HistoStats.nEntriesFrac(self, i1)
845  return HistoStats.nEntriesFrac(self, i1, i2)
846 
847 
848 # =============================================================================
849 
850 

◆ _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 851 of file HistoUtils.py.

851 def _nEntriesFracErr_(self, i1, i2=-10000000):
852  """
853  Get error for fraction of entries in histogram up to the certain bin (not-included)
854 
855  attention: underflow bin is included!
856 
857  >>> h1
858  >>> print(h1.nEntriesFracErr( 10 ))
859 
860  Get error fraction of entries in histogram form the certain
861  minimal bin up to the certain maximal bin (not-included)
862 
863  >>> h1
864  >>> print(h1.nEntriesFracErr ( 10 , 15 ))
865 
866  """
867  if i2 < i1 or i2 < 0:
868  return HistoStats.nEntriesFracErr(self, i1)
869  return HistoStats.nEntriesFracErr(self, i1, i2)
870 
871 
872 # =============================================================================

◆ _overflowEntriesFrac_()

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

Definition at line 720 of file HistoUtils.py.

720 def _overflowEntriesFrac_(self):
721  """
722  The fraction of overflow entries (useful for shape comparison)
723  """
724  return HistoStats.overflowEntriesFrac(self)
725 
726 
727 # =============================================================================
728 
729 

◆ _overflowEntriesFracErr_()

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

Definition at line 730 of file HistoUtils.py.

730 def _overflowEntriesFracErr_(self):
731  """
732  The error for fraction of overflow entries (useful for shape comparison)
733  """
734  return HistoStats.overflowEntriesFracErr(self)
735 
736 
737 # =============================================================================
738 
739 

◆ _overflowIntegralFrac_()

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

Definition at line 760 of file HistoUtils.py.

760 def _overflowIntegralFrac_(self):
761  """
762  The fraction of overflow integral (useful for shape comparison)
763  """
764  return HistoStats.overflowIntegralFrac(self)
765 
766 
767 # =============================================================================
768 
769 

◆ _overflowIntegralFracErr_()

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

Definition at line 770 of file HistoUtils.py.

770 def _overflowIntegralFracErr_(self):
771  """
772  The error for fraction of overflow integral (useful for shape comparison)
773  """
774  return HistoStats.overflowIntegralFracErr(self)
775 
776 
777 # =============================================================================
778 
779 

◆ _path_()

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

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

Definition at line 930 of file HistoUtils.py.

930 def _path_(self):
931  """
932  Get the path in THS for the given AIDA object:
933 
934  >>> aida =
935  >>> print(aida.path())
936 
937  """
938  return cpp.Gaudi.Utils.Histos.path(self)
939 
940 

◆ _rms_()

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

Definition at line 682 of file HistoUtils.py.

682 def _rms_(self):
683  """
684  Evaluate the RMS for AIDA histogram
685  """
686  return HistoStats.rms(self)
687 
688 
689 # =============================================================================
690 
691 

◆ _rmsErr_()

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

Definition at line 692 of file HistoUtils.py.

692 def _rmsErr_(self):
693  """
694  Evaluate the error for RMS estimate
695  """
696  return HistoStats.rmsErr(self)
697 
698 
699 # =============================================================================
700 
701 

◆ _skewness_()

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

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

Definition at line 593 of file HistoUtils.py.

593 def _skewness_(self):
594  """
595  Evaluate 'bin-by-bin' skewness for 1D AIDA histogram
596 
597  >>> h1 = ...
598  >>> print(h1.skewness())
599 
600  """
601  return HistoStats.skewness(self)
602 
603 
604 # =============================================================================
605 # Evaluate error for 'bin-by-bin' skewness for 1D histogram
606 
607 

◆ _skewnessErr_()

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

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

Definition at line 608 of file HistoUtils.py.

608 def _skewnessErr_(self):
609  """
610  Evaluate error for 'bin-by-bin' skewness
611 
612  >>> h1 = ...
613  >>> print(h1.skewnessErr())
614 
615  """
616  return HistoStats.skewnessErr(self)
617 
618 
619 # =============================================================================
620 # Evaluate 'bin-by-bin' kurtosis for 1D histogram
621 
622 

◆ _sumAllBinHeightErr_()

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

Definition at line 712 of file HistoUtils.py.

712 def _sumAllBinHeightErr_(self):
713  """ Get an error in the sum bin height ('in-range integral') """
714  return HistoStats.sumAllBinHeightErr(self)
715 
716 
717 # =============================================================================
718 
719 

◆ _sumBinHeightErr_()

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

Definition at line 702 of file HistoUtils.py.

702 def _sumBinHeightErr_(self):
703  """
704  Get an error in the sum bin height ('in-range integral')
705  """
706  return HistoStats.sumBinHeightErr(self)
707 
708 
709 # =============================================================================
710 
711 

◆ _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 498 of file HistoUtils.py.

498 def _to_root_(self):
499  """
500  Convert AIDA to ROOT
501 
502  >>> aida = ... ## get AIDA histogram
503  >>> root = aida.toROOT() ## convert it to ROOT
504 
505  """
506  return aida2root(self)
507 
508 
509 _to_root_.__doc__ += aida2root.__doc__
510 

◆ _underflowEntriesFrac_()

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

Definition at line 740 of file HistoUtils.py.

740 def _underflowEntriesFrac_(self):
741  """
742  The fraction of underflow entries (useful for shape comparison)
743  """
744  return HistoStats.underflowEntriesFrac(self)
745 
746 
747 # =============================================================================
748 
749 

◆ _underflowEntriesFracErr_()

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

Definition at line 750 of file HistoUtils.py.

750 def _underflowEntriesFracErr_(self):
751  """
752  The error for fraction of underflow entries (useful for shape comparison)
753  """
754  return HistoStats.underflowEntriesFracErr(self)
755 
756 
757 # =============================================================================
758 
759 

◆ _underflowIntegralFrac_()

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

Definition at line 780 of file HistoUtils.py.

780 def _underflowIntegralFrac_(self):
781  """
782  The fraction of underflow integral (useful for shape comparison)
783  """
784  return HistoStats.underflowIntegralFrac(self)
785 
786 
787 # =============================================================================
788 
789 

◆ _underflowIntegralFracErr_()

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

Definition at line 790 of file HistoUtils.py.

791  """
792  The error for fraction of underflow integral (useful for shape comparison)
793  """
794  return HistoStats.underflowIntegralFracErr(self)
795 
796 
797 # =============================================================================
798 # get number of entries in histogram up to the certain bin (not-included)
799 # get number of entries in histogram form the certain
800 # minimal bin up to the certain maximal bin (not-included)
801 
802 

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

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

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

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

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

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

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

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

372 def getAsROOT(path, **kwargs):
373  """
374 
375  The most trivial function to retrieve the histogram from Histogram Transient Store
376  The histogram is returned by reference to its underlying native ROOT-representation (if possible)
377 
378  >>> h = getAsROOT ( 'some/path/to/my/histogram' )
379 
380  """
381  svc = _getHistoSvc(**kwargs)
382  if not svc:
383  raise RuntimeError('Unable to get valid HistogramService ')
384  # return the histogram
385  return svc.getAsROOT(path) # RETURN
386 
387 
388 getAsROOT.__doc__ += '\n\n' + '\thelp(iHistogramSvc.getAsROOT) : \n\n' \
389  + iHistogramSvc.getAsROOT . __doc__
390 
391 
392 # =============================================================================
393 # 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 40 of file HistoUtils.py.

◆ __author__

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

Definition at line 38 of file HistoUtils.py.

◆ __repr__

GaudiPython.HistoUtils.__repr__
private

Definition at line 519 of file HistoUtils.py.

◆ __str__

GaudiPython.HistoUtils.__str__
private

Definition at line 521 of file HistoUtils.py.

◆ aida2root

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

Definition at line 492 of file HistoUtils.py.

◆ centralMoment

GaudiPython.HistoUtils.centralMoment

Definition at line 880 of file HistoUtils.py.

◆ centralMomentErr

GaudiPython.HistoUtils.centralMomentErr

Definition at line 882 of file HistoUtils.py.

◆ dumpHisto

def GaudiPython.HistoUtils.dumpHisto = __dumpHisto__

Definition at line 974 of file HistoUtils.py.

◆ histoDump

def GaudiPython.HistoUtils.histoDump = __dumpHisto__

Definition at line 973 of file HistoUtils.py.

◆ HistoStats

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

Definition at line 523 of file HistoUtils.py.

◆ i1DH

GaudiPython.HistoUtils.i1DH = cpp.AIDA.IHistogram1D

Definition at line 873 of file HistoUtils.py.

◆ iBH

GaudiPython.HistoUtils.iBH = cpp.AIDA.IBaseHistogram

Definition at line 941 of file HistoUtils.py.

◆ kurtosis

GaudiPython.HistoUtils.kurtosis

Definition at line 898 of file HistoUtils.py.

◆ kurtosisErr

GaudiPython.HistoUtils.kurtosisErr

Definition at line 900 of file HistoUtils.py.

◆ location

GaudiPython.HistoUtils.location

Definition at line 947 of file HistoUtils.py.

◆ mean

GaudiPython.HistoUtils.mean

Definition at line 886 of file HistoUtils.py.

◆ meanErr

GaudiPython.HistoUtils.meanErr

Definition at line 888 of file HistoUtils.py.

◆ moment

GaudiPython.HistoUtils.moment

Definition at line 876 of file HistoUtils.py.

◆ momentErr

GaudiPython.HistoUtils.momentErr

Definition at line 878 of file HistoUtils.py.

◆ nEff

GaudiPython.HistoUtils.nEff

Definition at line 884 of file HistoUtils.py.

◆ nEntries

GaudiPython.HistoUtils.nEntries

Definition at line 921 of file HistoUtils.py.

◆ nEntriesFrac

GaudiPython.HistoUtils.nEntriesFrac

Definition at line 923 of file HistoUtils.py.

◆ nEntriesFracErr

GaudiPython.HistoUtils.nEntriesFracErr

Definition at line 925 of file HistoUtils.py.

◆ overflowEntriesFrac

GaudiPython.HistoUtils.overflowEntriesFrac

Definition at line 903 of file HistoUtils.py.

◆ overflowEntriesFracErr

GaudiPython.HistoUtils.overflowEntriesFracErr

Definition at line 905 of file HistoUtils.py.

◆ overflowIntegralFrac

GaudiPython.HistoUtils.overflowIntegralFrac

Definition at line 912 of file HistoUtils.py.

◆ overflowIntegralFracErr

GaudiPython.HistoUtils.overflowIntegralFracErr

Definition at line 914 of file HistoUtils.py.

◆ path

GaudiPython.HistoUtils.path

Definition at line 943 of file HistoUtils.py.

◆ rms

GaudiPython.HistoUtils.rms

Definition at line 890 of file HistoUtils.py.

◆ rmsErr

GaudiPython.HistoUtils.rmsErr

Definition at line 892 of file HistoUtils.py.

◆ skewness

GaudiPython.HistoUtils.skewness

Definition at line 894 of file HistoUtils.py.

◆ skewnessErr

GaudiPython.HistoUtils.skewnessErr

Definition at line 896 of file HistoUtils.py.

◆ TESpath

GaudiPython.HistoUtils.TESpath

Definition at line 945 of file HistoUtils.py.

◆ underflowEntriesFrac

GaudiPython.HistoUtils.underflowEntriesFrac

Definition at line 907 of file HistoUtils.py.

◆ underflowEntriesFracErr

GaudiPython.HistoUtils.underflowEntriesFracErr

Definition at line 909 of file HistoUtils.py.

◆ underflowIntegralFrac

GaudiPython.HistoUtils.underflowIntegralFrac

Definition at line 916 of file HistoUtils.py.

◆ underflowIntegralFracErr

GaudiPython.HistoUtils.underflowIntegralFracErr

Definition at line 918 of file HistoUtils.py.

◆ useROOT

bool GaudiPython.HistoUtils.useROOT = False

global flag

Definition at line 61 of file HistoUtils.py.

GaudiPython.HistoUtils._rmsErr_
def _rmsErr_(self)
Definition: HistoUtils.py:692
GaudiPython.HistoUtils.bookProf
def bookProf(*args, **kwargs)
Definition: HistoUtils.py:267
GaudiPython.HistoUtils.getAsAIDA
def getAsAIDA(path, **kwargs)
Definition: HistoUtils.py:347
GaudiPython.HistoUtils._nEntriesFrac_
def _nEntriesFrac_(self, i1, i2=-10000000)
Definition: HistoUtils.py:827
GaudiPython.HistoUtils._meanErr_
def _meanErr_(self)
Definition: HistoUtils.py:672
GaudiPython.HistoUtils._skewnessErr_
def _skewnessErr_(self)
Definition: HistoUtils.py:608
GaudiPython.HistoUtils._overflowEntriesFrac_
def _overflowEntriesFrac_(self)
Definition: HistoUtils.py:720
GaudiPython.HistoUtils.book
def book(*args, **kwargs)
Definition: HistoUtils.py:125
GaudiPython.HistoUtils._underflowEntriesFrac_
def _underflowEntriesFrac_(self)
Definition: HistoUtils.py:740
GaudiPython.HistoUtils._overflowIntegralFrac_
def _overflowIntegralFrac_(self)
Definition: HistoUtils.py:760
GaudiPython.HistoUtils.aida2root
aida2root
Definition: HistoUtils.py:492
GaudiPython.HistoUtils._sumAllBinHeightErr_
def _sumAllBinHeightErr_(self)
Definition: HistoUtils.py:712
GaudiPython.HistoUtils._kurtosis_
def _kurtosis_(self)
Definition: HistoUtils.py:623
GaudiPython.HistoUtils._nEntries_
def _nEntries_(self, i1, i2=-10000000)
Definition: HistoUtils.py:803
GaudiPython.HistoUtils._getAppMgr
def _getAppMgr(**kwargs)
Definition: HistoUtils.py:67
GaudiPython.HistoUtils._momentErr_
def _momentErr_(self, order)
Definition: HistoUtils.py:545
GaudiPython.HistoUtils._overflowEntriesFracErr_
def _overflowEntriesFracErr_(self)
Definition: HistoUtils.py:730
GaudiPython.HistoUtils._underflowIntegralFracErr_
def _underflowIntegralFracErr_(self)
Definition: HistoUtils.py:790
GaudiPython.HistoUtils._path_
def _path_(self)
Definition: HistoUtils.py:930
GaudiPython.HistoUtils._getEvtSvc
def _getEvtSvc(**kwargs)
Definition: HistoUtils.py:108
GaudiPython.HistoUtils._underflowEntriesFracErr_
def _underflowEntriesFracErr_(self)
Definition: HistoUtils.py:750
GaudiPython.HistoUtils._centralMoment_
def _centralMoment_(self, order)
Definition: HistoUtils.py:561
GaudiPython.HistoUtils._rms_
def _rms_(self)
Definition: HistoUtils.py:682
GaudiPython.HistoUtils._to_root_
def _to_root_(self)
Definition: HistoUtils.py:498
GaudiPython.HistoUtils._kurtosisErr_
def _kurtosisErr_(self)
Definition: HistoUtils.py:638
GaudiPython.HistoUtils._getHistoSvc
def _getHistoSvc(**kwargs)
Definition: HistoUtils.py:91
GaudiPython.HistoUtils._nEntriesFracErr_
def _nEntriesFracErr_(self, i1, i2=-10000000)
Definition: HistoUtils.py:851
GaudiPython.HistoUtils._skewness_
def _skewness_(self)
Definition: HistoUtils.py:593
gaudirun.type
type
Definition: gaudirun.py:154
GaudiPython.HistoUtils.fill
def fill(histo, data, fun=lambda x:x, cut=lambda x:True, **kwargs)
Definition: HistoUtils.py:394
GaudiPython.HistoUtils._moment_
def _moment_(self, order, value=0)
Definition: HistoUtils.py:529
GaudiPython.HistoUtils._overflowIntegralFracErr_
def _overflowIntegralFracErr_(self)
Definition: HistoUtils.py:770
GaudiPython.HistoUtils._sumBinHeightErr_
def _sumBinHeightErr_(self)
Definition: HistoUtils.py:702
GaudiPython.HistoUtils._underflowIntegralFrac_
def _underflowIntegralFrac_(self)
Definition: HistoUtils.py:780
GaudiPython.HistoUtils._centralMomentErr_
def _centralMomentErr_(self, order)
Definition: HistoUtils.py:577
GaudiPython.HistoUtils._mean_
def _mean_(self)
Definition: HistoUtils.py:662
GaudiPython.HistoUtils.__dumpHisto__
def __dumpHisto__(histo, *args)
Definition: HistoUtils.py:951
GaudiPython.HistoUtils._nEff_
def _nEff_(self)
Definition: HistoUtils.py:652
GaudiPython.HistoUtils.getAsROOT
def getAsROOT(path, **kwargs)
Definition: HistoUtils.py:372