All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HistoStats.h
Go to the documentation of this file.
1 // $Id: HistoStats.h,v 1.3 2007/09/19 08:16:59 marcocle Exp $
2 // ============================================================================
3 #ifndef GAUDIUTILS_HISTOSTATS_H
4 #define GAUDIUTILS_HISTOSTATS_H 1
5 // ============================================================================
6 // Include files
7 // ============================================================================
8 // STD & STL
9 // ============================================================================
10 #include <utility>
11 // ============================================================================
12 // Gaudi
13 // ============================================================================
14 #include "GaudiKernel/Kernel.h"
15 // ============================================================================
16 // forward declarations
17 // ============================================================================
18 namespace AIDA { class IHistogram1D ; }
19 // ============================================================================
20 namespace Gaudi
21 {
22  namespace Utils
23  {
24  // ========================================================================
32  {
33  public :
34  // ======================================================================
41  static double moment
42  ( const AIDA::IHistogram1D* histo ,
43  const unsigned int order ,
44  const double value = 0 ) ;
45  // ======================================================================
52  static double momentErr
53  ( const AIDA::IHistogram1D* histo ,
54  const unsigned int order ) ;
55  // ======================================================================
62  static double centralMoment
63  ( const AIDA::IHistogram1D* histo ,
64  const unsigned int order ) ;
65  // ======================================================================
74  static double centralMomentErr
75  ( const AIDA::IHistogram1D* histo ,
76  const unsigned int order ) ;
77  // ======================================================================
79  static double skewness
80  ( const AIDA::IHistogram1D* histo ) ;
81  // ======================================================================
83  static double skewnessErr
84  ( const AIDA::IHistogram1D* histo ) ;
85  // ======================================================================
87  static double kurtosis
88  ( const AIDA::IHistogram1D* histo ) ;
89  // ======================================================================
91  static double kurtosisErr
92  ( const AIDA::IHistogram1D* histo ) ;
93  // ======================================================================
95  static double mean
96  ( const AIDA::IHistogram1D* histo ) ;
97  // ======================================================================
99  static double meanErr
100  ( const AIDA::IHistogram1D* histo ) ;
101  // ======================================================================
103  static double rms
104  ( const AIDA::IHistogram1D* histo ) ;
105  // ======================================================================
107  static double rmsErr
108  ( const AIDA::IHistogram1D* histo ) ;
109  // ======================================================================
111  static double nEff
112  ( const AIDA::IHistogram1D* histo ) ;
113  // ======================================================================
115  static double sumBinHeightErr
116  ( const AIDA::IHistogram1D* histo ) ;
117  // ======================================================================
119  static double sumAllBinHeightErr
120  ( const AIDA::IHistogram1D* histo ) ;
121  // ======================================================================
123  static double overflowEntriesFrac
124  ( const AIDA::IHistogram1D* histo ) ;
126  static double underflowEntriesFrac
127  ( const AIDA::IHistogram1D* histo ) ;
129  static double overflowEntriesFracErr
130  ( const AIDA::IHistogram1D* histo ) ;
132  static double underflowEntriesFracErr
133  ( const AIDA::IHistogram1D* histo ) ;
134  // ======================================================================
136  static double overflowIntegralFrac
137  ( const AIDA::IHistogram1D* histo ) ;
139  static double underflowIntegralFrac
140  ( const AIDA::IHistogram1D* histo ) ;
142  static double overflowIntegralFracErr
143  ( const AIDA::IHistogram1D* histo ) ;
145  static double underflowIntegralFracErr
146  ( const AIDA::IHistogram1D* histo ) ;
147  // ======================================================================
155  static long nEntries
156  ( const AIDA::IHistogram1D* histo ,
157  const int imax ) ;
165  static long nEntries
166  ( const AIDA::IHistogram1D* histo ,
167  const int imin , // minimal bin number (included)
168  const int imax ) ;// maximal bin number (not included)
169  // ======================================================================
177  static double nEntriesFrac
178  ( const AIDA::IHistogram1D* histo ,
179  const int imax ) ;
187  static double nEntriesFrac
188  ( const AIDA::IHistogram1D* histo ,
189  const int imin , // minimal bin number (included)
190  const int imax ) ;// maximal bin number (not included)
191  // ======================================================================
199  static double nEntriesFracErr
200  ( const AIDA::IHistogram1D* histo ,
201  const int imax ) ;
209  static double nEntriesFracErr
210  ( const AIDA::IHistogram1D* histo ,
211  const int imin , // minimal bin number (included)
212  const int imax ) ;// maximal bin number (not included)
213  // ======================================================================
214  } ;
215  // ========================================================================
216  } // end of namespace Gaudi::Utils
217  // ==========================================================================
218 } // end of namespace Gaudi
219 // ============================================================================
220 // The END
221 // ============================================================================
222 #endif // GAUDIUTILS_HISTOSTATS_H
223 // ============================================================================
The collection of trivial functions to access the statistical information for the histograms...
Definition: HistoStats.h:31
This is a number of static methods for bootstrapping the Gaudi framework.
Definition: Bootstrap.h:15
#define GAUDI_API
Definition: Kernel.h:108