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

Anaphe::AIDA_Histogram_native::AIDA_Cloud1D Class Reference

#include <AIDA_Cloud1D.h>

Inheritance diagram for Anaphe::AIDA_Histogram_native::AIDA_Cloud1D:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Implementation of the AIDA ICloud1D class

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

"Mean", "Rms"

Definition at line 27 of file AIDA_Cloud1D.h.

Public Methods

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

 AIDA_Cloud1D (const AIDA_Cloud1D &h)
 Copy constructor.

 AIDA_Cloud1D (const AIDA::ICloud1D &h)
 Constructor from another AIDA histogram.

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

double lowerEdge () const
double upperEdge () const
double value (int index) const
double weight (int index) const
double mean () const
double rms () const
bool convert (int nBins, double lowerEdge, double upperEdge)
bool convert (const std::vector< double > &binEdge)
const AIDA::IHistogram1D & histogram () const
bool fillHistogram (AIDA::IHistogram1D &hist) const
bool setCacheSize (unsigned int newCacheSize)
 Methods to be implemented from IDevCloud1D.

unsigned int cacheSize () const
 Retrieves the cache size.


Static Public Attributes

const unsigned int defaultCacheSize = 1000000
 The default cache size.

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


Protected Methods

void updateAnnotation () const

Private Methods

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


Private Attributes

unsigned int m_cacheSize
 The cache size.

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

double m_sumOfWeights
 The running sum of weights.

double m_sumOfWeightTimesValue
 The running sum of squared weights.

double m_sumOfWeightTimesSquaredValue
 The running sum of the weight times the value.

double m_lowEdge
 The low edge.

double m_highEdge
 The high edge.

AIDA::IHistogram1D * m_histo
 The supporting histogram.


Constructor & Destructor Documentation

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

Definition at line 16 of file AIDA_Cloud1D.cpp.

References Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotation(), Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotationNoUpdate(), emptyString, m_cacheSize, meanKey, rmsKey, and setCacheSize().

Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::AIDA_Cloud1D const AIDA_Cloud1D &    h
 

Definition at line 36 of file AIDA_Cloud1D.cpp.

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

Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::AIDA_Cloud1D const AIDA::ICloud1D &    h
 

Definition at line 67 of file AIDA_Cloud1D.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_Cloud1D::~AIDA_Cloud1D  
 

Definition at line 104 of file AIDA_Cloud1D.cpp.

References m_histo.


Member Function Documentation

unsigned int Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::cacheSize   const
 

Definition at line 356 of file AIDA_Cloud1D.cpp.

References m_cacheSize.

bool Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::convert const std::vector< double > &    binEdge
 

Definition at line 290 of file AIDA_Cloud1D.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_Cloud1D::convert int    nBins,
double    lowerEdge,
double    upperEdge
 

Definition at line 277 of file AIDA_Cloud1D.cpp.

References lowerEdge(), 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(), and upperEdge().

bool Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::convertToHistogram  
 

Definition at line 161 of file AIDA_Cloud1D.cpp.

References defaultNumberOfBins, m_elements, m_highEdge, m_histo, m_lowEdge, 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_Cloud1D::entries   const
 

Definition at line 137 of file AIDA_Cloud1D.cpp.

References m_elements, and m_histo.

Referenced by fillHistogram().

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

Definition at line 202 of file AIDA_Cloud1D.cpp.

References convertToHistogram(), m_cacheSize, m_elements, m_highEdge, m_histo, m_lowEdge, m_sumOfWeights, m_sumOfWeightTimesSquaredValue, m_sumOfWeightTimesValue, and weight().

Referenced by AIDA_Cloud1D().

bool Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::fillHistogram AIDA::IHistogram1D &    hist const
 

Definition at line 311 of file AIDA_Cloud1D.cpp.

References entries(), m_elements, and m_histo.

const AIDA::IHistogram1D & Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::histogram   const
 

Definition at line 303 of file AIDA_Cloud1D.cpp.

