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

Anaphe::AIDA_Histogram_native::AIDA_Cloud2D Class Reference

#include <AIDA_Cloud2D.h>

Inheritance diagram for Anaphe::AIDA_Histogram_native::AIDA_Cloud2D:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Implementation of the AIDA ICloud2D class

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

"MeanX", "RmsX", "MeanY", "RmsY"

Definition at line 27 of file AIDA_Cloud2D.h.

Public Methods

 AIDA_Cloud2D (const std::string &title)
 Constructor.

 AIDA_Cloud2D (const AIDA_Cloud2D &h)
 Copy constructor.

 AIDA_Cloud2D (const AIDA::ICloud2D &h)
 Constructor from another AIDA histogram.

 ~AIDA_Cloud2D ()
 Destructor.

bool reset ()
int entries () const
double sumOfWeights () const
 Methods to be implemented from ICloud.

bool convertToHistogram ()
bool isConverted () const
bool scale (double scaleFactor)
bool fill (double x, double y, double weight=1.)
 Methods to be implemented from ICloud2D.

double lowerEdgeX () const
double lowerEdgeY () const
double upperEdgeX () const
double upperEdgeY () const
double valueX (int index) const
double valueY (int index) const
double weight (int index) const
double meanX () const
double meanY () const
double rmsX () const
double rmsY () const
bool convert (int nBinsX, double lowerEdgeX, double upperEdgeX, int nBinsY, double lowerEdgeY, double upperEdgeY)
bool convert (const std::vector< double > &binEdgeX, const std::vector< double > &binEdgeY)
const AIDA::IHistogram2D & histogram () const
bool fillHistogram (AIDA::IHistogram2D &hist) const
bool setCacheSize (unsigned int newCacheSize)
 Methods to be implemented from IDevCloud2D.

unsigned int cacheSize () const
 Retrieves the cache size.


Static Public Attributes

const unsigned int defaultCacheSize = 1000000
 The default cache size.

const unsigned int defaultNumberOfBins = 50
 The default number of bins for the supporting histogram.


Protected Methods

void updateAnnotation () const

Private Methods

AIDA_Cloud2D & operator= (const AIDA_Cloud2D &)
 No asignment operator.


Private Attributes

unsigned int m_cacheSize
 The cache size.

std::vector< Cloud2DElementm_elements
 The vector holding the cloud elements.

double m_sumOfWeights
 The running sum of weights.

double m_sumOfWeightTimesValueX
 The running sum of squared weights.

double m_sumOfWeightTimesValueY
double m_sumOfWeightTimesSquaredValueX
 The running sum of the weight times the value.

double m_sumOfWeightTimesSquaredValueY
double m_lowEdgeX
 The low edge.

double m_lowEdgeY
double m_highEdgeX
 The high edge.

double m_highEdgeY
AIDA::IHistogram2D * m_histo
 The supporting histogram.


Constructor & Destructor Documentation

Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::AIDA_Cloud2D const std::string &    title
 

Definition at line 17 of file AIDA_Cloud2D.cpp.

References Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotation(), Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotationNoUpdate(), emptyString, m_cacheSize, meanXKey, meanYKey, rmsXKey, rmsYKey, and setCacheSize().

Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::AIDA_Cloud2D const AIDA_Cloud2D &    h
 

Definition at line 43 of file AIDA_Cloud2D.cpp.

References Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotation(), Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotationNoUpdate(), and m_histo.

Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::AIDA_Cloud2D const AIDA::ICloud2D &    h
 

Definition at line 78 of file AIDA_Cloud2D.cpp.

References Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotation(), Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotationNoUpdate(), fill(), m_cacheSize, m_histo, and setCacheSize().

Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::~AIDA_Cloud2D  
 

Definition at line 119 of file AIDA_Cloud2D.cpp.

References m_histo.


Member Function Documentation

unsigned int Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::cacheSize   const
 

Definition at line 449 of file AIDA_Cloud2D.cpp.

References m_cacheSize.

bool Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::convert const std::vector< double > &    binEdgeX,
const std::vector< double > &    binEdgeY
 

Definition at line 375 of file AIDA_Cloud2D.cpp.

