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

Anaphe::AIDA_Histogram_native::AIDA_Histogram1D Class Reference

#include <AIDA_Histogram1D.h>

Inheritance diagram for Anaphe::AIDA_Histogram_native::AIDA_Histogram1D:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Implementation of the AIDA IHistogram1D class

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

"Mean", "Rms", "Extra Entries", "Overflow", "Underflow"

Definition at line 23 of file AIDA_Histogram1D.h.

Public Methods

 AIDA_Histogram1D (const std::string &title, int numberOfBins, double lowEdge, double highEdge)
 Constructor for fixed-sized bin histogram.

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

 AIDA_Histogram1D (const AIDA_Histogram1D &h)
 Copy constructor.

 AIDA_Histogram1D (const AIDA::IHistogram1D &h)
 Constructor from another AIDA histogram.

 ~AIDA_Histogram1D ()
 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 weight=1.)
 Methods to be implemented from IHistogram1D.

double binMean (int index) const
int binEntries (int index) const
double binHeight (int index) const
double binError (int index) const
double mean () const
double rms () const
const AIDA::IAxis & axis () const
int coordToIndex (double coord) const
bool add (const AIDA::IHistogram1D &h)
bool setBinContents (int binIndex, int entries, double height, double error, double centre)
 Methods to be implemented from IDevHistogram1D.

bool setRms (double rms)

Protected Methods

void updateAnnotation () const

Private Methods

bool calculateStatistics () const
 Private methods.

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


Private Attributes

AIDA::IAxis * m_axis
std::vector< GravityBin1D * > m_bins
bool m_validStatistics
double m_mean
double m_rms
int m_entries
int m_extraEntries
double m_ebe
double m_sumBinHeights
double m_sumExtraBinHeights
double m_minHeight
double m_maxHeight
double m_sumWeightTimesSquaredX


Constructor & Destructor Documentation

Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::AIDA_Histogram1D const std::string &    title,
int    numberOfBins,
double    lowEdge,
double    highEdge
 

Definition at line 19 of file AIDA_Histogram1D.cpp.

References Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotation(), Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotationNoUpdate(), emptyString, extra_entriesKey, m_bins, m_sumWeightTimesSquaredX, meanKey, numberOfExtraBins, overflowKey, rmsKey, and underflowKey.

Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::AIDA_Histogram1D const std::string &    title,
const std::vector< double > &    edges
 

Definition at line 41 of file AIDA_Histogram1D.cpp.

References Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotation(), Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotationNoUpdate(), emptyString, extra_entriesKey, m_bins, m_sumWeightTimesSquaredX, meanKey, numberOfExtraBins, overflowKey, rmsKey, and underflowKey.

Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::AIDA_Histogram1D const AIDA_Histogram1D &    h
 

Definition at line 61 of file AIDA_Histogram1D.cpp.

References Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotation(), Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotationNoUpdate(), m_axis, m_bins, m_sumWeightTimesSquaredX, and setRms().

Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::AIDA_Histogram1D const AIDA::IHistogram1D &    h
 

Definition at line 103 of file AIDA_Histogram1D.cpp.

References Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotation(), Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotationNoUpdate(), m_axis, m_bins, m_sumWeightTimesSquaredX, numberOfExtraBins, and setRms().

Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::~AIDA_Histogram1D  
 

Definition at line 166 of file AIDA_Histogram1D.cpp.

References m_axis, and m_bins.


Member Function Documentation

bool Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::add const AIDA::IHistogram1D &    h
 

Definition at line 419 of file AIDA_Histogram1D.cpp.

References increment(), and m_axis.

int Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::allEntries   const
 

Definition at line 195 of file AIDA_Histogram1D.cpp.

References entries(), and extraEntries().

const AIDA::IAxis & Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::axis   const
 

Definition at line 405 of file AIDA_Histogram1D.cpp.

References m_axis.

int Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::binEntries int    index const
 

Definition at line 308 of file AIDA_Histogram1D.cpp.

References m_bins, and numberOfExtraBins.

double Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::binError int    index const
 

Definition at line 326 of file AIDA_Histogram1D.cpp.

References m_bins, and numberOfExtraBins.

double Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::binHeight int    index const
 

Definition at line 317 of file AIDA_Histogram1D.cpp.

References m_bins, and numberOfExtraBins.

Referenced by calculateStatistics().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::binMean int    index const
 

Definition at line 295 of file AIDA_Histogram1D.cpp.

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

Referenced by calculateStatistics().

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

Definition at line 351 of file AIDA_Histogram1D.cpp.

References binHeight(), binMean(), Anaphe::AIDA_Histogram_native::GravityBin1D::centreOfGravityX(), 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_mean, m_minHeight, m_rms, m_sumBinHeights, m_sumExtraBinHeights, m_sumWeightTimesSquaredX, m_validStatistics, and numberOfExtraBins.

Referenced by entries(), equivalentBinEntries(), extraEntries(), maxBinHeight(), mean(), minBinHeight(), rms(), sumBinHeights(), and sumExtraBinHeights().

int Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::coordToIndex double    coord const
 