References m_histo.

bool Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::isConverted   const
 

Definition at line 179 of file AIDA_Cloud1D.cpp.

References m_histo.

double Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::lowerEdge   const
 

Definition at line 222 of file AIDA_Cloud1D.cpp.

References m_histo, and m_lowEdge.

Referenced by convert().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::mean   const
 

Definition at line 255 of file AIDA_Cloud1D.cpp.

References m_histo, m_sumOfWeights, and m_sumOfWeightTimesValue.

Referenced by updateAnnotation().

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

bool Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::reset  
 

Definition at line 123 of file AIDA_Cloud1D.cpp.

References m_cacheSize, m_elements, m_highEdge, m_histo, m_lowEdge, m_sumOfWeights, m_sumOfWeightTimesSquaredValue, m_sumOfWeightTimesValue, and setCacheSize().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::rms   const
 

Definition at line 266 of file AIDA_Cloud1D.cpp.

References m_histo, m_sumOfWeights, m_sumOfWeightTimesSquaredValue, and m_sumOfWeightTimesValue.

Referenced by updateAnnotation().

bool Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::scale double    scaleFactor
 

Definition at line 186 of file AIDA_Cloud1D.cpp.

References m_elements, m_histo, m_sumOfWeights, m_sumOfWeightTimesSquaredValue, and m_sumOfWeightTimesValue.

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

Definition at line 347 of file AIDA_Cloud1D.cpp.

References m_cacheSize, and m_elements.

Referenced by AIDA_Cloud1D(), and reset().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::sumOfWeights   const
 

Definition at line 149 of file AIDA_Cloud1D.cpp.

References m_histo, and m_sumOfWeights.

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

References Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotation(), Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::annotationNoUpdate(), mean(), meanKey, rms(), rmsKey, and Anaphe::AIDA_Histogram_native::AIDA_BaseHistogram::updateAnnotation().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::upperEdge   const
 

Definition at line 230 of file AIDA_Cloud1D.cpp.

References m_highEdge, and m_histo.

Referenced by convert().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::value int    index const
 

Definition at line 238 of file AIDA_Cloud1D.cpp.

References m_elements, and m_histo.

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

Definition at line 246 of file AIDA_Cloud1D.cpp.

References m_elements, and m_histo.

Referenced by fill().


Member Data Documentation

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

Definition at line 32 of file AIDA_Cloud1D.h.

const unsigned int Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::defaultNumberOfBins = 100 [static]
 

Definition at line 34 of file AIDA_Cloud1D.h.

Referenced by convertToHistogram().

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

Definition at line 92 of file AIDA_Cloud1D.h.

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

std::vector< Cloud1DElement > Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::m_elements [private]
 

Definition at line 94 of file AIDA_Cloud1D.h.

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

double Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::m_highEdge [private]
 

Definition at line 104 of file AIDA_Cloud1D.h.

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

AIDA::IHistogram1D* Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::m_histo [private]
 

Definition at line 106 of file AIDA_Cloud1D.h.

Referenced by AIDA_Cloud1D(), convert(), convertToHistogram(), entries(), fill(), fillHistogram(), histogram(), isConverted(), lowerEdge(), mean(), reset(), rms(), scale(), sumOfWeights(), upperEdge(), value(), weight(), and ~AIDA_Cloud1D().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::m_lowEdge [private]
 

Definition at line 102 of file AIDA_Cloud1D.h.

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

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

Definition at line 96 of file AIDA_Cloud1D.h.

Referenced by fill(), mean(), reset(), rms(), scale(), and sumOfWeights().

double Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::m_sumOfWeightTimesSquaredValue [private]
 

Definition at line 100 of file AIDA_Cloud1D.h.

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

double Anaphe::AIDA_Histogram_native::AIDA_Cloud1D::m_sumOfWeightTimesValue [private]
 

Definition at line 98 of file AIDA_Cloud1D.h.

Referenced by fill(), mean(), reset(), rms(), 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