Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Anaphe::AIDA_Histogram_native::AIDA_Histogram2D Class Reference

#include <AIDA_Histogram2D.h>

Inheritance diagram for Anaphe::AIDA_Histogram_native::AIDA_Histogram2D:

Inheritance graph
[legend]
Collaboration diagram for Anaphe::AIDA_Histogram_native::AIDA_Histogram2D:

Collaboration graph
[legend]
List of all members.

Detailed Description

Implementation of the AIDA IHistogram2D class

The Additional annotation items defined on top of those from the AIDA_BaseHistogram class are:

"MeanX", "RmsX", "MeanY", "RmsY", "Extra Entries"

Definition at line 23 of file AIDA_Histogram2D.h.

Public Methods

 AIDA_Histogram2D (const std::string &title, int numberOfBinsX, double lowEdgeX, double highEdgeX, int numberOfBinsY, double lowEdgeY, double highEdgeY)
 Constructor for fixed-sized bin histogram.

 AIDA_Histogram2D (const std::string &title, const std::vector< double > &edgesX, const std::vector< double > &edgesY)
 Constructor for variable-sized bin histogram.

 AIDA_Histogram2D (const AIDA_Histogram2D &h)
 Copy constructor.

 AIDA_Histogram2D (const AIDA::IHistogram2D &h)
 Constructor from another AIDA histogram.

 ~AIDA_Histogram2D ()
 Destructor.

bool reset ()
int entries () const
int allEntries () const
 Methods to be implemented from IHistogram.

int extraEntries () const
double equivalentBinEntries () const
double sumBinHeights () const
double sumAllBinHeights () const
double sumExtraBinHeights () const
double minBinHeight () const
double maxBinHeight () const
bool scale (double scaleFactor)
bool fill (double x, double y, double weight=1.)
 Methods to be implemented from IHistogram2D.

double binMeanX (int indexX, int indexY) const
double binMeanY (int indexX, int indexY) const
int binEntries (int indexX, int indexY) const
int binEntriesX (int indexX) const
int binEntriesY (int indexY) const
double binHeight (int indexX, int indexY) const
double binHeightX (int indexX) const
double binHeightY (int indexY) const
double binError (int indexX, int indexY) const
double meanX () const
double meanY () const
double rmsX () const
double rmsY () const
const AIDA::IAxis & xAxis () const
const AIDA::IAxis & yAxis () const
int coordToIndexX (double coordX) const
int coordToIndexY (double coordY) const
bool add (const AIDA::IHistogram2D &h)
bool setBinContents (int binIndexX, int binIndexY, int entries, double height, double error, double centreX, double centreY)
 Methods to be implemented from IDevHistogram2D.

bool setRms (double rmsX, double rmsY)

Protected Methods

void updateAnnotation () const

Private Methods

bool calculateStatistics () const
 Private methods.

bool increment (const AIDA_Histogram2D &h)
AIDA_Histogram2D & operator= (const AIDA_Histogram2D &)
 No asignment operator.


Private Attributes

AIDA::IAxis * m_axisX
AIDA::IAxis * m_axisY
std::vector< std::vector<
GravityBin2D * > > 
m_bins
bool m_validStatistics
double m_meanX
double m_rmsX
double m_meanY
double m_rmsY
int m_entries
int m_extraEntries
double m_ebe
double m_sumBinHeights
double m_sumExtraBinHeights
double m_minHeight
double m_maxHeight
double m_sumWeightTimesSquaredX
double m_sumWeightTimesSquaredY


Constructor & Destructor Documentation

Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::AIDA_Histogram2D const std::string &    title,
int    numberOfBinsX,
double    lowEdgeX,
double    highEdgeX,
int    numberOfBinsY,
double    lowEdgeY,
double    highEdgeY
 

Definition at line 20 of file AIDA_Histogram2D.cpp.

References Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotation(), Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotationNoUpdate(), emptyString, extra_entriesKey, m_bins, m_sumWeightTimesSquaredX, m_sumWeightTimesSquaredY, meanXKey, meanYKey, numberOfExtraBins, rmsXKey, and rmsYKey.

Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::AIDA_Histogram2D const std::string &    title,
const std::vector< double > &    edgesX,
const std::vector< double > &    edgesY
 

Definition at line 49 of file AIDA_Histogram2D.cpp.

References Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotation(), Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotationNoUpdate(), emptyString, extra_entriesKey, m_bins, m_sumWeightTimesSquaredX, m_sumWeightTimesSquaredY, meanXKey, meanYKey, numberOfExtraBins, rmsXKey, and rmsYKey.

Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::AIDA_Histogram2D const AIDA_Histogram2D &    h
 

Definition at line 75 of file AIDA_Histogram2D.cpp.

References Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotation(), Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotationNoUpdate(), m_axisX, m_axisY, m_bins, m_sumWeightTimesSquaredX, m_sumWeightTimesSquaredY, and setRms().

Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::AIDA_Histogram2D const AIDA::IHistogram2D &    h
 

Definition at line 134 of file AIDA_Histogram2D.cpp.

References Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotation(), Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotationNoUpdate(), m_axisX, m_axisY, m_bins, numberOfExtraBins, and setRms().

Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::~AIDA_Histogram2D  
 

Definition at line 196 of file AIDA_Histogram2D.cpp.

References m_axisX, m_axisY, and m_bins.


Member Function Documentation

bool Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::add const AIDA::IHistogram2D &    h
 

Definition at line 571 of file AIDA_Histogram2D.cpp.

References increment(), m_axisX, and m_axisY.

int Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::allEntries   const
 

Definition at line 229 of file AIDA_Histogram2D.cpp.

References entries(), and extraEntries().

int Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::binEntries int    indexX,
int    indexY
const
 

Definition at line 362 of file AIDA_Histogram2D.cpp.

References m_bins, and numberOfExtraBins.

int Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::binEntriesX int    indexX const
 

Definition at line 373 of file AIDA_Histogram2D.cpp.

References Anaphe::AIDA_Histogram_native::GravityBin1D::entries(), m_bins, and numberOfExtraBins.

int Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::binEntriesY int    indexY const
 

Definition at line 387 of file AIDA_Histogram2D.cpp.

References Anaphe::AIDA_Histogram_native::GravityBin1D::entries(), m_bins, and numberOfExtraBins.

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::binError int    indexX,
int    indexY
const
 

Definition at line 440 of file AIDA_Histogram2D.cpp.

References m_bins, and numberOfExtraBins.

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::binHeight int    indexX,
int    indexY
const
 

Definition at line 401 of file AIDA_Histogram2D.cpp.

References m_bins, and numberOfExtraBins.

Referenced by calculateStatistics().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::binHeightX int    indexX const
 

Definition at line 412 of file AIDA_Histogram2D.cpp.

References Anaphe::AIDA_Histogram_native::GravityBin1D::height(), m_bins, and numberOfExtraBins.

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::binHeightY int    indexY const
 

Definition at line 426 of file AIDA_Histogram2D.cpp.

References Anaphe::AIDA_Histogram_native::GravityBin1D::height(), m_bins, and numberOfExtraBins.

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::binMeanX int    indexX,
int    indexY
const
 

Definition at line 336 of file AIDA_Histogram2D.cpp.

References Anaphe::AIDA_Histogram_native::GravityBin1D::centreOfGravityX(), m_bins, and numberOfExtraBins.

Referenced by calculateStatistics().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::binMeanY int    indexX,
int    indexY
const
 

Definition at line 349 of file AIDA_Histogram2D.cpp.

References Anaphe::AIDA_Histogram_native::GravityBin2D::centreOfGravityY(), m_bins, and numberOfExtraBins.

Referenced by calculateStatistics().

bool Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::calculateStatistics   const [private]
 

Definition at line 483 of file AIDA_Histogram2D.cpp.

References binHeight(), binMeanX(), binMeanY(), Anaphe::AIDA_Histogram_native::GravityBin1D::centreOfGravityX(), Anaphe::AIDA_Histogram_native::GravityBin2D::centreOfGravityY(), Anaphe::AIDA_Histogram_native::GravityBin1D::entries(), Anaphe::AIDA_Histogram_native::GravityBin1D::errorSquared(), Anaphe::AIDA_Histogram_native::GravityBin1D::height(), m_bins, m_ebe, m_entries, m_extraEntries, m_maxHeight, m_meanX, m_meanY, m_minHeight, m_rmsX, m_rmsY, m_sumBinHeights, m_sumExtraBinHeights, m_sumWeightTimesSquaredX, m_sumWeightTimesSquaredY, m_validStatistics, and numberOfExtraBins.

Referenced by entries(), equivalentBinEntries(), extraEntries(), maxBinHeight(), meanX(), meanY(), minBinHeight(), rmsX(), rmsY(), sumBinHeights(), and sumExtraBinHeights().

int Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::coordToIndexX double    coordX const
 

Definition at line 557 of file AIDA_Histogram2D.cpp.

References m_axisX.

int Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::coordToIndexY double    coordY const
 

Definition at line 564 of file AIDA_Histogram2D.cpp.

References m_axisY.

int Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::entries   const
 

Definition at line 221 of file AIDA_Histogram2D.cpp.

References calculateStatistics(), and m_entries.

Referenced by allEntries(), and setBinContents().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::equivalentBinEntries   const
 

Definition at line 259 of file AIDA_Histogram2D.cpp.

References calculateStatistics(), and m_ebe.

int Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::extraEntries   const
 

Definition at line 236 of file AIDA_Histogram2D.cpp.

References calculateStatistics(), and m_extraEntries.

Referenced by allEntries(), and updateAnnotation().

bool Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::fill double    x,
double    y,
double    weight = 1.
 

Definition at line 320 of file AIDA_Histogram2D.cpp.

References m_axisX, m_axisY, m_bins, m_sumWeightTimesSquaredX, m_sumWeightTimesSquaredY, m_validStatistics, numberOfExtraBins, and Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::setUpToDate().

bool Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::increment const AIDA_Histogram2D &    h [private]
 

Definition at line 612 of file AIDA_Histogram2D.cpp.

References m_bins, m_sumWeightTimesSquaredX, m_sumWeightTimesSquaredY, m_validStatistics, and Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::setUpToDate().

Referenced by add().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::maxBinHeight   const
 

Definition at line 298 of file AIDA_Histogram2D.cpp.

References calculateStatistics(), and m_maxHeight.

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::meanX   const
 

Definition at line 451 of file AIDA_Histogram2D.cpp.

References calculateStatistics(), and m_meanX.

Referenced by setRms(), and updateAnnotation().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::meanY   const
 

Definition at line 467 of file AIDA_Histogram2D.cpp.

References calculateStatistics(), and m_meanY.

Referenced by setRms(), and updateAnnotation().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::minBinHeight   const
 

Definition at line 290 of file AIDA_Histogram2D.cpp.

References calculateStatistics(), and m_minHeight.

AIDA_Histogram2D& Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::operator= const AIDA_Histogram2D &    [private]
 

bool Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::reset  
 

Definition at line 208 of file AIDA_Histogram2D.cpp.

References m_bins, m_sumWeightTimesSquaredX, m_sumWeightTimesSquaredY, m_validStatistics, and Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::setUpToDate().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::rmsX   const
 

Definition at line 459 of file AIDA_Histogram2D.cpp.

References calculateStatistics(), and m_rmsX.

Referenced by setRms(), and updateAnnotation().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::rmsY   const
 

Definition at line 475 of file AIDA_Histogram2D.cpp.

References calculateStatistics(), and m_rmsY.

Referenced by setRms(), and updateAnnotation().

bool Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::scale double    scaleFactor
 

Definition at line 306 of file AIDA_Histogram2D.cpp.

References m_bins, m_sumWeightTimesSquaredX, m_sumWeightTimesSquaredY, m_validStatistics, and Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::setUpToDate().

bool Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::setBinContents int    binIndexX,
int    binIndexY,
int    entries,
double    height,
double    error,
double    centreX,
double    centreY
 

Definition at line 628 of file AIDA_Histogram2D.cpp.

References entries(), m_bins, m_validStatistics, numberOfExtraBins, and Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::setUpToDate().

bool Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::setRms double    rmsX,
double    rmsY
 

Definition at line 647 of file AIDA_Histogram2D.cpp.

References m_sumWeightTimesSquaredX, m_sumWeightTimesSquaredY, m_validStatistics, meanX(), meanY(), rmsX(), rmsY(), and sumBinHeights().

Referenced by AIDA_Histogram2D().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::sumAllBinHeights   const
 

Definition at line 283 of file AIDA_Histogram2D.cpp.

References sumBinHeights(), and sumExtraBinHeights().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::sumBinHeights   const
 

Definition at line 267 of file AIDA_Histogram2D.cpp.

References calculateStatistics(), and m_sumBinHeights.

Referenced by setRms(), and sumAllBinHeights().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::sumExtraBinHeights   const
 

Definition at line 275 of file AIDA_Histogram2D.cpp.

References calculateStatistics(), and m_sumExtraBinHeights.

Referenced by sumAllBinHeights().

void Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::updateAnnotation   const [protected, virtual]
 