References m_elements, m_histo, Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::name(), Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::setName(), and Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::title().

bool Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::convert int    nBinsX,
double    lowerEdgeX,
double    upperEdgeX,
int    nBinsY,
double    lowerEdgeY,
double    upperEdgeY
 

Definition at line 359 of file AIDA_Cloud2D.cpp.

References lowerEdgeX(), lowerEdgeY(), m_elements, m_histo, Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::name(), Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::setName(), Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::title(), upperEdgeX(), and upperEdgeY().

bool Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::convertToHistogram  
 

Definition at line 182 of file AIDA_Cloud2D.cpp.

References defaultNumberOfBins, m_elements, m_highEdgeX, m_highEdgeY, m_histo, m_lowEdgeX, m_lowEdgeY, Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::name(), Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::setName(), and Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::title().

Referenced by fill().

int Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::entries   const
 

Definition at line 158 of file AIDA_Cloud2D.cpp.

References m_elements, and m_histo.

Referenced by fillHistogram().

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

Definition at line 229 of file AIDA_Cloud2D.cpp.

References convertToHistogram(), m_cacheSize, m_elements, m_highEdgeX, m_highEdgeY, m_histo, m_lowEdgeX, m_lowEdgeY, m_sumOfWeights, m_sumOfWeightTimesSquaredValueX, m_sumOfWeightTimesSquaredValueY, m_sumOfWeightTimesValueX, m_sumOfWeightTimesValueY, and weight().

Referenced by AIDA_Cloud2D().

bool Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::fillHistogram AIDA::IHistogram2D &    hist const
 

Definition at line 388 of file AIDA_Cloud2D.cpp.

References entries(), m_elements, and m_histo.

const AIDA::IHistogram2D & Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::histogram   const
 

Definition at line 432 of file AIDA_Cloud2D.cpp.

References m_histo.

bool Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::isConverted   const
 

Definition at line 204 of file AIDA_Cloud2D.cpp.

References m_histo.

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::lowerEdgeX   const
 

Definition at line 256 of file AIDA_Cloud2D.cpp.

References m_histo, and m_lowEdgeX.

Referenced by convert().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::lowerEdgeY   const
 

Definition at line 264 of file AIDA_Cloud2D.cpp.

References m_histo, and m_lowEdgeY.

Referenced by convert().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::meanX   const
 

Definition at line 315 of file AIDA_Cloud2D.cpp.

References m_histo, m_sumOfWeights, and m_sumOfWeightTimesValueX.

Referenced by updateAnnotation().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::meanY   const
 

Definition at line 326 of file AIDA_Cloud2D.cpp.

References m_histo, m_sumOfWeights, and m_sumOfWeightTimesValueY.

Referenced by updateAnnotation().

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

bool Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::reset  
 

Definition at line 140 of file AIDA_Cloud2D.cpp.

References m_cacheSize, m_elements, m_highEdgeX, m_highEdgeY, m_histo, m_lowEdgeX, m_lowEdgeY, m_sumOfWeights, m_sumOfWeightTimesSquaredValueX, m_sumOfWeightTimesSquaredValueY, m_sumOfWeightTimesValueX, m_sumOfWeightTimesValueY, and setCacheSize().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::rmsX   const
 

Definition at line 337 of file AIDA_Cloud2D.cpp.

References m_histo, m_sumOfWeights, m_sumOfWeightTimesSquaredValueX, and m_sumOfWeightTimesValueX.

Referenced by updateAnnotation().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::rmsY   const
 

Definition at line 348 of file AIDA_Cloud2D.cpp.

References m_histo, m_sumOfWeights, m_sumOfWeightTimesSquaredValueY, and m_sumOfWeightTimesValueY.

Referenced by updateAnnotation().

bool Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::scale double    scaleFactor
 

Definition at line 211 of file AIDA_Cloud2D.cpp.

References m_elements, m_histo, m_sumOfWeights, m_sumOfWeightTimesSquaredValueX, m_sumOfWeightTimesSquaredValueY, m_sumOfWeightTimesValueX, and m_sumOfWeightTimesValueY.

bool Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::setCacheSize unsigned int    newCacheSize
 

Definition at line 440 of file AIDA_Cloud2D.cpp.

