#include <GenHisto1D.h>
Inheritance diagram for GenHisto1D:

Public Methods | |
| virtual std::string | title () const |
| ========================================================================== From the IHistogram interface ========================================================================== -------------------------------------------------------------------------- Histogram characteristics -------------------------------------------------------------------------- Title of the histogram (temporary functions, as the title will be part od the annotation, and there will be general accessors for any pair stored there). More... | |
| virtual void | setTitle ( std::string value ) |
| virtual int | dimensions () const |
| Number of dimensions (1 for 1D histogram, 2 for 2D histogram, etc.). More... | |
| virtual void | reset () |
| Reset contents. More... | |
| virtual int | entries () const |
| -------------------------------------------------------------------------- Total number of entries in the whole histogram (number of fills) -------------------------------------------------------------------------- Number of in-range entries in the whole histogram. More... | |
| virtual int | allEntries () const |
| Number of all entries in all (both in-range and extra) bins in the whole histogram. More... | |
| virtual int | extraEntries () const |
| Number of extra entries in the whole histogram. More... | |
| virtual double | equivalentBinEntries () const |
| Number of equivalent entries SUM[ weight ] ^ 2 / SUM[ weight^2 ]. More... | |
| virtual double | sumBinHeights () const |
| -------------------------------------------------------------------------- Sums of bin heights (height respects weights of entries) -------------------------------------------------------------------------- Sum of in-range bin heights in the whole histogram. More... | |
| virtual double | sumAllBinHeights () const |
| Sum of all (both in-range and extra) bin heights in the whole histogram. More... | |
| virtual double | sumExtraBinHeights () const |
| Sum of extra bin heights in the whole histogram. More... | |
| virtual void | fill ( double x, double weight = 1 ) |
| ========================================================================== From the IHistogram1D interface ========================================================================== -------------------------------------------------------------------------- Histogram characteristics -------------------------------------------------------------------------- Fill histogram. More... | |
| virtual int | binEntries ( int index ) const |
| -------------------------------------------------------------------------- Entries The index accepts UNDERFLOW_BIN, values from 0 to N-1, or OVERFLOW_BIN -------------------------------------------------------------------------- Number of entries in a specific in-range bin (number of fills). More... | |
| virtual double | binHeight ( int index ) const |
| Height of a specific in-range bin (height respects weights of entries). More... | |
| virtual double | binError ( int index ) const |
| Bin contents error. More... | |
| virtual double | mean () const |
| -------------------------------------------------------------------------- Statistics -------------------------------------------------------------------------- mean() returns the mean of the whole histogram as calculated on filling-time. More... | |
| virtual double | rms () const |
| rms() returns the rms of the whole histogram as calculated on filling-time. More... | |
| virtual double | minBinHeight () const |
| -------------------------------------------------------------------------- Minimum and maximum heights and bins -------------------------------------------------------------------------- Min height of in-range bins in the whole histogram. More... | |
| virtual int | minBin () const |
| Index of the in-range bin containing the minBinHeight(). More... | |
| virtual double | maxBinHeight () const |
| Max height of in-range bins in the whole histogram. More... | |
| virtual int | maxBin () const |
| Index of the in-range bin containing the maxBinHeight(). More... | |
| virtual IAxis* | xAxis () const |
| -------------------------------------------------------------------------- Axis -------------------------------------------------------------------------- Get the X axis. More... | |
| virtual int | coordToIndex ( double coord ) const |
| -------------------------------------------------------------------------- Conversions between coordinates and bin indices -------------------------------------------------------------------------- Equivalent to xAxis().coordToIndex( coord );. More... | |
| virtual std::ostream& | print ( std::ostream& s ) const |
| Print (ASCII) the histogram into the output stream. More... | |
| virtual std::ostream& | write ( std::ostream& s ) const |
| -------------------------------------------------------------------------- Print functions (ASCII table containing numbers e.g. bin height) Write (ASCII) the histogram table into the output stream. More... | |
| virtual int | write ( const char* file_name ) const |
| Write (ASCII) the histogram table into a file. More... | |
Protected Methods | |
| GenHisto1D ( const std::string& title, const std::string& histoID, int nBinsX, double lowX, double highX, End_Point_Convention ) | |
| -------------------------------------------------------------------------- Constructors for 1D histogram with fixed binning --------------------------------------------------------------------------. More... | |
| GenHisto1D ( const std::string& title, int histoID, int nBinsX, double lowX, double highX, End_Point_Convention ) | |
| GenHisto1D ( const std::string& title, const std::string& histoID, std::vector<double> edges, End_Point_Convention ) | |
| -------------------------------------------------------------------------- Constructors for 1D histogram with variable binning --------------------------------------------------------------------------. More... | |
| GenHisto1D ( const std::string& title, int histoID, std::vector<double> edges, End_Point_Convention ) | |
| GenHisto1D ( const std::string& title, Histo1D& h, int nBinsX, double lowX, double highX, End_Point_Convention ) | |
| -------------------------------------------------------------------------- Copy constructors for 1D histogram (const and non-const) --------------------------------------------------------------------------. More... | |
| GenHisto1D ( const std::string& title, Histo1DVar& h, std::vector<double>& edges, End_Point_Convention ) | |
| virtual | ~GenHisto1D () |
| -------------------------------------------------------------------------- Destructor --------------------------------------------------------------------------. More... | |
| virtual int | checkIndex ( int index ) const |
| -------------------------------------------------------------------------- Checks validity of the index -------------------------------------------------------------------------- Checks validity of the index, assuming bin indices from "0" to "number of bins - 1". More... | |
Protected Attributes | |
| TYPE* | m_histogram |
| -------------------------------------------------------------------------- Data members -------------------------------------------------------------------------- Concrete histogram. More... | |
| Axis* | m_xAxis |
| X axis. More... | |
|
||||||||||||||
|
-------------------------------------------------------------------------- Constructors for 1D histogram with fixed binning --------------------------------------------------------------------------.
Definition at line 57 of file GenHisto1D.h. |
|
||||||||||||||
|
Definition at line 74 of file GenHisto1D.h. |
|
||||||||||
|
-------------------------------------------------------------------------- Constructors for 1D histogram with variable binning --------------------------------------------------------------------------.
Definition at line 98 of file GenHisto1D.h. |
|
||||||||||
|
Definition at line 112 of file GenHisto1D.h. |
|
||||||||||||||
|
-------------------------------------------------------------------------- Copy constructors for 1D histogram (const and non-const) --------------------------------------------------------------------------.
Definition at line 133 of file GenHisto1D.h. |
|
||||||||||
|
Definition at line 148 of file GenHisto1D.h. |
|
||||
|
-------------------------------------------------------------------------- Destructor --------------------------------------------------------------------------.
Definition at line 165 of file GenHisto1D.h. |
|
||||
|
Number of all entries in all (both in-range and extra) bins in the whole histogram.
Definition at line 218 of file GenHisto1D.h. |
|
||||
|
-------------------------------------------------------------------------- Entries The index accepts UNDERFLOW_BIN, values from 0 to N-1, or OVERFLOW_BIN -------------------------------------------------------------------------- Number of entries in a specific in-range bin (number of fills).
Definition at line 275 of file GenHisto1D.h. |
|
||||
|
Bin contents error.
Definition at line 301 of file GenHisto1D.h. Referenced by write(). |
|
||||
|
Height of a specific in-range bin (height respects weights of entries).
Definition at line 288 of file GenHisto1D.h. Referenced by sumExtraBinHeights(), and write(). |
|
||||
|
-------------------------------------------------------------------------- Checks validity of the index -------------------------------------------------------------------------- Checks validity of the index, assuming bin indices from "0" to "number of bins - 1".
Definition at line 433 of file GenHisto1D.h. Referenced by binEntries(), binError(), and binHeight(). |
|
||||
|
-------------------------------------------------------------------------- Conversions between coordinates and bin indices -------------------------------------------------------------------------- Equivalent to xAxis().coordToIndex( coord );.
Definition at line 383 of file GenHisto1D.h. |
|
||||
|
Number of dimensions (1 for 1D histogram, 2 for 2D histogram, etc.).
Definition at line 197 of file GenHisto1D.h. |
|
||||
|
-------------------------------------------------------------------------- Total number of entries in the whole histogram (number of fills) -------------------------------------------------------------------------- Number of in-range entries in the whole histogram.
Definition at line 212 of file GenHisto1D.h. |
|
||||
|
Number of equivalent entries SUM[ weight ] ^ 2 / SUM[ weight^2 ].
Definition at line 229 of file GenHisto1D.h. |
|
||||
|
Number of extra entries in the whole histogram.
Definition at line 223 of file GenHisto1D.h. |
|
||||||
|
========================================================================== From the IHistogram1D interface ========================================================================== -------------------------------------------------------------------------- Histogram characteristics -------------------------------------------------------------------------- Fill histogram.
Definition at line 264 of file GenHisto1D.h. |
|
||||
|
Index of the in-range bin containing the maxBinHeight().
Definition at line 356 of file GenHisto1D.h. |
|
||||
|
Max height of in-range bins in the whole histogram.
Definition at line 352 of file GenHisto1D.h. |
|
||||
|
-------------------------------------------------------------------------- Statistics -------------------------------------------------------------------------- mean() returns the mean of the whole histogram as calculated on filling-time.
Definition at line 320 of file GenHisto1D.h. |
|
||||
|
Index of the in-range bin containing the minBinHeight().
Definition at line 340 of file GenHisto1D.h. |
|
||||
|
-------------------------------------------------------------------------- Minimum and maximum heights and bins -------------------------------------------------------------------------- Min height of in-range bins in the whole histogram.
Definition at line 336 of file GenHisto1D.h. |
|
||||
|
Print (ASCII) the histogram into the output stream.
Definition at line 396 of file GenHisto1D.h. Referenced by HistogramSvc::print(). |
|
||||
|
Reset contents.
Definition at line 202 of file GenHisto1D.h. |
|
||||
|
rms() returns the rms of the whole histogram as calculated on filling-time.
Definition at line 326 of file GenHisto1D.h. |
|
||||
|
Definition at line 189 of file GenHisto1D.h. Referenced by GenHisto1D(). |
|
||||
|
Sum of all (both in-range and extra) bin heights in the whole histogram.
Definition at line 244 of file GenHisto1D.h. |
|
||||
|
-------------------------------------------------------------------------- Sums of bin heights (height respects weights of entries) -------------------------------------------------------------------------- Sum of in-range bin heights in the whole histogram.
Definition at line 239 of file GenHisto1D.h. Referenced by sumAllBinHeights(). |
|
||||
|
Sum of extra bin heights in the whole histogram.
Definition at line 249 of file GenHisto1D.h. Referenced by sumAllBinHeights(). |
|
||||
|
========================================================================== From the IHistogram interface ========================================================================== -------------------------------------------------------------------------- Histogram characteristics -------------------------------------------------------------------------- Title of the histogram (temporary functions, as the title will be part od the annotation, and there will be general accessors for any pair stored there).
Definition at line 186 of file GenHisto1D.h. |
|
||||
|
Write (ASCII) the histogram table into a file.
Definition at line 418 of file GenHisto1D.h. |
|
||||
|
-------------------------------------------------------------------------- Print functions (ASCII table containing numbers e.g. bin height) Write (ASCII) the histogram table into the output stream.
Definition at line 406 of file GenHisto1D.h. Referenced by HistogramSvc::write(). |
|
||||
|
-------------------------------------------------------------------------- Axis -------------------------------------------------------------------------- Get the X axis.
Definition at line 373 of file GenHisto1D.h. Referenced by coordToIndex(). |
|
|||
|
-------------------------------------------------------------------------- Data members -------------------------------------------------------------------------- Concrete histogram.
Definition at line 443 of file GenHisto1D.h. |
|
|||
|
X axis.
Definition at line 446 of file GenHisto1D.h. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000