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

Anaphe::AIDA_Histogram_native::AIDA_Cloud3D Class Reference

#include <AIDA_Cloud3D.h>

Inheritance diagram for Anaphe::AIDA_Histogram_native::AIDA_Cloud3D:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Implementation of the AIDA ICloud3D class

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

"MeanX", "RmsX", "MeanY", "RmsY", "MeanZ", "RmsZ"

Definition at line 27 of file AIDA_Cloud3D.h.

Public Methods

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

 AIDA_Cloud3D (const AIDA_Cloud3D &h)
 Copy constructor.

 AIDA_Cloud3D (const AIDA::ICloud3D &h)
 Constructor from another AIDA histogram.

 ~AIDA_Cloud3D ()
 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 z, double weight=1.)
 Methods to be implemented from ICloud3D.

double lowerEdgeX () const
double lowerEdgeY () const
double lowerEdgeZ () const
double upperEdgeX () const
double upperEdgeY () const
double upperEdgeZ () const
double valueX (int index) const
double valueY (int index) const
double valueZ (int index) const
double weight (int index) const
double meanX () const
double meanY () const
double meanZ () const
double rmsX () const
double rmsY () const
double rmsZ () const
bool convert (int nBinsX, double lowerEdgeX, double upperEdgeX, int nBinsY, double lowerEdgeY, double upperEdgeY, int nBinsZ, double lowerEdgeZ, double upperEdgeZ)
bool convert (const std::vector< double > &binEdgeX, const std::vector< double > &binEdgeY, const std::vector< double > &binEdgeZ)
const AIDA::IHistogram3D & histogram () const
bool fillHistogram (AIDA::IHistogram3D &hist) const
bool setCacheSize (unsigned int newCacheSize)
 Methods to be implemented from IDevCloud3D.

unsigned int cacheSize () const
 Retrieves the cache size.


Static Public Attributes

const unsigned int defaultCacheSize = 1000000
 The default cache size.

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


Protected Methods

void updateAnnotation () const

Private Methods

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


Private Attributes

unsigned int m_cacheSize
 The cache size.

std::vector< Cloud3DElementm_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_sumOfWeightTimesValueZ
double m_sumOfWeightTimesSquaredValueX
 The running sum of the weight times the value.

double m_sumOfWeightTimesSquaredValueY
double m_sumOfWeightTimesSquaredValueZ
double m_lowEdgeX
 The low edge.

double m_lowEdgeY
double m_lowEdgeZ
double m_highEdgeX
 The high edge.

double m_highEdgeY
double m_highEdgeZ
AIDA::IHistogram3D * m_histo
 The supporting histogram.


Constructor & Destructor Documentation

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

Definition at line 19 of file AIDA_Cloud3D.cpp.

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

Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::AIDA_Cloud3D const AIDA_Cloud3D &    h
 

Definition at line 51 of file AIDA_Cloud3D.cpp.

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

Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::AIDA_Cloud3D const AIDA::ICloud3D &    h
 

Definition at line 90 of file AIDA_Cloud3D.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_Cloud3D::~AIDA_Cloud3D  
 

Definition at line 135 of file AIDA_Cloud3D.cpp.

References m_histo.


Member Function Documentation

unsigned int Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::cacheSize   const
 

Definition at line 535 of file AIDA_Cloud3D.cpp.

References m_cacheSize.

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

Definition at line 453 of file AIDA_Cloud3D.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_Cloud3D::convert int    nBinsX,
double    lowerEdgeX,
double    upperEdgeX,
int    nBinsY,
double    lowerEdgeY,
double    upperEdgeY,
int    nBinsZ,
double    lowerEdgeZ,
double    upperEdgeZ
 

Definition at line 435 of file AIDA_Cloud3D.cpp.

References lowerEdgeX(), lowerEdgeY(), lowerEdgeZ(), 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(), upperEdgeY(), and upperEdgeZ().

bool Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::convertToHistogram  
 

Definition at line 200 of file AIDA_Cloud3D.cpp.

References defaultNumberOfBins, m_elements, m_highEdgeX, m_highEdgeY, m_highEdgeZ, m_histo, m_lowEdgeX, m_lowEdgeY, m_lowEdgeZ, 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_Cloud3D::entries   const
 

Definition at line 176 of file AIDA_Cloud3D.cpp.

References m_elements, and m_histo.

Referenced by fillHistogram().

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

Definition at line 253 of file AIDA_Cloud3D.cpp.

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

Referenced by AIDA_Cloud3D().

bool Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::fillHistogram AIDA::IHistogram3D &    hist const
 

Definition at line 467 of file AIDA_Cloud3D.cpp.

References entries(), m_elements, and m_histo.

const AIDA::IHistogram3D & Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::histogram   const
 

Definition at line 518 of file AIDA_Cloud3D.cpp.

References m_histo.

bool Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::isConverted   const
 

Definition at line 226 of file AIDA_Cloud3D.cpp.

References m_histo.

double Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::lowerEdgeX   const
 

Definition at line 285 of file AIDA_Cloud3D.cpp.

References m_histo, and m_lowEdgeX.

Referenced by convert().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::lowerEdgeY   const
 