References m_cacheSize, and m_elements.

Referenced by AIDA_Cloud2D(), and reset().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::sumOfWeights   const
 

Definition at line 170 of file AIDA_Cloud2D.cpp.

References m_histo, and m_sumOfWeights.

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

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

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::upperEdgeX   const
 

Definition at line 272 of file AIDA_Cloud2D.cpp.

References m_highEdgeX, and m_histo.

Referenced by convert().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::upperEdgeY   const
 

Definition at line 280 of file AIDA_Cloud2D.cpp.

References m_highEdgeY, and m_histo.

Referenced by convert().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::valueX int    index const
 

Definition at line 288 of file AIDA_Cloud2D.cpp.

References m_elements, and m_histo.

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::valueY int    index const
 

Definition at line 297 of file AIDA_Cloud2D.cpp.

References m_elements, and m_histo.

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::weight int    index const
 

Definition at line 306 of file AIDA_Cloud2D.cpp.

References m_elements, and m_histo.

Referenced by fill().


Member Data Documentation

const unsigned int Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::defaultCacheSize = 1000000 [static]
 

Definition at line 32 of file AIDA_Cloud2D.h.

const unsigned int Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::defaultNumberOfBins = 50 [static]
 

Definition at line 34 of file AIDA_Cloud2D.h.

Referenced by convertToHistogram().

unsigned int Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::m_cacheSize [private]
 

Definition at line 99 of file AIDA_Cloud2D.h.

Referenced by AIDA_Cloud2D(), cacheSize(), fill(), reset(), and setCacheSize().

std::vector< Cloud2DElement > Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::m_elements [private]
 

Definition at line 101 of file AIDA_Cloud2D.h.

Referenced by convert(), convertToHistogram(), entries(), fill(), fillHistogram(), reset(), scale(), setCacheSize(), valueX(), valueY(), and weight().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::m_highEdgeX [private]
 

Definition at line 114 of file AIDA_Cloud2D.h.

Referenced by convertToHistogram(), fill(), reset(), and upperEdgeX().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::m_highEdgeY [private]
 

Definition at line 115 of file AIDA_Cloud2D.h.

Referenced by convertToHistogram(), fill(), reset(), and upperEdgeY().

AIDA::IHistogram2D* Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::m_histo [private]
 

Definition at line 117 of file AIDA_Cloud2D.h.

Referenced by AIDA_Cloud2D(), convert(), convertToHistogram(), entries(), fill(), fillHistogram(), histogram(), isConverted(), lowerEdgeX(), lowerEdgeY(), meanX(), meanY(), reset(), rmsX(), rmsY(), scale(), sumOfWeights(), upperEdgeX(), upperEdgeY(), valueX(), valueY(), weight(), and ~AIDA_Cloud2D().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::m_lowEdgeX [private]
 

Definition at line 111 of file AIDA_Cloud2D.h.

Referenced by convertToHistogram(), fill(), lowerEdgeX(), and reset().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::m_lowEdgeY [private]
 

Definition at line 112 of file AIDA_Cloud2D.h.

Referenced by convertToHistogram(), fill(), lowerEdgeY(), and reset().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::m_sumOfWeights [private]
 

Definition at line 103 of file AIDA_Cloud2D.h.

Referenced by fill(), meanX(), meanY(), reset(), rmsX(), rmsY(), scale(), and sumOfWeights().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::m_sumOfWeightTimesSquaredValueX [private]
 

Definition at line 108 of file AIDA_Cloud2D.h.

Referenced by fill(), reset(), rmsX(), and scale().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::m_sumOfWeightTimesSquaredValueY [private]
 

Definition at line 109 of file AIDA_Cloud2D.h.

Referenced by fill(), reset(), rmsY(), and scale().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::m_sumOfWeightTimesValueX [private]
 

Definition at line 105 of file AIDA_Cloud2D.h.

Referenced by fill(), meanX(), reset(), rmsX(), and scale().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud2D::m_sumOfWeightTimesValueY [private]
 

Definition at line 106 of file AIDA_Cloud2D.h.

Referenced by fill(), meanY(), reset(), rmsY(), and scale().


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