Anaphe Home Page Reference Documentation

Main Page     Namespaces     Classes     Source Code    

P_ProfileHisto1D Class Reference

Inheritance diagram for P_ProfileHisto1D:

P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition > P_I_Histo_1D P_I_Histo List of all members.

Detailed Description

Values stored in the bins are `double'.

Definition at line 368 of file P_Histograms_1D.ddl.

Public Types

typedef P_ProfileHisto1D Like_Current
 Convenience typedef to current type.


Public Methods

 H_IID_IMPLEMENT (P_ProfileHisto1D)
 Very simple RTTI feature.

typedef H_P_REF (Like_Current) Ref_Like_Current
 Convenience typedef to reference to current type.

 P_ProfileHisto1D (const char *a_title, Size n, double x1, double x2, End_Point_Convention epc=RIGHT_OPEN)
 Create a 1D histo with Profile_Bin and fixed partition.

 P_ProfileHisto1D (I_Histo &a_histo, int copy_data=1)
 Copy constructor.

 P_ProfileHisto1D (const I_Histo &a_histo, int copy_data=1)
 Copy constructor taking const reference.

virtual ~P_ProfileHisto1D ()
 Destructor.

void fill (double x, double k,double w=1.0)
 Fill histo with datapoint x, weight w and character value k.

double bin_center (Index i)
 Center of the bin indexed by i.

double mean ()
 Return histogram mean.

double rms ()
 Return histogram RMS (Root Mean Square).

Ref_Like_Current clone (int copy_data=1)
 Clone the histogram.

Ref_Like_Current clone (H_P_CLUSTER1(a_place), int copy_data=1)
 Clone the histogram.

Ref_Like_Current add (const Ref_Like_Current &other)
 Add another histogram of the same type to this one.

void add (const I_Histo &other)
 Add another histogram to this one using the abstract interface.

Ref_Like_Current sub (const Ref_Like_Current &other)
 Subtract another histogram of the same type from this one.

void sub (const I_Histo &other)
 Subtract another histogram from this one using the abstract interface.

Ref_Like_Current mul (const Ref_Like_Current &other)
 Multiply another histogram of the same type to this one.

void mul (const I_Histo &other)
 Multiply another histogram to this one using the abstract interface.

Ref_Like_Current div (const Ref_Like_Current &other)
 Divide this histogram by another of the same type.

void div (const I_Histo &other)
 Divide this histogram by another one using the abstract interface.

void add (double x)
 Add a scalar to this histogram.

void sub (double x)
 Sutract a scalar from this histogram.

void mul (double x)
 Multiply by a scalar this histogram.

void div (double x)
 Divide by scalar this histogram.


Protected Methods

virtual P_REF_I_Histo clone_ (int copy_data=1)
virtual P_REF_I_Histo clone_ (H_P_CLUSTER1(a_place), int copy_data=1)


Member Typedef Documentation

typedef P_ProfileHisto1D P_ProfileHisto1D::Like_Current
 

Reimplemented from P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >.

Definition at line 374 of file P_Histograms_1D.ddl.

Referenced by clone().


Constructor & Destructor Documentation

P_ProfileHisto1D::P_ProfileHisto1D const char *    a_title,
Size    n,
double    x1,
double    x2,
End_Point_Convention    epc = RIGHT_OPEN
[inline]
 

Parameters:
a_title:  title of the histo
n:  number of (in range) bins
x1  and x2: (x1,x2) is the interval of in range bins

Definition at line 383 of file P_Histograms_1D.ddl.

References End_Point_Convention, H_H1D_E_EP, RIGHT_OPEN, and Size.

P_ProfileHisto1D::P_ProfileHisto1D I_Histo   a_histo,
int    copy_data = 1
[inline]
 

If copy_data == 1 the content of the histogram is copied as well, otherwise the copy is empty.

Definition at line 391 of file P_Histograms_1D.ddl.

P_ProfileHisto1D::P_ProfileHisto1D const I_Histo   a_histo,
int    copy_data = 1
[inline]
 

If copy_data == 1 the content of the histogram is copied as well, otherwise the copy is empty.

Definition at line 397 of file P_Histograms_1D.ddl.

virtual P_ProfileHisto1D::~P_ProfileHisto1D   [inline, virtual]
 

Definition at line 401 of file P_Histograms_1D.ddl.


Member Function Documentation

void P_ProfileHisto1D::add double    x [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >.

Definition at line 512 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::add_().

void P_ProfileHisto1D::add const I_Histo   other [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >.

Definition at line 462 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::add_().

Ref_Like_Current P_ProfileHisto1D::add const Ref_Like_Current &    other [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >.

Definition at line 449 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::bin_count(), P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::bins_, P_I_Histo_1D::extra_bin_count(), H_BIN_UPDATE, H_P_THIS, HTL_ERR, Index, I_Partition::is_compatible_with(), and P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::partition().

double P_ProfileHisto1D::bin_center Index    i [inline]
 

Definition at line 419 of file P_Histograms_1D.ddl.

References H_Bin_Helper::bin_center(), I_Histo::I_Bin_Location, and Index.

Ref_Like_Current P_ProfileHisto1D::clone H_P_CLUSTER1(a_place)   ,
int    copy_data = 1
[inline]
 

The first parameter is a clustering hint. If copy_data is zero the clone is empty.

Reimplemented from P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >.

Definition at line 438 of file P_Histograms_1D.ddl.

References H_P_NEW_CLUSTER1, and Like_Current.

Ref_Like_Current P_ProfileHisto1D::clone int    copy_data = 1 [inline]
 

If copy_data is zero the clone is empty.

Reimplemented from P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >.

Definition at line 429 of file P_Histograms_1D.ddl.

References H_P_NEW_CLUSTER0, and Like_Current.

Referenced by clone_().

virtual P_REF_I_Histo P_ProfileHisto1D::clone_ H_P_CLUSTER1(a_place)   ,
int    copy_data = 1
[inline, protected, virtual]
 

Reimplemented from P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >.

Definition at line 444 of file P_Histograms_1D.ddl.

References clone().

virtual P_REF_I_Histo P_ProfileHisto1D::clone_ int    copy_data = 1 [inline, protected, virtual]
 

Reimplemented from P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >.

Definition at line 441 of file P_Histograms_1D.ddl.

References clone().

void P_ProfileHisto1D::div double    x [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >.

Definition at line 518 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::div_().

void P_ProfileHisto1D::div const I_Histo   other [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >.

Definition at line 510 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::div_().

Ref_Like_Current P_ProfileHisto1D::div const Ref_Like_Current &    other [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >.

Definition at line 496 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::bin_count(), P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::bins_, P_I_Histo_1D::extra_bin_count(), H_BIN_UPDATE, H_P_THIS, HTL_ERR, Index, I_Partition::is_compatible_with(), and P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::partition().

void P_ProfileHisto1D::fill double    x,
double    k,
double    w = 1.0
[inline]
 

Definition at line 404 of file P_Histograms_1D.ddl.

References HTLlimits::classify(), HTLlimits::isFinite(), P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::mapped_bin(), and Profile_Bin::put().

P_ProfileHisto1D::H_IID_IMPLEMENT P_ProfileHisto1D   
 

Reimplemented from P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >.

typedef P_ProfileHisto1D::H_P_REF Like_Current   
 

Reimplemented from P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >.

double P_ProfileHisto1D::mean   [inline]
 

Definition at line 422 of file P_Histograms_1D.ddl.

References H_Statistics::mean().

Referenced by rms().

void P_ProfileHisto1D::mul double    x [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >.

Definition at line 516 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::mul_().

void P_ProfileHisto1D::mul const I_Histo   other [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >.

Definition at line 494 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::mul_().

Ref_Like_Current P_ProfileHisto1D::mul const Ref_Like_Current &    other [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >.

Definition at line 480 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::bin_count(), P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::bins_, P_I_Histo_1D::extra_bin_count(), H_BIN_UPDATE, H_P_THIS, HTL_ERR, Index, I_Partition::is_compatible_with(), and P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::partition().

double P_ProfileHisto1D::rms   [inline]
 

Definition at line 424 of file P_Histograms_1D.ddl.

References mean(), and H_Statistics::rms().

void P_ProfileHisto1D::sub double    x [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >.

Definition at line 514 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::sub_().

void P_ProfileHisto1D::sub const I_Histo   other [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >.

Definition at line 478 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::sub_().

Ref_Like_Current P_ProfileHisto1D::sub const Ref_Like_Current &    other [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >.

Definition at line 464 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::bin_count(), P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::bins_, P_I_Histo_1D::extra_bin_count(), H_BIN_UPDATE, H_P_THIS, HTL_ERR, Index, I_Partition::is_compatible_with(), and P_Histo_1D< P_Lifetime< Profile_Bin >, Profile_Bin, Even_Partition >::partition().


The documentation for this class was generated from the following file:

Anaphe documentation generated by Doxygen (www.doxygen.org)