![]() |
Reference Documentation |
#include <AIDAHistogram2D.h>
Public Methods | |
AIDAHistogram2D (const char *name="", const int &nBinsX=2, const double &lowX=0.0, const double &highX=1.0, const int &nBinsY=2, const double &lowY=0.0, const double &highY=1.0, const Anaphe::IAnnotation *=0, const Anaphe::IHistogramFactory *=0) | |
AIDAHistogram2D (const CHBookHisto2 *, const Anaphe::IHistogramFactory *=0) | |
AIDAHistogram2D (const HistoParameters2D &hp, const Anaphe::IAnnotation *=0, const Anaphe::IHistogramFactory *=0) | |
virtual | ~AIDAHistogram2D () |
virtual AIDA_STD::string | title () const |
virtual void | setTitle (const AIDA_STD::string &value) |
virtual Anaphe::IAnnotation * | annotation () |
Annotation of the histogram. | |
virtual int | dimensions () const |
Number of dimensions (1 for 1D histogram, 2 for 2D histogram, etc.). | |
virtual void | reset () |
Reset contents. | |
virtual int | entries () const |
Number of in-range entries in the whole histogram. | |
virtual int | allEntries () const |
virtual int | extraEntries () const |
Number of extra entries in the whole histogram. | |
virtual double | equivalentBinEntries () const |
virtual double | sumBinHeights () const |
Sum of in-range bin heights in the whole histogram. | |
virtual double | sumAllBinHeights () const |
Sum of all (both in-range and extra) bin heights in the whole histogram. | |
virtual double | sumExtraBinHeights () const |
Sum of extra bin heights in the whole histogram. | |
virtual void | fill (double x, double y, double weight=1) |
Fill histogram. | |
virtual int | binEntries (int indexX, int indexY) const |
Number of entries in a specific in-range bin (number of fills). | |
virtual int | binEntriesX (int indexX) const |
virtual int | binEntriesY (int indexY) const |
virtual double | binHeight (int indexX, int indexY) const |
Height of a specific in-range bin (height respects weights of entries). | |
virtual double | binHeightX (int indexX) const |
virtual double | binHeightY (int indexY) const |
virtual double | binError (int indexX, int indexY) const |
Bin contents error. | |
virtual double | meanX () const |
virtual double | meanY () const |
virtual double | rmsX () const |
virtual double | rmsY () const |
virtual double | minBinHeight () const |
Min height of in-range bins in the whole histogram. | |
virtual int | minBinX () const |
IndexX of the in-range bin containing the minBinHeight(). | |
virtual int | minBinY () const |
IndexY of the in-range bin containing the minBinHeight(). | |
virtual double | maxBinHeight () const |
Max height of in-range bins in the whole histogram. | |
virtual int | maxBinX () const |
IndexX of the in-range bin containing the maxBinHeight(). | |
virtual int | maxBinY () const |
IndexY of the in-range bin containing the maxBinHeight(). | |
virtual Anaphe::IAxis * | xAxis () const |
Get the X axis. | |
virtual Anaphe::IAxis * | yAxis () const |
Get the Y axis. | |
virtual int | coordToIndexX (double coordX) const |
Equivalent to xAxis().coordToIndex( coordX );. | |
virtual int | coordToIndexY (double coordY) const |
Equivalent to yAxis().coordToIndex( coordY );. | |
virtual Anaphe::IHistogram1D * | projectionX () const |
virtual Anaphe::IHistogram1D * | projectionY () const |
virtual Anaphe::IHistogram1D * | sliceX (int indexY) const |
virtual Anaphe::IHistogram1D * | sliceY (int indexX) const |
virtual Anaphe::IHistogram1D * | sliceX (int, int) const |
Slice parallel with the axis X, between indexY1 and indexY2. | |
virtual Anaphe::IHistogram1D * | sliceY (int, int) const |
Slice parallel with the axis Y, between indexX1 and indexX2. | |
virtual AIDA_STD::ostream & | print (AIDA_STD::ostream &s) const |
Print (ASCII) the histogram into the output stream. | |
virtual AIDA_STD::ostream & | write (AIDA_STD::ostream &s) const |
Write (ASCII) the histogram table into the output stream. | |
virtual int | write (const char *file_name) const |
Write (ASCII) the histogram table into a file. | |
const CHBookHisto2 * | representation () const |
========================================================================== access to internal histogram (not in Abstract Interface !) | |
Private Methods | |
virtual int | calcIndex (double coord, int part) const |
Calculate the index from a given coordinate in a given partition. | |
virtual int | checkIndexX (int indexX) const |
virtual int | checkIndexY (int indexY) const |
virtual int | getIntFromString (const AIDA_STD::string &) const |
virtual AIDA_STD::string | getStringFromInt (const int &) const |
virtual Anaphe::IHistogram1D * | slice (const int &low, const int &hi, const int &axis) const |
virtual bool | goodIndices (const int &i, const int &j, const int &axis) const |
virtual AIDA_STD::string | binname (const int &) const |
void | notYetMessage (const AIDA_STD::string &featureName) const |
void | crisisMessage (const AIDA_STD::string &featureName) const |
Private Attributes | |
Anaphe::IAxis * | xaxis |
Anaphe::IAxis * | yaxis |
Anaphe::IAnnotation * | ann |
Anaphe::IHistogramFactory * | factory |
CHBookHisto2 * | rep |
bool | ownsRep |
|
-------------------------------------------------------------------------- Constructors for 2D histogram with fixed binning -------------------------------------------------------------------------- Definition at line 78 of file AIDAHistogram2D.cpp. References ann, getIntFromString(), getStringFromInt(), rep, xaxis, and yaxis. |
|
Definition at line 114 of file AIDAHistogram2D.cpp. References ann, getStringFromInt(), rep, xaxis, and yaxis. |
|
Definition at line 47 of file AIDAHistogram2D.cpp. References ann, Anaphe::AIDA_HBook::Builder::buildFrom(), getIntFromString(), getStringFromInt(), Anaphe::AIDA_HBook::Builder::noWarnings(), rep, xaxis, and yaxis. |
|
-------------------------------------------------------------------------- Destructor -------------------------------------------------------------------------- Definition at line 144 of file AIDAHistogram2D.cpp. |
|
Number of all entries in all (both in-range and extra) bins in the whole histogram Definition at line 226 of file AIDAHistogram2D.cpp. References crisisMessage(), and rep. Referenced by entries(). |
|
Definition at line 187 of file AIDAHistogram2D.cpp. References ann. |
|
-------------------------------------------------------------------------- Entries The indexX accepts UNDERFLOW_BIN, values from 0 to Nx-1, or OVERFLOW_BIN The indexY accepts UNDERFLOW_BIN, values from 0 to Ny-1, or OVERFLOW_BIN NW | N | NE ---------------------------- W | in-range bins | E -------------------------- SW | S | SE -------------------------------------------------------------------------- Definition at line 304 of file AIDAHistogram2D.cpp. References binHeight(), crisisMessage(), and rep. |
|
Total number of entries in the projected slice to the axis X Equivalent to projectionX().binEntries( indexX ); Definition at line 315 of file AIDAHistogram2D.cpp. References projectionX(). |
|
Total number of entries in the projected slice to the axis Y Equivalent to projectionY().binEntries( indexY ); Definition at line 329 of file AIDAHistogram2D.cpp. References projectionY(). |
|
Definition at line 387 of file AIDAHistogram2D.cpp. References crisisMessage(), and rep. |
|
Definition at line 342 of file AIDAHistogram2D.cpp. References crisisMessage(), and rep. Referenced by binEntries(), and slice(). |
|
Total number of bin heights in the projected slice to to axis X Equivalent to projectionX().binHeight( indexX ); Definition at line 360 of file AIDAHistogram2D.cpp. References projectionX(). |
|
Total number of bin heights in the projected slice to to axis Y Equivalent to projectionY().binHeight( indexY ); Definition at line 374 of file AIDAHistogram2D.cpp. References projectionY(). |
|
Definition at line 803 of file AIDAHistogram2D.cpp. References getStringFromInt(). Referenced by slice(). |
|
Definition at line 681 of file AIDAHistogram2D.cpp. |
|
Checks validity of the indexX, assuming bin indices from "0" to "number of bins - 1" Definition at line 693 of file AIDAHistogram2D.cpp. References Anaphe::AIDA_HBook::AIDAAxis::checkIndex(). |
|
Checks validity of the indexY, assuming bin indices from "0" to "number of bins - 1" Definition at line 705 of file AIDAHistogram2D.cpp. References Anaphe::AIDA_HBook::AIDAAxis::checkIndex(). |
|
-------------------------------------------------------------------------- Conversions between coordinates and bin indices -------------------------------------------------------------------------- Definition at line 558 of file AIDAHistogram2D.cpp. References xAxis(). |
|
Definition at line 567 of file AIDAHistogram2D.cpp. References yAxis(). |
|
Definition at line 854 of file AIDAHistogram2D.cpp. Referenced by allEntries(), binEntries(), binError(), binHeight(), entries(), extraEntries(), fill(), maxBinHeight(), maxBinX(), maxBinY(), minBinHeight(), minBinX(), minBinY(), print(), reset(), setTitle(), sumAllBinHeights(), sumBinHeights(), and sumExtraBinHeights(). |
|
Definition at line 196 of file AIDAHistogram2D.cpp. |
|
-------------------------------------------------------------------------- Total number of entries in the whole histogram (number of fills) -------------------------------------------------------------------------- Definition at line 215 of file AIDAHistogram2D.cpp. References allEntries(), crisisMessage(), extraEntries(), and rep. |
|
Number of equivalent entries SUM[ weight ] ^ 2 / SUM[ weight^2 ] Definition at line 247 of file AIDAHistogram2D.cpp. References notYetMessage(). |
|
Definition at line 236 of file AIDAHistogram2D.cpp. References crisisMessage(), and rep. Referenced by entries(). |
|
-------------------------------------------------------------------------- Histogram characteristics -------------------------------------------------------------------------- Definition at line 288 of file AIDAHistogram2D.cpp. References crisisMessage(), and rep. |
|
Definition at line 813 of file AIDAHistogram2D.cpp. Referenced by AIDAHistogram2D(). |
|
Definition at line 833 of file AIDAHistogram2D.cpp. Referenced by AIDAHistogram2D(), and binname(). |
|
Definition at line 782 of file AIDAHistogram2D.cpp. References xAxis(), and yAxis(). Referenced by slice(). |
|
Definition at line 500 of file AIDAHistogram2D.cpp. References crisisMessage(), and rep. |
|
Definition at line 510 of file AIDAHistogram2D.cpp. References crisisMessage(), and rep. |
|
Definition at line 525 of file AIDAHistogram2D.cpp. References crisisMessage(), and rep. |
|
meanX() returns the mean of the whole histogram as calculated on filling-time projected on the axis X Definition at line 405 of file AIDAHistogram2D.cpp. References projectionX(). |
|
meanY() returns the mean of the whole histogram as calculated on filling-time projected on the axis Y Definition at line 419 of file AIDAHistogram2D.cpp. References projectionY(). |
|
-------------------------------------------------------------------------- Minimum and maximum heights and bins -------------------------------------------------------------------------- Definition at line 460 of file AIDAHistogram2D.cpp. References crisisMessage(), and rep. |
|
Definition at line 470 of file AIDAHistogram2D.cpp. References crisisMessage(), and rep. |
|
Definition at line 485 of file AIDAHistogram2D.cpp. References crisisMessage(), and rep. |
|
Definition at line 843 of file AIDAHistogram2D.cpp. Referenced by equivalentBinEntries(), and write(). |
|
-------------------------------------------------------------------------- Print functions (ASCII graphical representation) Definition at line 634 of file AIDAHistogram2D.cpp. References crisisMessage(), and rep. |
|
Projection on axis X Equivalent to sliceX( UNDERFLOW_BIN, OVERFLOW_BIN ); Definition at line 577 of file AIDAHistogram2D.cpp. References sliceX(). Referenced by binEntriesX(), binHeightX(), meanX(), and rmsX(). |
|
Projection on axis Y Equivalent to sliceY( UNDERFLOW_BIN, OVERFLOW_BIN ); Definition at line 587 of file AIDAHistogram2D.cpp. References sliceY(). Referenced by binEntriesY(), binHeightY(), meanY(), and rmsY(). |
|
Definition at line 666 of file AIDAHistogram2D.cpp. References rep. Referenced by Anaphe::AIDA_HBook::AIDAHistoFactory::store2D(). |
|
Definition at line 205 of file AIDAHistogram2D.cpp. References crisisMessage(), and rep. |
|
rmsX() returns the rms of the whole histogram as calculated on filling-time projected on the axis X Definition at line 433 of file AIDAHistogram2D.cpp. References projectionX(). |
|
rmsY() returns the rms of the whole histogram as calculated on filling-time projected on the axis Y Definition at line 447 of file AIDAHistogram2D.cpp. References projectionY(). |
|
Definition at line 177 of file AIDAHistogram2D.cpp. References crisisMessage(), and rep. |
|
Definition at line 715 of file AIDAHistogram2D.cpp. References binHeight(), binname(), Anaphe::AIDA_HBook::AIDAHistogram1D::fill(), goodIndices(), title(), xAxis(), and yAxis(). |
|
Definition at line 616 of file AIDAHistogram2D.cpp. References slice(). |
|
Slice parallel with the axis X, identified by bin indexY Equivalent to sliceX( indexY, indexY ); Definition at line 597 of file AIDAHistogram2D.cpp. Referenced by projectionX(). |
|
Definition at line 625 of file AIDAHistogram2D.cpp. References slice(). |
|
Slice parallel with the axis Y, identified by bin indexX Equivalent to sliceY( indexX, indexX ); Definition at line 607 of file AIDAHistogram2D.cpp. Referenced by projectionY(). |
|
Definition at line 268 of file AIDAHistogram2D.cpp. References crisisMessage(), rep, sumBinHeights(), and sumExtraBinHeights(). |
|
-------------------------------------------------------------------------- Sums of bin heights (height respects weights of entries) -------------------------------------------------------------------------- Definition at line 258 of file AIDAHistogram2D.cpp. References crisisMessage(), and rep. Referenced by sumAllBinHeights(). |
|
Definition at line 278 of file AIDAHistogram2D.cpp. References crisisMessage(), and rep. Referenced by sumAllBinHeights(). |
|
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 168 of file AIDAHistogram2D.cpp. Referenced by slice(). |
|
Definition at line 656 of file AIDAHistogram2D.cpp. References notYetMessage(). |
|
-------------------------------------------------------------------------- Print functions (ASCII table containing numbers e.g. bin height) Definition at line 645 of file AIDAHistogram2D.cpp. References notYetMessage(). |
|
-------------------------------------------------------------------------- Axis -------------------------------------------------------------------------- Definition at line 540 of file AIDAHistogram2D.cpp. References xaxis. Referenced by coordToIndexX(), goodIndices(), and slice(). |
|
Definition at line 549 of file AIDAHistogram2D.cpp. References yaxis. Referenced by coordToIndexY(), goodIndices(), and slice(). |
|
Definition at line 366 of file AIDAHistogram2D.h. Referenced by AIDAHistogram2D(), annotation(), and ~AIDAHistogram2D(). |
|
Definition at line 367 of file AIDAHistogram2D.h. |
|
Definition at line 369 of file AIDAHistogram2D.h. |
|
Definition at line 368 of file AIDAHistogram2D.h. Referenced by AIDAHistogram2D(), allEntries(), binEntries(), binError(), binHeight(), entries(), extraEntries(), fill(), maxBinHeight(), maxBinX(), maxBinY(), minBinHeight(), minBinX(), minBinY(), print(), representation(), reset(), setTitle(), sumAllBinHeights(), sumBinHeights(), sumExtraBinHeights(), and ~AIDAHistogram2D(). |
|
Definition at line 364 of file AIDAHistogram2D.h. Referenced by AIDAHistogram2D(), xAxis(), and ~AIDAHistogram2D(). |
|
Definition at line 365 of file AIDAHistogram2D.h. Referenced by AIDAHistogram2D(), yAxis(), and ~AIDAHistogram2D(). |
Anaphe documentation generated by Doxygen (www.doxygen.org) |