Definition at line 412 of file AIDA_Histogram1D.cpp.

References m_axis.

int Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::entries   const
 

Definition at line 187 of file AIDA_Histogram1D.cpp.

References calculateStatistics(), and m_entries.

Referenced by allEntries(), and setBinContents().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::equivalentBinEntries   const
 

Definition at line 225 of file AIDA_Histogram1D.cpp.

References calculateStatistics(), and m_ebe.

int Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::extraEntries   const
 

Definition at line 202 of file AIDA_Histogram1D.cpp.

References calculateStatistics(), and m_extraEntries.

Referenced by allEntries(), and updateAnnotation().

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

Definition at line 283 of file AIDA_Histogram1D.cpp.

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

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

Definition at line 448 of file AIDA_Histogram1D.cpp.

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

Referenced by add().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::maxBinHeight   const
 

Definition at line 264 of file AIDA_Histogram1D.cpp.

References calculateStatistics(), and m_maxHeight.

double Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::mean   const
 

Definition at line 335 of file AIDA_Histogram1D.cpp.

References calculateStatistics(), and m_mean.

Referenced by setRms(), and updateAnnotation().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::minBinHeight   const
 

Definition at line 256 of file AIDA_Histogram1D.cpp.

References calculateStatistics(), and m_minHeight.

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

bool Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::reset  
 

Definition at line 176 of file AIDA_Histogram1D.cpp.

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

double Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::rms   const
 

Definition at line 343 of file AIDA_Histogram1D.cpp.

References calculateStatistics(), and m_rms.

Referenced by setRms(), and updateAnnotation().

bool Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::scale double    scaleFactor
 

Definition at line 272 of file AIDA_Histogram1D.cpp.

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

bool Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::setBinContents int    binIndex,
int    entries,
double    height,
double    error,
double    centre
 

Definition at line 461 of file AIDA_Histogram1D.cpp.

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

bool Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::setRms double    rms
 

Definition at line 476 of file AIDA_Histogram1D.cpp.

References m_sumWeightTimesSquaredX, m_validStatistics, mean(), rms(), and sumBinHeights().

Referenced by AIDA_Histogram1D().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::sumAllBinHeights   const
 

Definition at line 249 of file AIDA_Histogram1D.cpp.

References sumBinHeights(), and sumExtraBinHeights().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::sumBinHeights   const
 

Definition at line 233 of file AIDA_Histogram1D.cpp.

References calculateStatistics(), and m_sumBinHeights.

Referenced by setRms(), and sumAllBinHeights().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::sumExtraBinHeights   const
 

Definition at line 241 of file AIDA_Histogram1D.cpp.

References calculateStatistics(), and m_sumExtraBinHeights.

Referenced by sumAllBinHeights().

void Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::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 210 of file AIDA_Histogram1D.cpp.

References Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotation(), Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotationNoUpdate(), extra_entriesKey, extraEntries(), m_bins, mean(), meanKey, numberOfExtraBins, overflowKey, rms(), rmsKey, underflowKey, and Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::updateAnnotation().


Member Data Documentation

AIDA::IAxis* Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::m_axis [private]
 

Definition at line 89 of file AIDA_Histogram1D.h.

Referenced by add(), AIDA_Histogram1D(), axis(), binMean(), coordToIndex(), fill(), and ~AIDA_Histogram1D().

std::vector< GravityBin1D* > Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::m_bins [private]
 

Definition at line 90 of file AIDA_Histogram1D.h.

Referenced by AIDA_Histogram1D(), binEntries(), binError(), binHeight(), binMean(), calculateStatistics(), fill(), increment(), reset(), scale(), setBinContents(), updateAnnotation(), and ~AIDA_Histogram1D().

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

Definition at line 98 of file AIDA_Histogram1D.h.

Referenced by calculateStatistics(), and equivalentBinEntries().

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

Definition at line 96 of file AIDA_Histogram1D.h.

Referenced by calculateStatistics(), and entries().

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

Definition at line 97 of file AIDA_Histogram1D.h.

Referenced by calculateStatistics(), and extraEntries().

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

Definition at line 102 of file AIDA_Histogram1D.h.

Referenced by calculateStatistics(), and maxBinHeight().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::m_mean [private]
 

Definition at line 94 of file AIDA_Histogram1D.h.

Referenced by calculateStatistics(), and mean().

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

Definition at line 101 of file AIDA_Histogram1D.h.

Referenced by calculateStatistics(), and minBinHeight().

double Anaphe::AIDA_Histogram_native::AIDA_Histogram1D::m_rms [private]
 

Definition at line 95 of file AIDA_Histogram1D.h.

Referenced by calculateStatistics(), and rms().

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

Definition at line 99 of file AIDA_Histogram1D.h.

Referenced by calculateStatistics(), and sumBinHeights().

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

Definition at line 100 of file AIDA_Histogram1D.h.

Referenced by calculateStatistics(), and sumExtraBinHeights().

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

Definition at line 103 of file AIDA_Histogram1D.h.

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

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

Definition at line 91 of file AIDA_Histogram1D.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:23 2002 for AIDA_Histogram_native by doxygen1.2.16