Definition at line 293 of file AIDA_Cloud3D.cpp.

References m_histo, and m_lowEdgeY.

Referenced by convert().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::lowerEdgeZ   const
 

Definition at line 301 of file AIDA_Cloud3D.cpp.

References m_histo, and m_lowEdgeZ.

Referenced by convert().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::meanX   const
 

Definition at line 369 of file AIDA_Cloud3D.cpp.

References m_histo, m_sumOfWeights, and m_sumOfWeightTimesValueX.

Referenced by updateAnnotation().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::meanY   const
 

Definition at line 380 of file AIDA_Cloud3D.cpp.

References m_histo, m_sumOfWeights, and m_sumOfWeightTimesValueY.

Referenced by updateAnnotation().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::meanZ   const
 

Definition at line 391 of file AIDA_Cloud3D.cpp.

References m_histo, m_sumOfWeights, and m_sumOfWeightTimesValueZ.

Referenced by updateAnnotation().

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

bool Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::reset  
 

Definition at line 158 of file AIDA_Cloud3D.cpp.

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

double Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::rmsX   const
 

Definition at line 402 of file AIDA_Cloud3D.cpp.

References m_histo, m_sumOfWeights, m_sumOfWeightTimesSquaredValueX, and m_sumOfWeightTimesValueX.

Referenced by updateAnnotation().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::rmsY   const
 

Definition at line 413 of file AIDA_Cloud3D.cpp.

References m_histo, m_sumOfWeights, m_sumOfWeightTimesSquaredValueY, and m_sumOfWeightTimesValueY.

Referenced by updateAnnotation().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::rmsZ   const
 

Definition at line 424 of file AIDA_Cloud3D.cpp.

References m_histo, m_sumOfWeights, m_sumOfWeightTimesSquaredValueZ, and m_sumOfWeightTimesValueZ.

Referenced by updateAnnotation().

bool Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::scale double    scaleFactor
 

Definition at line 233 of file AIDA_Cloud3D.cpp.

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

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

Definition at line 526 of file AIDA_Cloud3D.cpp.

References m_cacheSize, and m_elements.

Referenced by AIDA_Cloud3D(), and reset().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::sumOfWeights   const
 

Definition at line 188 of file AIDA_Cloud3D.cpp.

References m_histo, and m_sumOfWeights.

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

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

double Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::upperEdgeX   const
 

Definition at line 309 of file AIDA_Cloud3D.cpp.

References m_highEdgeX, and m_histo.

Referenced by convert().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::upperEdgeY   const
 

Definition at line 317 of file AIDA_Cloud3D.cpp.

References m_highEdgeY, and m_histo.

Referenced by convert().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::upperEdgeZ   const
 

Definition at line 325 of file AIDA_Cloud3D.cpp.

References m_highEdgeZ, and m_histo.

Referenced by convert().

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

Definition at line 333 of file AIDA_Cloud3D.cpp.

References m_elements, and m_histo.

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

Definition at line 342 of file AIDA_Cloud3D.cpp.

References m_elements, and m_histo.

double Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::valueZ int    index const
 

Definition at line 351 of file AIDA_Cloud3D.cpp.

References m_elements, and m_histo.

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

Definition at line 360 of file AIDA_Cloud3D.cpp.

References m_elements, and m_histo.

Referenced by fill().


Member Data Documentation

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

Definition at line 32 of file AIDA_Cloud3D.h.

const unsigned int Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::defaultNumberOfBins = 25 [static]
 

Definition at line 34 of file AIDA_Cloud3D.h.

Referenced by convertToHistogram().

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

Definition at line 110 of file AIDA_Cloud3D.h.

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

std::vector< Cloud3DElement > Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::m_elements [private]
 

Definition at line 112 of file AIDA_Cloud3D.h.

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

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

Definition at line 128 of file AIDA_Cloud3D.h.

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

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

Definition at line 129 of file AIDA_Cloud3D.h.

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

double Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::m_highEdgeZ [private]
 

Definition at line 130 of file AIDA_Cloud3D.h.

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

AIDA::IHistogram3D* Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::m_histo [private]
 

Definition at line 132 of file AIDA_Cloud3D.h.

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

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

Definition at line 124 of file AIDA_Cloud3D.h.

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

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

Definition at line 125 of file AIDA_Cloud3D.h.

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

double Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::m_lowEdgeZ [private]
 

Definition at line 126 of file AIDA_Cloud3D.h.

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

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

Definition at line 114 of file AIDA_Cloud3D.h.

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

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

Definition at line 120 of file AIDA_Cloud3D.h.

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

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

Definition at line 121 of file AIDA_Cloud3D.h.

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

double Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::m_sumOfWeightTimesSquaredValueZ [private]
 

Definition at line 122 of file AIDA_Cloud3D.h.

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

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

Definition at line 116 of file AIDA_Cloud3D.h.

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

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

Definition at line 117 of file AIDA_Cloud3D.h.

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

double Anaphe::AIDA_Histogram_native::AIDA_Cloud3D::m_sumOfWeightTimesValueZ [private]
 

Definition at line 118 of file AIDA_Cloud3D.h.

Referenced by fill(), meanZ(), reset(), rmsZ(), 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