Methods still to be implemented from the AIDA_BaseHistogram inheritence tree : (IBaseHistogram, IDevManagedObject, IManagedObject )

Reimplemented from Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram.

Definition at line 244 of file AIDA_Histogram2D.cpp.

References Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotation(), Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotationNoUpdate(), extra_entriesKey, extraEntries(), meanX(), meanXKey, meanY(), meanYKey, rmsX(), rmsXKey, rmsY(), rmsYKey, and Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::updateAnnotation().

const AIDA::IAxis & Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::xAxis   const
 

Definition at line 544 of file AIDA_Histogram2D.cpp.

References m_axisX.

const AIDA::IAxis & Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::yAxis   const
 

Definition at line 550 of file AIDA_Histogram2D.cpp.

References m_axisY.


Member Data Documentation

AIDA::IAxis* Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::m_axisX [private]
 

Definition at line 104 of file AIDA_Histogram2D.h.

Referenced by add(), AIDA_Histogram2D(), coordToIndexX(), fill(), xAxis(), and ~AIDA_Histogram2D().

AIDA::IAxis* Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::m_axisY [private]
 

Definition at line 105 of file AIDA_Histogram2D.h.

Referenced by add(), AIDA_Histogram2D(), coordToIndexY(), fill(), yAxis(), and ~AIDA_Histogram2D().

std::vector< std::vector< GravityBin2D* > > Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::m_bins [private]
 

Definition at line 106 of file AIDA_Histogram2D.h.

Referenced by AIDA_Histogram2D(), binEntries(), binEntriesX(), binEntriesY(), binError(), binHeight(), binHeightX(), binHeightY(), binMeanX(), binMeanY(), calculateStatistics(), fill(), increment(), reset(), scale(), setBinContents(), and ~AIDA_Histogram2D().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::m_ebe [private]
 

Definition at line 116 of file AIDA_Histogram2D.h.

Referenced by calculateStatistics(), and equivalentBinEntries().

int Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::m_entries [private]
 

Definition at line 114 of file AIDA_Histogram2D.h.

Referenced by calculateStatistics(), and entries().

int Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::m_extraEntries [private]
 

Definition at line 115 of file AIDA_Histogram2D.h.

Referenced by calculateStatistics(), and extraEntries().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::m_maxHeight [private]
 

Definition at line 120 of file AIDA_Histogram2D.h.

Referenced by calculateStatistics(), and maxBinHeight().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::m_meanX [private]
 

Definition at line 110 of file AIDA_Histogram2D.h.

Referenced by calculateStatistics(), and meanX().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::m_meanY [private]
 

Definition at line 112 of file AIDA_Histogram2D.h.

Referenced by calculateStatistics(), and meanY().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::m_minHeight [private]
 

Definition at line 119 of file AIDA_Histogram2D.h.

Referenced by calculateStatistics(), and minBinHeight().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::m_rmsX [private]
 

Definition at line 111 of file AIDA_Histogram2D.h.

Referenced by calculateStatistics(), and rmsX().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::m_rmsY [private]
 

Definition at line 113 of file AIDA_Histogram2D.h.

Referenced by calculateStatistics(), and rmsY().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::m_sumBinHeights [private]
 

Definition at line 117 of file AIDA_Histogram2D.h.

Referenced by calculateStatistics(), and sumBinHeights().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::m_sumExtraBinHeights [private]
 

Definition at line 118 of file AIDA_Histogram2D.h.

Referenced by calculateStatistics(), and sumExtraBinHeights().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::m_sumWeightTimesSquaredX [private]
 

Definition at line 121 of file AIDA_Histogram2D.h.

Referenced by AIDA_Histogram2D(), calculateStatistics(), fill(), increment(), reset(), scale(), and setRms().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::m_sumWeightTimesSquaredY [private]
 

Definition at line 122 of file AIDA_Histogram2D.h.

Referenced by AIDA_Histogram2D(), calculateStatistics(), fill(), increment(), reset(), scale(), and setRms().

bool Anaphe::AIDA_Histogram_native::AIDA_Histogram2D::m_validStatistics [private]
 

Definition at line 107 of file AIDA_Histogram2D.h.

Referenced by calculateStatistics(), fill(), increment(), reset(), scale(), setBinContents(), and setRms().


The documentation for this class was generated from the following files:
Generated on Tue Nov 19 12:32:24 2002 for AIDA_Histogram_native by doxygen1.2.16